Fork me on GitHub
#clojurescript
<
2023-11-17
>
Scott Richmond00:11:40

Hi, friends! So I'm having some difficulty wiring up my cljs repl, and I'm hoping you can help. I'm moving a JVM project over to cljs compatibility for the first time. (This is a .clj -> .cljc process.) The project fully exists only with a deps.edn file and the clj cli tool. I've been using Tonsky's Clojure Sublimed as my environment, connecting to a socket repl. But I can't manage to figure out what port the cljs real is living on, or even if it's a socket repl or something more exotic. (http://ClojureScript.org doesn't seem to help.) I'd really prefer not to have to switch environments, or to retcon my project into a ShadowCLJS or Figwheel project. Do you know how to stand up a cljs repl with the clj tool that takes the form of a socket server listening on a configurable port? Thanks!

dnolen00:11:55

You need some JS runtime - browser or Node.js. I'm assuming since you have a Clojure project maybe you want to just use Node.js. I don't know anything about Sublimed. But first thing I would do is just start a Node.js REPL.

dnolen01:11:38

one question I have is why do you need a socket REPL - that's more a special case then something normal.