[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,10 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200">
<metadata source="https://commons.wikimedia.org/wiki/File:Meuble_h%C3%A9raldique_ciseaux.svg" author="Yorick" license="https://creativecommons.org/licenses/by/1.0"/>
<g id="scissors2" stroke-width="3" transform="matrix(0.22,0,0,0.22,67.7,61.2)">
<path d="M265.57 1.5l-134 168.56-4.5 24.07c-.1 7.74-8.67 9.17-16.1 11.43-23.53 6.09-39.64 10.36-45.5 37.35-39.23-2.66-60.53 23.02-63.9 59.65-1.88 40.73 33.95 50.18 50.35 47.85 23.18-.38 58.99-57.4 34.28-92.5 2.15-18.1 15.69-19.26 28.93-20.7 27.48-7.19 30.98-23.48 45.72-35.37L263.8 69.78l1.78-68.28zM53.1 267.63c2.8.04 5.54.66 8.1 1.9 11.7 5.7 15.29 22.5 8 37.47-7.3 14.98-22.71 22.5-34.41 16.81-11.7-5.7-15.3-22.49-8-37.47 5.7-11.7 16.35-18.86 26.31-18.71z"/>
<path d="M23.85 2.22l6.63 73.06 96.1 123c4.83 2.28 8.55 15.82 12.5 27.13 11.14 1.97 9.05 6.63 26.46 9.18 17.61-.64 30.3 2.54 34.25 19.2-24.44 40.19-9.13 75.75 24.63 93.34 28.73 8.28 44.25-2.6 51.78-16.41 21.19-54.1-26.18-92.21-54-87.81-9.78-24.6-19.7-30.42-45.57-36.13-11.29-.48-6.89-10.8-9.71-16.37-.66-16.2-5.32-16.32-8.57-22.13L23.85 2.22zm208.16 266.06c10.17 0 20.73 7.99 25.69 20.4 6.08 15.29 1.4 31.54-10.5 36.29s-26.53-3.8-32.63-19.1c-6.1-15.28-1.37-31.53 10.53-36.28a18.5 18.5 0 016.9-1.3z"/>
<path d="M161.96 188.4a15.15 15.15 0 11-30.3 0 15.15 15.15 0 1130.3 0z"/>
<path d="M152.24 188.4a5.43 5.43 0 11-10.86 0 5.43 5.43 0 1110.86 0z"/>
<path stroke="none" fill="#000" d="M34.55 66.24l4.68 8.38 79.16 101.02 6.31 7.22-3.42-8.4-79.5-101.43c-1.98-1.67-9.31-10.53-7.23-6.8z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB