Fork me on GitHub
#emacs
<
2017-10-09
>
shakdwipeea02:10:24

Yes this launches a clojure nrepl, which you can connect using cider-connect. This provides auto compilation of cljs but I don't think this provides a cljs repl out of the box, but that can be added using https://github.com/adzerk-oss/boot-cljs-repl . The dev task will be sth like

(deftask dev
  "Run a restartable system in the Repl"
  []
  (comp
   (environ :env {:http-port "3000"})
   (watch :verbose true)
   (system :sys #'dev-system :auto true :files ["handler.clj"])
   (reload)
   (cljs-repl)
   (cljs)
   (repl :server true)))
Now from your connected repl, you should be able to call (start-repl) for the cljs repl connected with browser.

valtteri06:10:42

That’s actually a good point. I probably want to have two REPL’s, one to interact with backend code and one with the frontend (browser). I’ll attempt to add cljs-repl to the mix later today with aforementioned instructions. Dunno though yet if REPL-driven development is as much fun with CLJS as it is with CLJ.