mirror of
https://github.com/penpot/penpot.git
synced 2025-03-10 06:41:40 -05:00
Fix build/watch tests scripts.
This commit is contained in:
parent
99f935863a
commit
bfd99ebb8f
2 changed files with 20 additions and 18 deletions
|
@ -1,20 +1,20 @@
|
||||||
(require '[cljs.build.api :as b])
|
(require '[cljs.build.api :as b])
|
||||||
|
|
||||||
(println "Building ...")
|
(def options
|
||||||
|
|
||||||
(let [start (System/nanoTime)]
|
|
||||||
(b/build
|
|
||||||
(b/inputs "src" "test")
|
|
||||||
{:main 'uxbox.tests.main
|
{:main 'uxbox.tests.main
|
||||||
:parallel-build false
|
:parallel-build false
|
||||||
:output-to "out/tests.js"
|
:output-to "out/tests.js"
|
||||||
:source-map "out/tests.js.map"
|
:source-map true
|
||||||
:output-dir "out/tests"
|
:output-dir "out/tests"
|
||||||
:optimizations :simple
|
:optimizations :none
|
||||||
:static-fns true
|
:static-fns true
|
||||||
:pretty-print true
|
:pretty-print true
|
||||||
:target :nodejs
|
:target :nodejs
|
||||||
:language-in :ecmascript6
|
:language-in :ecmascript6
|
||||||
:language-out :ecmascript5
|
:language-out :ecmascript5
|
||||||
:verbose true})
|
:verbose true})
|
||||||
|
|
||||||
|
(let [start (System/nanoTime)]
|
||||||
|
(println "Building ...")
|
||||||
|
(b/build (b/inputs "src" "test") options)
|
||||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
(require '[cljs.build.api :as b])
|
(require '[cljs.build.api :as b])
|
||||||
|
|
||||||
(b/watch (b/inputs "src" "test")
|
(def options
|
||||||
{:main 'uxbox.tests.main
|
{:main 'uxbox.tests.main
|
||||||
:parallel-build false
|
:parallel-build false
|
||||||
:output-to "out/tests.js"
|
:output-to "out/tests.js"
|
||||||
:source-map "out/tests.js.map"
|
:source-map true
|
||||||
:output-dir "out/tests"
|
:output-dir "out/tests"
|
||||||
:optimizations :simple
|
:optimizations :none
|
||||||
:static-fns true
|
:static-fns true
|
||||||
:pretty-print true
|
:pretty-print true
|
||||||
:target :nodejs
|
:target :nodejs
|
||||||
:language-in :ecmascript6
|
:language-in :ecmascript6
|
||||||
:language-out :ecmascript5
|
:language-out :ecmascript5
|
||||||
:verbose true})
|
:verbose true})
|
||||||
|
|
||||||
|
(b/watch (b/inputs "src" "test") options)
|
||||||
|
|
Loading…
Add table
Reference in a new issue