0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00
penpot/frontend/scripts/build.sh

22 lines
421 B
Bash
Raw Normal View History

#!/usr/bin/env bash
source ~/.bashrc
set -ex
if [ -z "${TAG}" ]; then
export TAG=$(git log -n 1 --pretty=format:%H -- ./);
fi
2020-07-03 15:41:00 +02:00
yarn install
export NODE_ENV=production;
2020-04-18 20:34:34 +02:00
# Clean the output directory
npx gulp clean || exit 1;
npx shadow-cljs release main --config-merge "{:release-version \"${TAG}\"}" $SHADOWCLJS_EXTRA_PARAMS
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;