diff --git a/package.json b/package.json index 908d636c..63a9a9aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simwrapper", - "version": "1.1.0", + "version": "1.2.0", "private": true, "license": "GPL-3.0-or-later", "author": "Billy Charlton ", @@ -9,13 +9,15 @@ "Janek Laudan " ], "scripts": { + "deploy-vsp": "cp -f public/404.simwrapper.html public/404.html && bash scripts/deploy-ghpages.sh matsim-vsp/simwrapper", + "deploy-staging": "cp -f public/404.staging.html public/404.html && bash scripts/deploy-ghpages.sh simwrapper/staging", + "deploy-asim": "cp -f public/404.dashboard.html public/404.html && bash scripts/deploy-ghpages.sh activitysim/dashboard", "serve": "vite", "build": "vite build", "release": "standard-version", "test:unit": "broken//vue-cli-service test:unit", "lint": "broken//vue-cli-service lint", - "bumpversion": "standard-version", - "deploy": "bash scripts/deploy-ghpages.sh matsim-vsp/simwrapper" + "bumpversion": "standard-version" }, "dependencies": { "@aftersim/pako": "^1.0.11-3", diff --git a/public/404.dashboard.html b/public/404.dashboard.html new file mode 100644 index 00000000..f7e2c99d --- /dev/null +++ b/public/404.dashboard.html @@ -0,0 +1,9 @@ + + + + + + + diff --git a/public/404.simwrapper.html b/public/404.simwrapper.html new file mode 100644 index 00000000..af139022 --- /dev/null +++ b/public/404.simwrapper.html @@ -0,0 +1,9 @@ + + + + + + + diff --git a/public/404.staging.html b/public/404.staging.html new file mode 100644 index 00000000..a7963b86 --- /dev/null +++ b/public/404.staging.html @@ -0,0 +1,9 @@ + + + + + + + diff --git a/scripts/deploy-ghpages.sh b/scripts/deploy-ghpages.sh index af36654d..3841ba15 100644 --- a/scripts/deploy-ghpages.sh +++ b/scripts/deploy-ghpages.sh @@ -2,6 +2,9 @@ # DEPLOY: Build site into /dist folder and PUSH to gh-pages branch ON GITHUB set -euo pipefail +echo --- CLEARING --- +rm -rf dist + echo --- BUILDING --- npm run build