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

24 lines
680 B
Clojure
Raw Normal View History

(require '[cljs.build.api :as b])
2016-02-21 09:42:35 -05:00
(println "Building ...")
(let [start (System/nanoTime)]
(b/build
2016-04-07 14:51:40 -05:00
(b/inputs "src" "vendor")
{:main 'uxbox.main
:parallel-build true
2016-02-21 09:42:35 -05:00
:warnings {:ns-var-clash false}
:output-to "dist/js/main.js"
:output-dir "dist/js"
:closure-defines {"uxbox.common.constants.url"
2016-03-19 10:59:13 -05:00
"https://test.uxbox.io/api"}
:optimizations :simple
:externs ["externs/main.js"]
:source-map "dist/js/main.js.map"
2016-02-21 13:42:01 -05:00
:static-fns true
:pretty-print false
2016-05-08 10:03:37 -05:00
:language-in :ecmascript6
2016-02-21 09:42:35 -05:00
:language-out :ecmascript5
:verbose true})
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))