2016-06-14 23:50:55 +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
|
|
|
|
:output-to "dist/js/worker.js"
|
|
|
|
:source-map "dist/js/worker.js.map"
|
2016-06-15 20:23:39 +03:00
|
|
|
:output-dir "dist/js/worker"
|
2016-06-14 23:50:55 +03:00
|
|
|
:asset-path "js"
|
|
|
|
:parallel-build true
|
2016-06-15 22:26:19 +03:00
|
|
|
:optimizations :advanced
|
2016-06-14 23:50:55 +03:00
|
|
|
:static-fns true
|
2016-06-14 23:57:52 +03:00
|
|
|
:pretty-print false
|
2016-06-14 23:50:55 +03:00
|
|
|
:language-in :ecmascript6
|
|
|
|
:language-out :ecmascript5
|
|
|
|
:verbose true})
|
|
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|