This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-01
Channels
- # aleph (7)
- # bangalore-clj (1)
- # beginners (89)
- # boot (5)
- # clara (21)
- # cljs-dev (2)
- # cljsrn (57)
- # clojure (58)
- # clojure-austin (1)
- # clojure-conj (1)
- # clojure-italy (5)
- # clojure-losangeles (3)
- # clojure-russia (4)
- # clojure-sanfrancisco (4)
- # clojure-spec (31)
- # clojure-uk (67)
- # clojurebridge (4)
- # clojurescript (56)
- # cursive (92)
- # data-science (4)
- # datomic (15)
- # emacs (23)
- # events (1)
- # fulcro (121)
- # gorilla (2)
- # jobs-discuss (1)
- # juxt (1)
- # lambdaisland (6)
- # lumo (13)
- # off-topic (11)
- # om (1)
- # onyx (17)
- # overtone (5)
- # parinfer (9)
- # planck (3)
- # re-frame (21)
- # reagent (95)
- # ring-swagger (7)
- # spacemacs (58)
- # vim (13)
- # yada (2)
How are you guys running a CLJS nodejs REPL? Presumably you don't need a browser connection to do this. I don't see a way in boot-cljs-repl to do this.
@kenny I could not do it as well and I am using shadow-cljs for that at the moment. It should be possible though. I personally haven't had time to work on it yet
Ok - just making sure there wasn't a way to do it already out there. This post: https://lambdaisland.com/guides/clojure-repls/clojurescript-repls has some info on how to do it. Seems like that could be wrapped up in a Boot task.
@richiardiandrea Turns out it's much easier than I thought: Run
boot watch cljs-repl
Then in the REPL:
(require 'cemerick.piggieback)
=> nil
(require '[cljs.repl.node])
=> nil
(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
ClojureScript Node.js REPL server listening on 56999
To quit, type: :cljs/quit
=> nil
(+ 1 1)
=> 2
@kenny that's awesome thanks for sharing!