Boot task introducing enhancements to CLJS development in Chrome, specifically CLJS DevTools and Dirac.
Add the following to your build.boot
dependencies.
[binaryage/devtools "0.6.1" :scope "test"]
[binaryage/dirac "0.2.0" :scope "test"]
[jupl/boot-cljs-devtools "0.1.0" :scope "test"]
In addition require the task, specifically cljs-devtools
.
(require '[jupl.boot-cljs-devtools :refer [cljs-devtools])
Currently files may be generated in the out
directory, so it would be advisable to add that to someplace like in a .gitignore
.
Ensure that this task runs before the cljs
and after the watch
task and that you include a .cljs.edn
file according to this.
Task example:
(deftask dev []
(comp (watch) (cljs-devtools) (cljs)))
File your-ns.cljs.edn
example:
{:require [your-ns.core]
:init-fns [your-ns.core/init]}
For more information on the tools please visit CLJS DevTools and Dirac.
- binaryage
- for CLJS DevTools and Dirac
- adzerk-oss
- for boot-cljs-repl (reference/foundation for this project)
- slotkenov
- for the original snippet that inspired this project