This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-09
Channels
- # aleph (16)
- # bangalore-clj (1)
- # beginners (57)
- # cider (4)
- # clara (1)
- # cljs-dev (25)
- # cljsrn (12)
- # clojure (76)
- # clojure-dusseldorf (2)
- # clojure-italy (41)
- # clojure-russia (4)
- # clojure-spec (3)
- # clojure-uk (122)
- # clojurescript (101)
- # cursive (8)
- # data-science (30)
- # datomic (2)
- # emacs (2)
- # figwheel (10)
- # fulcro (53)
- # garden (5)
- # gorilla (6)
- # hoplon (1)
- # jobs (1)
- # juxt (14)
- # leiningen (12)
- # om (1)
- # om-next (1)
- # onyx (21)
- # pedestal (40)
- # perun (5)
- # portkey (2)
- # re-frame (16)
- # reagent (1)
- # ring-swagger (3)
- # rum (6)
- # shadow-cljs (239)
- # spacemacs (10)
- # specter (9)
- # uncomplicate (2)
- # unrepl (1)
- # vim (13)
- # yada (16)
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.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.