Cut out 300kb from build
This commit is contained in:
parent
53a91f5fac
commit
60846adf9c
3 changed files with 4 additions and 3 deletions
3
bb.edn
3
bb.edn
|
|
@ -5,6 +5,7 @@
|
||||||
dev {:doc "Development build. Starts webserver and watches for changes."
|
dev {:doc "Development build. Starts webserver and watches for changes."
|
||||||
:task (clojure "-M:dev -m shadow.cljs.devtools.cli watch main")}
|
:task (clojure "-M:dev -m shadow.cljs.devtools.cli watch main")}
|
||||||
prod {:doc "Builds production artifacts."
|
prod {:doc "Builds production artifacts."
|
||||||
:task (clojure "-M:dev -m shadow.cljs.devtools.cli release main")}
|
:task (clojure {:extra-env {"SCI_ELIDE_VARS" "true"}}
|
||||||
|
"-M:dev -m shadow.cljs.devtools.cli release main")}
|
||||||
release {:doc "Updates Github pages with new release build."
|
release {:doc "Updates Github pages with new release build."
|
||||||
:task (shell "script/release.clj")}}}
|
:task (shell "script/release.clj")}}}
|
||||||
|
|
|
||||||
2
deps.edn
2
deps.edn
|
|
@ -3,7 +3,7 @@
|
||||||
:deps
|
:deps
|
||||||
{org.clojure/clojure {:mvn/version "1.10.3"}
|
{org.clojure/clojure {:mvn/version "1.10.3"}
|
||||||
borkdude/sci {:git/url "https://github.com/borkdude/sci"
|
borkdude/sci {:git/url "https://github.com/borkdude/sci"
|
||||||
:sha "02733a591bfa2f425b8abe0377d6668559ac278a"}
|
:sha "0a4d0f6d4a004afe40fd26ffa50ec77439acb882"}
|
||||||
reagent/reagent {:mvn/version "1.0.0"}
|
reagent/reagent {:mvn/version "1.0.0"}
|
||||||
cljsjs/react {:mvn/version "17.0.2-0"}
|
cljsjs/react {:mvn/version "17.0.2-0"}
|
||||||
cljsjs/react-dom {:mvn/version "17.0.2-0"}
|
cljsjs/react-dom {:mvn/version "17.0.2-0"}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
(fs/create-dirs js-target-dir)
|
(fs/create-dirs js-target-dir)
|
||||||
|
|
||||||
(println "Compiling CLJS")
|
(println "Compiling CLJS")
|
||||||
(shell "clojure -M:dev -m shadow.cljs.devtools.cli release main")
|
(shell "bb prod")
|
||||||
|
|
||||||
(fs/copy "resources/public/js/report.html" "gh-pages"
|
(fs/copy "resources/public/js/report.html" "gh-pages"
|
||||||
{:replace-existing true})
|
{:replace-existing true})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue