mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
👷 Adapt production build script to shadow-cljs.
This commit is contained in:
@@ -1,18 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
export NODE_ENV=production;
|
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
|
export NODE_ENV=production;
|
||||||
|
|
||||||
npx gulp dist:clean || exit 1;
|
npx gulp dist:clean || exit 1;
|
||||||
npx gulp dist || exit 1;
|
npx gulp dist || exit 1;
|
||||||
|
|
||||||
cp -r ./target/dist ./target/dist2
|
shadow-cljs release main
|
||||||
mv ./target/dist2 ./target/dist/dbg
|
|
||||||
|
|
||||||
clojure -Adev tools.clj dist:all || exit 1;
|
|
||||||
|
|
||||||
npx gulp dist:gzip || exit 1;
|
npx gulp dist:gzip || exit 1;
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
:asset-path "/js"
|
:asset-path "/js"
|
||||||
:modules {:main {:entries [uxbox.main]}}
|
:modules {:main {:entries [uxbox.main]}}
|
||||||
:compiler-options {:output-feature-set :es8}
|
:compiler-options {:output-feature-set :es8}
|
||||||
:release {:compiler-options {:pseudo-names false
|
:release {:output-dir "target/dist/js"
|
||||||
:pretty-print false}}
|
:compiler-options {:fn-invoke-direct true
|
||||||
}}}
|
:source-map true
|
||||||
|
:anon-fn-naming-policy :mapped
|
||||||
|
:source-map-detail-level :all}}}}}
|
||||||
|
|||||||
Reference in New Issue
Block a user