0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/scripts/dist.clj
2016-05-08 18:03:37 +03:00

23 lines
709 B
Clojure

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