2020-01-20 13:03:01 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
source ~/.bashrc
|
|
|
|
set -ex
|
|
|
|
|
2020-06-02 16:14:23 +02:00
|
|
|
TAG=`git log -n 1 --pretty=format:%H -- ./`
|
|
|
|
|
2020-02-25 16:18:55 +01:00
|
|
|
npm ci
|
|
|
|
|
2020-03-30 10:46:15 +02:00
|
|
|
export NODE_ENV=production;
|
|
|
|
|
2020-04-18 20:34:34 +02:00
|
|
|
# Clean the output directory
|
|
|
|
npx gulp clean || exit 1;
|
2020-01-20 13:03:01 +01:00
|
|
|
|
2020-06-02 16:14:23 +02:00
|
|
|
shadow-cljs release main --config-merge "{:release-version \"${TAG}\"}"
|
2020-04-18 20:34:34 +02:00
|
|
|
npx gulp build || exit 1;
|
|
|
|
npx gulp dist:clean || exit 1;
|
|
|
|
npx gulp dist:copy || exit 1;
|
2020-01-20 13:03:01 +01:00
|
|
|
npx gulp dist:gzip || exit 1;
|