2016-02-21 09:42:35 -05:00
|
|
|
(require '[cljs.build.api :as b]
|
|
|
|
'[cljs.tagged-literals])
|
|
|
|
|
|
|
|
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
|
|
|
|
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
|
|
|
|
|
|
|
|
(println "Building ...")
|
|
|
|
|
|
|
|
(let [start (System/nanoTime)]
|
|
|
|
(b/build
|
|
|
|
(b/inputs "src")
|
|
|
|
{:main 'uxbox.core
|
|
|
|
:parallel-build false
|
|
|
|
:warnings {:ns-var-clash false}
|
|
|
|
:output-to "resources/public/js/main.js"
|
|
|
|
:output-dir "resources/public/js"
|
2016-03-19 10:59:13 -05:00
|
|
|
:closure-defines {"uxbox.repo.core.url"
|
|
|
|
"https://test.uxbox.io/api"}
|
2016-02-21 13:42:01 -05:00
|
|
|
:optimizations :simple
|
|
|
|
:static-fns true
|
2016-02-21 09:42:35 -05:00
|
|
|
:language-in :ecmascript5
|
|
|
|
:language-out :ecmascript5
|
|
|
|
:verbose true})
|
|
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|