2016-06-14 15:50:55 -05:00
|
|
|
(require '[cljs.build.api :as b])
|
|
|
|
|
|
|
|
(println "Building ...")
|
|
|
|
|
|
|
|
(let [start (System/nanoTime)]
|
|
|
|
(b/build
|
|
|
|
(b/inputs "src" "vendor")
|
|
|
|
{:main 'uxbox.worker
|
|
|
|
:output-to "dist/js/worker.js"
|
|
|
|
:source-map "dist/js/worker.js.map"
|
2016-06-15 12:23:39 -05:00
|
|
|
:output-dir "dist/js/worker"
|
2016-06-14 15:50:55 -05:00
|
|
|
:asset-path "js"
|
|
|
|
:parallel-build true
|
|
|
|
:optimizations :simple
|
|
|
|
:static-fns true
|
2016-06-14 15:57:52 -05:00
|
|
|
:pretty-print false
|
2016-06-14 15:50:55 -05:00
|
|
|
:language-in :ecmascript6
|
|
|
|
:language-out :ecmascript5
|
|
|
|
:verbose true})
|
|
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|