This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-02
Channels
- # announcements (15)
- # aws-lambda (1)
- # babashka (2)
- # beginners (25)
- # calva (2)
- # cider (6)
- # cljfx (6)
- # clojure (24)
- # clojure-boston (1)
- # clojure-dev (2)
- # clojure-europe (31)
- # clojure-uk (2)
- # clojurescript (48)
- # community-development (4)
- # conjure (1)
- # datahike (4)
- # datascript (10)
- # datomic (1)
- # deps-new (1)
- # fulcro (10)
- # juxt (1)
- # malli (7)
- # missionary (1)
- # nrepl (2)
- # off-topic (2)
- # other-languages (5)
- # polylith (4)
- # random (1)
- # react (2)
- # shadow-cljs (9)
- # tools-deps (21)
I have a shadow-cljs setup working using deps.edn and :target :node-script
. It is consuming a library via :local/root
which I am developing locally and it also has a deps.edn with a :npm-deps
in it. Is there something I should do to make those :npm-deps
from the library get installed into the top level project?
:npm-deps
don't belong and deps.edn
and have no effect there for anything. they need to be declared in a deps.cljs
file on the classpath. if your library does that then packages should be installed in the main project.
Cool, thanks for the tip! Will investigate this.
Works perfectly, thank you. I mis-read the "https://shadow-cljs.github.io/docs/UsersGuide.html#publish-deps-cljs" section in the user guide. Thanks for putting me straight.
Hey sorry if is a dumb question, but my Google Foo is failing me and I'm not being able to find how to do this, is possible to ask shadow-cljs to hot-reload when I change a markdown file in a specific folder?
only if you use https://clojureverse.org/t/using-none-code-resources-in-cljs-builds/3745 to include it
you can also just trigger the build from the REPL or the UI, but if you included the file via another macro it might be cached and not recompiled unless the ns that did it is marked with ^:dev/always
Hey thanks, I will probably stick with the manual trigger.
Maybe I can make a vim keymap for it