Skip to content

burbma/boot-cljs-devtools

 
 

Repository files navigation

boot-cljs-devtools

About

Boot task introducing enhancements to CLJS development in Chrome, specifically CLJS DevTools and Dirac.

Installation

Latest version:

https://img.shields.io/clojars/v/powerlaces/boot-cljs-devtools.svg

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 below

Note 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.

Usage

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.

Credits

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

About

Boot task to add Chrome DevTool enhancements for CLJS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 100.0%