🎉 Add testenv.

This commit is contained in:
Andrey Antukh 2020-09-09 15:49:06 +02:00 committed by Alonso Torres
parent ab35716ba2
commit 91aa8862ff
14 changed files with 535 additions and 37 deletions

21
frontend/scripts/build.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
source ~/.bashrc
set -ex
if [ -z "${TAG}" ]; then
export TAG=`git log -n 1 --pretty=format:%H -- ./`
fi
yarn install
export NODE_ENV=production;
# Clean the output directory
npx gulp clean || exit 1;
npx shadow-cljs release main --config-merge "{:release-version \"${TAG}\"}"
npx gulp build || exit 1;
npx gulp dist:clean || exit 1;
npx gulp dist:copy || exit 1;
npx gulp dist:gzip || exit 1;