- Ensure "Maven Integration" Plugin is enabled in Intellij Idea "Plugins"
- Create a
pom.xml
file withshadow-cljs pom
in terminal - For new projects, right click on the
pom.xml
file and select from the "Maven" option at the bottom of the list to import the dependencies. git init
npm init
- setup remote repl with
Edit Configuration
in REPL button provided by Cursive - inside the configuration, choose the nrepl port provided by the
:nrepl
option in the shadow-cljs.edn file and select the project created by the Maven setup (step 3). - start remote repl with
shadow-cljs clj-repl
- watch build with
(shadow/watch :<build name>)
in REPL ( comes fromshadow-cljs.edn
under:builds
) - in REPL
(shadow.cljs.devtools.api/node-repl)
(or other if for figwheel or lein, etc.) - whenever dependencies change in
shadow-cljs.edn
file,shadow-cljs pom
in terminal to keep dependencies synced up
- Install "Calva" Plugin
- use ctrl/cmd+shift+p (command selector menu): choose Calva: Start a Project REPL and Connect (aka jack-in)