0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

👷 Adapt production build script to shadow-cljs.

This commit is contained in:
Andrey Antukh 2020-03-30 10:46:15 +02:00
parent f7bfc4d135
commit 71afd6719f
2 changed files with 8 additions and 9 deletions

View file

@ -1,18 +1,15 @@
#!/usr/bin/env bash
source ~/.bashrc
export NODE_ENV=production;
set -ex
npm ci
export NODE_ENV=production;
npx gulp dist:clean || exit 1;
npx gulp dist || exit 1;
cp -r ./target/dist ./target/dist2
mv ./target/dist2 ./target/dist/dbg
clojure -Adev tools.clj dist:all || exit 1;
shadow-cljs release main
npx gulp dist:gzip || exit 1;

View file

@ -10,6 +10,8 @@
:asset-path "/js"
:modules {:main {:entries [uxbox.main]}}
:compiler-options {:output-feature-set :es8}
:release {:compiler-options {:pseudo-names false
:pretty-print false}}
}}}
:release {:output-dir "target/dist/js"
:compiler-options {:fn-invoke-direct true
:source-map true
:anon-fn-naming-policy :mapped
:source-map-detail-level :all}}}}}