Fork me on GitHub
#cider
<
2023-03-21
>
Alejandro14:03:20

Hello. I'm trying to make clojure cli to start both figwheel and nrepl. I can start the latter with cider-jack-in-cljs , no issues, but I'd like to run both with clj -M:my-alias and then do cider-connect instead. How to configure deps.edn for this? Right now I have the following:

:aliases {:fig {:main-opts ["-m" "figwheel.main"]}
           :cider-cljs {:extra-deps ...
                        :main-opts ["-m" "nrepl.cmdline" "--middleware"
                                    "[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}}

dpsutton14:03:41

you can’t have two mains. gotta pick one

Alejandro14:03:53

@dpsutton, hm. When I start it with clj -A:cider-cljs, it starts figwheel for me. Well, that's good, but a bit confusing haha

Alejandro15:03:26

Ah, I now get it, cider asks me about figwheel.main