Fork me on GitHub
#shadow-cljs
<
2021-11-03
>
Ryan16:11:41

Hey all, not sure if this is right place to start for this, but how would I setup a user.cljs file for the shadow-cljs repl? I'm using intelliJ/Cursive.. would also be awesome if anyone had a tip for automagically running the (shadow/repl :app) on startup, just to save my colleagues from forgetting 🙂

West17:11:42

Personally, I’ve never used a user.cljs and hot reloading worked fine for me. Also, I tend to run shadow-cljs watch [buildname] then connect to the repl that it runs.

👍 1
thheller19:11:49

a user.cljs can't do (shadow/repl :app)?

Ryan20:11:02

I bet it can 🙂 I'm not sure how to tell the repl to execute user.cljs

thheller21:11:44

you can create a cljs/user.cljs on the classpath which the REPL include include automatically

thheller21:11:02

but that still cannot execute (shadow/repl :app) so your intention of what this should be doing is unclear

Ryan14:11:11

I just couldn't figure out how to get the user.cljs to load at all, its not on the classpath tho so that explains it. I was also trying to figure out if user.cljs could do the init function, and failing that if there was any other way to achieve it I may not be thinking of, is all 🙂