0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/frontend/scripts/build-app.sh
Andrey Antukh 8c18e9bfbf Improve cache handling.
And make the devenv http server behave similar to a production
environment (related to cache handling).
2020-06-02 16:31:43 +02:00

19 lines
374 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;
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;