diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..55bc8109 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,51 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ['master'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Set up Node + uses: actions/setup-node@v6 + with: + node-version: lts/* + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + with: + # Upload dist folder + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 6afdcc7d..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": "0.1.0", - "configurations": [ - { - "name": "Debug", - "type": "chrome", - "request": "launch", - "file": "${workspaceFolder}/index.html" - } - ] -} \ No newline at end of file diff --git a/package.json b/package.json index 2883e517..cadffbd4 100644 --- a/package.json +++ b/package.json @@ -30,5 +30,8 @@ "d3": "^7.9.0", "delaunator": "^5.0.1", "polylabel": "^2.0.1" + }, + "engines": { + "node": ">=24.0.0" } } diff --git a/public/versioning.js b/public/versioning.js index 1c4d005e..6b1f88fd 100644 --- a/public/versioning.js +++ b/public/versioning.js @@ -13,7 +13,7 @@ * Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2 */ -const VERSION = "1.109.5"; +const VERSION = "1.110.0"; if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function"); { diff --git a/vite.config.js b/vite.config.ts similarity index 78% rename from vite.config.js rename to vite.config.ts index cb0483c3..2e102351 100644 --- a/vite.config.js +++ b/vite.config.ts @@ -1,5 +1,6 @@ export default { root: './src', + base: '/Fantasy-Map-Generator/', build: { outDir: '../dist', assetsDir: './',