2016-04-14 21:39:50 +03:00
|
|
|
(require '[cljs.build.api :as b])
|
2016-02-21 16:42:35 +02:00
|
|
|
|
|
|
|
(println "Building ...")
|
|
|
|
|
|
|
|
(let [start (System/nanoTime)]
|
|
|
|
(b/build
|
2016-06-22 21:20:17 +03:00
|
|
|
(b/inputs "src")
|
2016-06-12 10:27:05 +03:00
|
|
|
{:main 'uxbox.main
|
2016-06-15 20:23:39 +03:00
|
|
|
:parallel-build false
|
2016-02-21 16:42:35 +02:00
|
|
|
:warnings {:ns-var-clash false}
|
2016-06-14 23:50:55 +03:00
|
|
|
:output-to "dist/js/main.js"
|
2016-06-15 20:23:39 +03:00
|
|
|
:source-map "dist/js/main.js.map"
|
|
|
|
:output-dir "dist/js/main"
|
2016-07-29 13:45:00 +03:00
|
|
|
:closure-defines {"uxbox.config.url" "https://test.uxbox.io/api"
|
|
|
|
"uxbox.config.viewurl" "https://test.uxbox.io/view/"}
|
2016-06-15 22:26:19 +03:00
|
|
|
:optimizations :advanced
|
2016-04-02 23:17:52 +03:00
|
|
|
:externs ["externs/main.js"]
|
2016-02-21 20:42:01 +02:00
|
|
|
:static-fns true
|
2016-09-30 23:38:31 +02:00
|
|
|
:elide-asserts true
|
2016-06-14 23:50:55 +03:00
|
|
|
:pretty-print false
|
2016-05-08 18:03:37 +03:00
|
|
|
:language-in :ecmascript6
|
2016-02-21 16:42:35 +02:00
|
|
|
:language-out :ecmascript5
|
|
|
|
:verbose true})
|
|
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|