2016-01-07 18:43:59 -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)))
|
2015-06-18 12:35:50 -05:00
|
|
|
|
|
|
|
(println "Building ...")
|
|
|
|
|
|
|
|
(let [start (System/nanoTime)]
|
|
|
|
(b/build
|
2016-02-02 14:45:51 -05:00
|
|
|
(b/inputs "src" "test")
|
|
|
|
{:main 'uxbox.test-runner
|
|
|
|
:output-to "out/tests.js"
|
|
|
|
:output-dir "out"
|
2016-01-12 09:54:31 -05:00
|
|
|
:parallel-build false
|
2016-02-04 16:09:27 -05:00
|
|
|
:optimizations :none
|
2015-06-18 12:35:50 -05:00
|
|
|
:language-in :ecmascript5
|
|
|
|
:language-out :ecmascript5
|
2016-02-02 15:04:45 -05:00
|
|
|
:target :nodejs
|
2015-06-18 12:35:50 -05:00
|
|
|
:verbose true})
|
|
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|