penpot/frontend/scripts/build-app.sh
2020-07-02 10:43:14 +02:00

19 lines
378 B
Bash
Executable file

#!/usr/bin/env bash
source ~/.bashrc
set -ex
TAG=`git log -n 1 --pretty=format:%H -- ./`
npm ci
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;