[Migration] NPM (#1266)

* chore: add npm + vite for progressive enhancement

* fix: update Dockerfile to copy only the dist folder contents

* fix: update Dockerfile to use multi-stage build for optimized production image

* fix: correct nginx config file copy command in Dockerfile

* chore: add netlify configuration for build and redirects

* fix: add NODE_VERSION to environment in Netlify configuration

* remove wrong dist folder

* Update package.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: split public and src

* migrating all util files from js to ts

* feat: Implement HeightmapGenerator and Voronoi module

- Added HeightmapGenerator class for generating heightmaps with various tools (Hill, Pit, Range, Trough, Strait, etc.).
- Introduced Voronoi class for creating Voronoi diagrams using Delaunator.
- Updated index.html to include new modules.
- Created index.ts to manage module imports.
- Enhanced arrayUtils and graphUtils with type definitions and improved functionality.
- Added utility functions for generating grids and calculating Voronoi cells.

* chore: add GitHub Actions workflow for deploying to GitHub Pages

* fix: update branch name in GitHub Actions workflow from 'main' to 'master'

* chore: update package.json to specify Node.js engine version and remove unused launch.json

* Initial plan

* Update copilot guidelines to reflect NPM/Vite/TypeScript migration

Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>

* Update src/modules/heightmap-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/utils/graphUtils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/heightmap-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: Add TIME and ERROR variables to global scope in HeightmapGenerator

* fix: Update base path in vite.config.ts for Netlify deployment

* fix: Update Node.js version in Dockerfile to 24-alpine

---------

Co-authored-by: Marc Emmanuel <marc.emmanuel@tado.com>
Co-authored-by: Marc Emmanuel <marcwissler@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
This commit is contained in:
Azgaar 2026-01-22 12:20:12 +01:00 committed by GitHub
parent 0c26f0831f
commit 9e0eb03618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
713 changed files with 5182 additions and 2161 deletions

View file

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
<metadata source="http://wappenwiki.org" license="https://creativecommons.org/licenses/by-nc-sa/3.0"/>
<g id="buckle" stroke-width=".7">
<path d="M117.2 134.72V65.9c0-1.92-1.53-2.96-3.44-2.96-1.92 0-3.46 1.04-3.46 2.96v68.82c0 1.92 1.54 2.96 3.46 2.96 1.91 0 3.45-1.04 3.45-2.96z"/>
<path d="M100.98 134.74c20.01 0 36.24-15.42 36.24-34.44S121 65.85 100.98 65.85c-20.02 0-36.25 15.43-36.25 34.45s16.23 34.44 36.25 34.44zm28.44-34.44c0 14.15-12.26 26.12-28.51 26.12S72.4 114.47 72.4 100.3s12.26-26.12 28.5-26.12 28.52 11.97 28.52 26.12z"/>
<path d="M110.75 105.86c-1.66-.4-2.2-1.42-2.25-2.56l-45.02 1.28-4.75-3.67a.76.76 0 010-1.18l4.75-3.67 45.02 1.28c.03-1.16.57-2.2 2.25-2.6l5.9-.76c.6-.07 1.22.24 1.5.78l2.04 3.88a3.8 3.8 0 010 3.29l-2.03 3.88c-.29.54-.9.88-1.52.78l-5.89-.73z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 906 B