[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 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="#d7374a" stroke="#000" viewBox="50 50 200 200"><metadata license="https://creativecommons.org/licenses/by-nc-sa/3.0" source="http://wappenwiki.org/images/1/13/Brazil_Ancient.svg"/><g id="armillarySphere" stroke-width=".375"><path d="M100 139.7v-2.2c5 0 11-4.2 15.6-10.8a47.3 47.3 0 00.2-53.2c-4.6-6.8-10.5-10.8-15.7-10.8v-2.2c6 0 12.5 4.4 17.6 11.7a49.4 49.4 0 01-.3 55.7c-5.1 7.4-11.6 11.8-17.3 11.8z"/><path d="M100 139.7v-2.2c1.4 0 4.7-2.9 7.9-10.6 1.8-4.6 5-14.2 5-26.8 0-12.8-3-22.3-5-26.8-2.9-7.3-6.1-10.6-7.8-10.6v-2.2c3.2 0 6.9 4.5 10 12 1.8 4.6 5 14.4 5 27.6 0 13-3.2 22.9-5.2 27.6-3.1 7.5-6.8 12-9.8 12z"/><path d="M100 139.7c-5.7 0-12.2-4.4-17.3-11.8a49.5 49.5 0 01-.2-55.7C87.5 65 94 60.5 100 60.5v2.2c-5.3 0-11.2 4-15.8 10.8a47.3 47.3 0 00.2 53.1c4.7 6.7 10.6 10.8 15.6 10.8v2.3z"/><path d="M100 139.7c-3 0-6.7-4.5-9.8-12a75.7 75.7 0 01-.1-55.3c3-7.4 6.8-12 10-12v2.3c-1.8 0-5 3.3-8 10.6a72 72 0 00-5 26.8c0 12.6 3.3 22.2 5.2 26.8 3.2 7.7 6.4 10.5 7.8 10.5v2.2z"/><path d="M72.8 72.1h55v2.2h-55z"/><path d="M64.6 85.5h71.2v2.2H64.6z"/><path d="M72.3 125.8h55v2.2h-55z"/><path d="M64.4 112.4h71v2.2h-71z"/><path d="M61.7 99h76.4v2.2H61.7z"/><path d="M100 139.7a39.6 39.6 0 11.1-79.3 39.6 39.6 0 010 79.3zm0-77a37.4 37.4 0 10.1 74.8 37.4 37.4 0 000-74.8z"/><path d="M64.4 81.3l66.6 44.6a41 41 0 004.8-7.1L69.2 74a40.8 40.8 0 00-4.8 7.2z"/><path d="M65.5 80l66.6 44.6"/><path d="M135 120.4l-67-45"/></g></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB