I have client-server app (backend in Clojure+ring, frontend done with ClojureScript) and there are unit tests, but only for backend.
Each time when I run 'lein test' lein have to compile ClojureScript, because ':hook [leiningen.cljsbuild]' is set in project.clj.
Can I somehow run tests without ClojureScript recompilation?
cljsbuild
provide next hooks:
You can't remove/deactivate one of this hooks and use others. I suggest you don't use :hooks [leiningen.cljsbuild]
at all. Just declare :aliases
for doing actions that you need: ie compile
should run both compile
and cljsbuild once
(you can do this with do
statement in aliases, see sample project for more information).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.