build: add deploy-preview script

This commit is contained in:
Miodec 2023-08-30 15:12:55 +02:00
parent 6972462083
commit e3f66b165e

View file

@ -11,6 +11,7 @@
"build-live": "export COMMIT_HASH=`git rev-parse --short HEAD` && npx gulp build-production",
"dev": "concurrently \"webpack serve --config=./webpack/config.dev.js\" \"npx gulp watch\"",
"deploy-live": "npm run build-live && firebase deploy -P live --only hosting",
"deploy-preview": "npm run build-live && firebase hosting:channel:deploy preview -P live --expires 2h",
"tsc": "tsc",
"knip": "knip"
},