I want to have a slick, unified editing experience with nrepl and both my Pedestal server and CLJS app with Figwheel Main. is there a good example out there of how to set that up? for example, it seems messy to run two nrepl sessions on different ports, one for CLJS and one for JVM. (what happens if I eval something in a .cljc
file?)
is there a lein template that shows this workflow?
@braden.shepherdson I think you just need to use the scripting api for figwheel. I have some non-lein examples.
Youe editor decides what to do when eval-ing in a .cljc file.
I don't entirely follow. what would I be scripting? I'm happy with a non-lein example; I'm actually using clj
for my project.
@braden.shepherdson juxt/edge can serve as a demonstration then. This is the scripting api: https://figwheel.org/docs/scripting_api.html
ah, that looks like exactly the kind of thing.
Essentially you just need to start Figwheel inside your jvm repl. Then you tell your editor how to piggieback into clojurescript (this will depend on your editor)
yep, I've got it working nicely.
thanks for the pointer