Fork me on GitHub
#shadow-cljs
<
2023-10-16
>
vemv08:10:56

Hi, is it possible define in a project's deps.edn:

{,,,
 :aliases {:cider {:extra-deps {cider/cider-nrepl {:mvn/version "0.40.0"}
                                refactor-nrepl/refactor-nrepl {:mvn/version "3.9.0"}}}}}
And to activate it through shadow-cljs -A:cider watch dev? I've tried a few variations and none are working for me. The user manual suggests creating a user-global configuration, that's fine but does not result in a self-contained project

thheller08:10:19

I don't understand the question. yes, aliases can be activated that way. assuming a new jvm is launched for that command

vemv08:10:46

The question is: can I get the cider-nrepl middleware into the classpath so that shadow-cljs will activate the middleware The constraints I'm pursuing are: • cider should be optional • all code should be contained in the repo i.e. don't expect the user to define dotfiles

thheller08:10:49

like you have

thheller08:10:27

but again ... you need to be aware of shadow-cljs server mode

thheller08:10:13

i.e. shadow-cljs starts ONE jvm, and if other commands run they use that instead of running a new one

thheller08:10:32

so if you have one running the -A will have no effect, since no new jvm was started

vemv08:10:18

Yes, I'm starting the command from scratch each time for good measure

thheller08:10:34

I think thats a shit way to work, but fine

thheller08:10:43

I run shadow-cljs server one every couple of weeks

thheller08:10:51

and start/stop builds when I need 😛 while the server is always on

thheller08:10:36

I still don't know what you are trying to build exactly 😛

vemv08:10:53

I'm trying to get it to work, later I can care about uptime

thheller08:10:21

then share what you got, makes it infinitely easier to answer vague questions

vemv08:10:40

I think I'm pursuing something rather simple: create a project where cider is optional, that a variety of people can immediately use, no dotfiles required

vemv08:10:56

I can create an issue with a minimal project

thheller08:10:12

that makes everything so much simpler yes