0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00
penpot/scripts/dist-main.clj
2016-07-29 13:45:00 +03:00

23 lines
722 B
Clojure

(require '[cljs.build.api :as b])
(println "Building ...")
(let [start (System/nanoTime)]
(b/build
(b/inputs "src")
{:main 'uxbox.main
:parallel-build false
:warnings {:ns-var-clash false}
:output-to "dist/js/main.js"
:source-map "dist/js/main.js.map"
:output-dir "dist/js/main"
:closure-defines {"uxbox.config.url" "https://test.uxbox.io/api"
"uxbox.config.viewurl" "https://test.uxbox.io/view/"}
:optimizations :advanced
:externs ["externs/main.js"]
:static-fns true
:pretty-print false
:language-in :ecmascript6
:language-out :ecmascript5
:verbose true})
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))