Improve cache handling.

And make the devenv http server behave similar to a production
environment (related to cache handling).
This commit is contained in:
Andrey Antukh 2020-06-02 16:14:23 +02:00 committed by Alonso Torres
parent 935b835853
commit 8c18e9bfbf
12 changed files with 160 additions and 8 deletions

View file

@ -3,6 +3,8 @@
source ~/.bashrc
set -ex
TAG=`git log -n 1 --pretty=format:%H -- ./`
npm ci
export NODE_ENV=production;
@ -10,7 +12,7 @@ export NODE_ENV=production;
# Clean the output directory
npx gulp clean || exit 1;
shadow-cljs release main
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;