Is there an advantage of running shadow-cljs with npx shadow-cljs instead of requiring it in clojure and using shadow.cljs.devtools.api? It seems like npx also launches a java process (how btw?) so it doesn't seem worthwhile to launch two java processes - one for our app and one for shadow-cljs
With Calva it makes a huge difference when using add-lib because Calva’s Clojure repl will be connected to the wrong JVM process and not load libraries into the JVM from which the shadow-cljs ClojureScript REPL runs. I suspect Calva may be doing something wrong here, but anyway, starting shadow from the REPL will work fine.
covered in https://code.thheller.com/blog/shadow-cljs/2017/11/18/the-many-ways-to-use-shadow-cljs.html and https://code.thheller.com/blog/shadow-cljs/2024/10/18/fullstack-cljs-workflow-with-shadow-cljs.html
yes, embedded is fine if you prefer one JVM process