Boot task introducing enhancements to CLJS development in Chrome, specifically CLJS DevTools and Dirac.
Latest version:
In order to install it, add the following to your build.boot dependencies:
[binaryage/devtools "0.8.2" :scope "test"]
[binaryage/dirac "0.7.1" :scope "test"]
[powerlaces/boot-cljs-devtools "0.X.X" :scope "test"]
[org.clojure/clojurescript "1.9.293"] ;; see belowNote that boot-cljs-devtools requires ClojureScript version 1.9.89 or later for its :preloads feature.
In addition require the task, specifically cljs-devtools.
(require '[powerlaces.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.
- jupl
- for his work, this library would not exist otherwise
- 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