From 7aafa47fb3bdd9d3566f2cd5410ee95f25a81524 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 17 Dec 2024 16:49:56 +0100 Subject: [PATCH] Actions: attempt to fix build --- package.json | 1 + scripts/single_build.sh | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 23153a9068..9a173b4f8b 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "strt": "vite --host | sed 's/localhost:/127.0.0.1:/g'", "build": "./scripts/build.sh", "build:single": "./scripts/single_build.sh", + "build:vite:single": "vite build --sourcemap --config vite_single.config.js", "build:dbscript": "vite-node ./scripts/osm2pgsql/generateBuildDbScript.ts", "prepare-deploy": "npm run generate:service-worker && ./scripts/prepare-build.sh && npm run build", "watch:css": "tailwindcss -i src/index.css -o public/css/index-tailwind-output.css --watch", diff --git a/scripts/single_build.sh b/scripts/single_build.sh index ab10c56189..3bce06c682 100755 --- a/scripts/single_build.sh +++ b/scripts/single_build.sh @@ -44,7 +44,7 @@ sed -i "s/\/\/ LAYOUT.ADD_CONFIG/layout.enableMoreQuests = false/" index_"$THEME export NODE_OPTIONS=--max-old-space-size=20000 -vite build --sourcemap --config vite_single.config.js || { echo 'Vite build failed' ; exit 1; } +npm run build:vite:single || { echo 'Vite build failed' ; exit 1; } cp -r assets/layers/ dist/assets/layers/ @@ -96,9 +96,4 @@ then fi npm run clean -echo "BUILD COMPLETED" -echo "On what domain will you deploy?" -echo " ! Don't forget to add `https://yourdomain.tld/land.html` to the Redirect URIs on https://www.openstreetmap.org/oauth2/applications/" -echo "Deploying on github pages?" -echo " 1. Don't forget to add a CNAME file (containing your domain name verbatim, without protocol)" -echo " 2 .nojekyll file (which is empty)" +echo "BUILD COMPLETED. Files are in dist_$1"