telegram-tt/deploy/contest.sh
Alexander Zinchuk 3afcde3217 Initial commit
2021-04-09 14:11:51 +03:00

15 lines
335 B
Bash
Executable File

#!/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/