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])
|
||||
|
||||
(println "Building ...")
|
||||
(def options
|
||||
{:main 'uxbox.tests.main
|
||||
:parallel-build false
|
||||
:output-to "out/tests.js"
|
||||
:source-map true
|
||||
:output-dir "out/tests"
|
||||
:optimizations :none
|
||||
:static-fns true
|
||||
:pretty-print true
|
||||
:target :nodejs
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src" "test")
|
||||
{:main 'uxbox.tests.main
|
||||
:parallel-build false
|
||||
:output-to "out/tests.js"
|
||||
:source-map "out/tests.js.map"
|
||||
:output-dir "out/tests"
|
||||
:optimizations :simple
|
||||
:static-fns true
|
||||
:pretty-print true
|
||||
:target :nodejs
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "Building ...")
|
||||
(b/build (b/inputs "src" "test") options)
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(b/watch (b/inputs "src" "test")
|
||||
(def options
|
||||
{:main 'uxbox.tests.main
|
||||
:parallel-build false
|
||||
:output-to "out/tests.js"
|
||||
:source-map "out/tests.js.map"
|
||||
:source-map true
|
||||
:output-dir "out/tests"
|
||||
:optimizations :simple
|
||||
:optimizations :none
|
||||
:static-fns true
|
||||
:pretty-print true
|
||||
:target :nodejs
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
|
||||
(b/watch (b/inputs "src" "test") options)
|
||||
|
|
Loading…
Add table
Reference in a new issue