[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

@ -1,11 +0,0 @@
<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:Coa_Illustration_Elements_Tool_Millstone.svg" author="Madboy74" license="https://www.gnu.org/licenses/fdl-1.3.html"/>
<g id="millstone" stroke-width="3" transform="matrix(0.18,0,0,0.18,63.25,73.1)">
<path d="M202.46 20.64C90.96 20.64 6.2 46 6.2 142.04c0 27.21 4 50 12.46 68.85 14.13 46.83 91.04 82.61 183.8 82.61 92.4 0 169.07-35.52 183.61-82.1 8.64-18.94 12.73-41.88 12.73-69.36 0-96.05-84.85-121.4-196.34-121.4z"/>
<path d="M388.6 104.67a186.1 98.17 0 01-372.21 0 186.1 98.17 0 11372.21 0z"/>
<g fill="#000" stroke-width="2.5">
<path fill-opacity="0.4" d="M255.15 101.26a52.95 27.93 0 11-105.9 0 52.95 27.93 0 11105.9 0z"/>
<path fill-opacity="0.3" d="M132.13 86.7l-3.84 29.1h28.76c-4.92-4.23-7.84-9.2-7.84-14.55 0-5.33 2.92-10.3 7.84-14.55h-24.92zm115.2 0c4.93 4.24 7.85 9.22 7.85 14.55 0 5.34-2.92 10.32-7.84 14.56h29.37l-3.84-29.1h-25.53z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1 KiB