[Deploy] Support WebZ deploy, drop contest deploy support

This commit is contained in:
Alexander Zinchuk 2021-04-29 13:09:48 +03:00
parent 9c4cb209c0
commit ccff995b93
2 changed files with 1 additions and 15 deletions

View File

@ -1,14 +0,0 @@
#!/usr/bin/env bash
set -e
OUT_DIR=./build-contest
rm -rf ${OUT_DIR};
mkdir -p ${OUT_DIR};
npm run build -- --output-path=${OUT_DIR}/dist/ --env.noSourceMap
./deploy/copy_to_dist.sh ${OUT_DIR}/dist/
npm run build -- --output-path=${OUT_DIR}/src/ --env.noMinify
rm ${OUT_DIR}/src/index.html
./deploy/copy_to_dist.sh ${OUT_DIR}/src/

View File

@ -8,7 +8,7 @@
"build": "webpack -p",
"build:staging": "rm -rf dist/ && APP_ENV=staging npm run build && ./deploy/copy_to_dist.sh",
"build:production": "rm -rf dist/ && APP_INFO=\"Telegram WebZ alpha $(git rev-parse --short HEAD)\" APP_ENV=production npm run build && ./deploy/copy_to_dist.sh",
"deploy:contest": "./deploy/contest.sh",
"deploy:production": "npm run build:production && git add -A && git commit -a -m '[Build]' && git push",
"perf:serve": "APP_ENV=perf parcel src/index-perf.html",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",