telegram-tt/deploy/contest.sh

15 lines
335 B
Bash
Raw Normal View History

2021-04-09 13:29:59 +03:00
#!/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/