This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-12
Channels
- # announcements (2)
- # babashka (26)
- # beginners (48)
- # calva (32)
- # cider (23)
- # clj-kondo (61)
- # cljfx (3)
- # clojure (93)
- # clojure-australia (2)
- # clojure-europe (23)
- # clojure-losangeles (1)
- # clojure-nl (5)
- # clojure-uk (4)
- # clojurescript (46)
- # cloverage (9)
- # code-reviews (1)
- # copenhagen-clojurians (1)
- # cursive (39)
- # data-science (6)
- # datahike (8)
- # deps-new (8)
- # depstar (2)
- # etaoin (1)
- # fulcro (2)
- # funcool (2)
- # graalvm (5)
- # jackdaw (3)
- # java (17)
- # jobs-discuss (43)
- # kaocha (2)
- # leiningen (25)
- # malli (8)
- # minecraft (1)
- # missionary (8)
- # observability (6)
- # off-topic (37)
- # other-languages (12)
- # practicalli (1)
- # reagent (4)
- # releases (78)
- # remote-jobs (1)
- # sci (9)
- # shadow-cljs (13)
- # spacemacs (6)
- # sql (1)
- # tools-deps (30)
- # xtdb (3)
is there a way to configure shadow to write arbitrary keys to the generated package.json, or at least the engine key?
@d.eltzner012 shadow-cljs does not generate a package.json
ever?
I just checked, I removed both package.json and package-lock.json, ran npx shadow-cljs compile app and there was a package.json generated?!
ah. technically that is npm generating that. it is created by running npm install <packages>
where packages comes from your dependencies declaring :npm-deps
.
and to answer your initial question: no, there is no way to have shadow-cljs add extra stuff
I’m running npx shadow-cljs watch app
, but I want to run it in the background. How do I do that?
in general you add an &
at the end of the command. But in practice i like having it in the foreground so i can easily stop, see compiler output, etc. so i prefer to just use a dedicated terminal tab for it
this is most likely 100% an nrepl / calva issue. If you just do npx shadow-cljs node-repl
and eval that presumably the output will show up in the terminal?
❯ npx shadow-cljs node-repl
shadow-cljs - config: /Users/dan/projects/work/metabase/shadow-cljs.edn
shadow-cljs - connected to server
cljs.user=> shadow-cljs - #5 ready!
cljs.user=> (let [tn (js/setTimeout #(println "hello") 1000)]
(println tn))
#object[Timeout 52]
nil
cljs.user=> hello