0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 08:38:15 -05:00
penpot/frontend/scripts/build.sh
2020-12-02 17:48:47 +01:00

22 lines
451 B
Bash
Executable file

#!/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}\"}" $SHADOWCLJS_EXTRA_PARAMS
npx gulp build || exit 1;
npx gulp dist:clean || exit 1;
npx gulp dist:copy || exit 1;
npx gulp dist:gzip || exit 1;