mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
1abc0e4239
Because :whitespace is not compatible with nodejs target.
21 lines
598 B
Clojure
21 lines
598 B
Clojure
(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" "test")
|
|
{:main 'uxbox.test-runner
|
|
:output-to "out/tests.js"
|
|
:output-dir "out"
|
|
:parallel-build false
|
|
:optimizations :none
|
|
:language-in :ecmascript5
|
|
:language-out :ecmascript5
|
|
:target :nodejs
|
|
:verbose true})
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|