2016-04-11 17:31:14 +03:00
|
|
|
(require '[cljs.build.api :as b])
|
|
|
|
|
|
|
|
(println "Building ...")
|
|
|
|
|
|
|
|
(let [start (System/nanoTime)]
|
|
|
|
(b/build
|
2016-06-22 21:20:17 +03:00
|
|
|
(b/inputs "src")
|
2016-06-14 23:50:55 +03:00
|
|
|
{:main 'uxbox.worker
|
2016-06-22 21:20:17 +03:00
|
|
|
:parallel-build false
|
|
|
|
:warnings {:ns-var-clash false}
|
2016-04-11 17:31:14 +03:00
|
|
|
:output-to "resources/public/js/worker.js"
|
2016-06-15 20:23:39 +03:00
|
|
|
:source-map "resources/public/js/worker.js.map"
|
2016-04-11 17:31:14 +03:00
|
|
|
:output-dir "resources/public/js/worker"
|
|
|
|
:asset-path "js"
|
|
|
|
:optimizations :simple
|
|
|
|
:static-fns true
|
2016-04-11 17:40:08 +03:00
|
|
|
:language-in :ecmascript6
|
2016-04-11 17:31:14 +03:00
|
|
|
:language-out :ecmascript5
|
2016-06-22 21:20:17 +03:00
|
|
|
:pretty-print true
|
2016-04-11 17:31:14 +03:00
|
|
|
:verbose true})
|
|
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|