mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
[Deploy] Support WebZ deploy, drop contest deploy support
This commit is contained in:
parent
9c4cb209c0
commit
ccff995b93
@ -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/
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user