[boot]: plugging in boot-cljs-test
This commit is contained in:
parent
c7bb4d6a26
commit
c7a737126f
2 changed files with 15 additions and 1 deletions
15
build.boot
15
build.boot
|
|
@ -40,7 +40,7 @@
|
|||
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
|
||||
'[adzerk.boot-reload :refer [reload]]
|
||||
'[pandeiro.boot-http :refer :all]
|
||||
'[crisptrutski.boot-cljs-test :refer [test-cljs]]
|
||||
'[crisptrutski.boot-cljs-test :as tcs]
|
||||
'[clojure.tools.logging :as log]
|
||||
'[clojure.tools.namespace.repl :refer [set-refresh-dirs]])
|
||||
|
||||
|
|
@ -71,6 +71,19 @@
|
|||
(set-env! :source-paths #(conj % "test/core" "test/clj")) ;; (!) :source-paths must not overlap.
|
||||
(bt/test))
|
||||
|
||||
(deftask test-cljs []
|
||||
(set-env! :source-paths #(conj % "test/core" "test/cljs"))
|
||||
(set-env! :resource-paths #{"test/resources"})
|
||||
|
||||
(comp
|
||||
(tcs/test-cljs :out-file "mount.js")))
|
||||
|
||||
(deftask test-cljs-advanced []
|
||||
(set-env! :source-paths #(conj % "dev/clj" "dev/cljs"))
|
||||
(set-env! :resource-paths #{"dev/resources"})
|
||||
|
||||
(cljs :optimizations :advanced :ids #{"mount"}))
|
||||
|
||||
(deftask cljs-example
|
||||
"mount cljs example"
|
||||
[]
|
||||
|
|
|
|||
1
test/resources/mount.cljs.edn
Normal file
1
test/resources/mount.cljs.edn
Normal file
|
|
@ -0,0 +1 @@
|
|||
{:require [mount.test]}
|
||||
Loading…
Reference in a new issue