This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-15
Channels
- # announcements (17)
- # babashka (16)
- # beginners (17)
- # biff (13)
- # cider (63)
- # cljsrn (8)
- # clojure (34)
- # clojure-europe (12)
- # clojure-germany (4)
- # clojure-nl (2)
- # clojure-spec (17)
- # clojure-uk (2)
- # clojurescript (51)
- # code-reviews (1)
- # conjure (15)
- # cursive (16)
- # datomic (10)
- # emacs (4)
- # fulcro (13)
- # graalvm (4)
- # helix (3)
- # introduce-yourself (7)
- # kaocha (2)
- # lsp (4)
- # music (2)
- # off-topic (11)
- # re-frame (2)
- # reagent (3)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (21)
- # spacemacs (4)
- # sql (1)
- # vim (2)
That's really convenient! Is the user intended to clone the repo supposed or simply copy the clj
shell invocation?
If it's the former, why not include an alias in a deps.edn
and simply call clj -M:node
You can have the deps.edn also 🙂 I just wanted “the least number of files”. I wanted to demystify the starting of a REPL. If you put it behind an alias, you then need to teach people what an alias is in the context of deps.edn 🙂 Which can be useful but is not critical to get going.
Yup, that's what I gathered, but the Readme and example code made it seem like it should be invoked from the project folder
I also didn't realise the CLI tool implicitly adds "src/" to the classpath from wherever it was invoked, even when there's no deps.edn file - just small things that may be confusing to beginners
I've been doing it like clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.597"}}}' -M -m cljs.main -re node
since a few years
@UCPS050BV The CLI itself can tell you that:
seanc@DESKTOP-30ICA76:~/clojure$ ls
data example
seanc@DESKTOP-30ICA76:~/clojure$ clojure -Sdescribe
{:version "1.10.3.839"
:config-files ["/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.10.3.839/deps.edn" "/home/seanc/.clojure/deps.edn" ]
:config-user "/home/seanc/.clojure/deps.edn"
:config-project "deps.edn"
:install-dir "/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.10.3.839"
:config-dir "/home/seanc/.clojure"
:cache-dir "/home/seanc/.clojure/.cpcache"
:force false
:repro false
:main-aliases ""
:repl-aliases ""}
seanc@DESKTOP-30ICA76:~/clojure$ clojure -Spath
src:/home/seanc/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar:/home/seanc/.m2/repository/org/clojure/core.specs.alpha/0.2.56/core.specs.alpha-0.2.56.jar:/home/seanc/.m2/repository/org/clojure/spec.alpha/0.2.194/spec.alpha-0.2.194.jar
seanc@DESKTOP-30ICA76:~/clojure$
No deps.edn
file there, but src
is on the path.Ha! 🙂 Thanks. Sorry, I haven’t seen a Windows for years. So it works… after you run it twice?