2016-04-14 13:39:50 -05:00
|
|
|
(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")
|
2016-06-12 02:27:05 -05:00
|
|
|
{:main 'uxbox.main
|
2016-06-14 15:50:55 -05:00
|
|
|
:parallel-build true
|
2016-02-21 09:42:35 -05:00
|
|
|
:warnings {:ns-var-clash false}
|
2016-06-14 15:50:55 -05:00
|
|
|
: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"}
|
2016-04-03 12:08:18 -05:00
|
|
|
:optimizations :simple
|
2016-04-02 15:17:52 -05:00
|
|
|
:externs ["externs/main.js"]
|
2016-06-14 15:50:55 -05:00
|
|
|
:source-map "dist/js/main.js.map"
|
2016-02-21 13:42:01 -05:00
|
|
|
:static-fns true
|
2016-06-14 15:50:55 -05:00
|
|
|
: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"))
|