A sample repo to explore issues around getting a JVM Clojure in SCI-Powered in Browser REPL to support REPL-Driven dev of Clerk's render functions.
It would be ideal if getting both REPLs working & connected is as easy as cider-connect-clj&cljs
with a shadow-cljs
project.
Here's what currently works:
- Run
cider-jack-in-clj
- Run
cider-connect-cljs
, enter1339
when prompted for the port andnbb
for the REPL type, alternatively run the form fromrepl.el
- Open
repl.cljs
and runsesman-link-with-buffer
selecting the connection with port1339
- Confirm you can eval the form in
repl.cljs
and you see it in the browser console
- A REPL type
custom
with an init form of,
does not work, butnbb
does. - Can we avoid having to run
sesman-link-with-buffer
?
- Could things become more seamless by nesting having only one nREPL port like
shadow-cljs
does?
- sci.nrepl is the nREPL server implementation.