This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-16
Channels
- # aleph (2)
- # announcements (1)
- # beginners (162)
- # calva (16)
- # cider (37)
- # cljdoc (9)
- # cljs-dev (2)
- # cljsrn (3)
- # clojure (86)
- # clojure-dev (17)
- # clojure-europe (3)
- # clojure-houston (1)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-spec (10)
- # clojure-uk (20)
- # clojuredesign-podcast (15)
- # clojurescript (7)
- # data-science (14)
- # datascript (1)
- # datomic (5)
- # emacs (8)
- # figwheel-main (8)
- # fulcro (25)
- # graalvm (1)
- # jobs (10)
- # jobs-discuss (4)
- # keechma (14)
- # leiningen (2)
- # off-topic (31)
- # onyx (1)
- # other-languages (4)
- # pathom (4)
- # pedestal (1)
- # re-frame (20)
- # remote-jobs (4)
- # shadow-cljs (25)
- # sql (6)
- # tools-deps (15)
- # vim (18)
- # xtdb (9)
Hi. I’m a bit confused with my workflow using clj and deps.edn. Everything was so magic with lein, I never had to actually understand what was going on. 🙂 no such luxury/laziness here.
I have an app that has both an API server and a clojurescript frontend. The server is using http-kit.
In my deps.edn I have {:aliases {:run {:main-opts [ "-m" "alexandria.core" ] } }
— in alexandria.core I initialize the db, start the http-kit server etc.
In my global deps.edn, I have the alias :nrepl {:extra-deps {nrepl/nrepl {:mvn/version "0.6.0"}}}
What I would like to do is start the server, and have an nrepl session start at the same time, preferably with both a repl prompt and a server to connect to from the editor (I use fireplace/vim)
Right now I’m starting the server with clj -A:run
, which doesn’t start a repl as near as I can tell
and in a different terminal clj -R:nrepl -m nrepl.cmdline
, which starts a nrepl server
prob correct
you might need something more here to get an nrepl client, not just a repl ?
and in a different terminal shadow-cljs watch alexandria
to get clojurescript compiling plus a clojurescript repl going
you could probably write a tiny script that combines several of these things and call that instead
and I'm not sure if you need the clj
at all?