This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-03
Channels
- # announcements (3)
- # babashka (29)
- # beginners (95)
- # calva (109)
- # cider (16)
- # clj-kondo (6)
- # clj-together (1)
- # cljdoc (2)
- # cljsrn (2)
- # clojure (85)
- # clojure-europe (26)
- # clojure-india (1)
- # clojure-seattle (1)
- # clojure-uk (6)
- # clojurescript (14)
- # conjure (4)
- # cursive (8)
- # datomic (6)
- # emacs (21)
- # events (1)
- # figwheel-main (5)
- # fulcro (11)
- # graalvm (32)
- # graphql (1)
- # holy-lambda (7)
- # humbleui (7)
- # jobs (3)
- # membrane (8)
- # nextjournal (31)
- # off-topic (29)
- # pathom (14)
- # polylith (9)
- # portal (16)
- # practicalli (4)
- # reitit (17)
- # releases (1)
- # remote-jobs (2)
- # ring (4)
- # sci (20)
- # shadow-cljs (24)
- # sql (1)
- # vim (12)
- # xtdb (3)
Q: is there a way to use shadow deps (not deps.edn deps) but using a git repo instead of a maven/clojars dep?
i.e.
{:git/url ""
:sha "36894d9fd348576e265a6c129664fba159c4b319"
:exclusions [thheller/shadow-cljs]}
but in the shadow-cljs.ednmight seem a bit odd but I have a situation where I have code that I need to load in a local repl but ignored by shadow. I have a second source path called “generated” and that’s the only place I want shadow to find source files
normally I would do this by letting shadow control the source paths i.e. :deps false
but I am using the git dep above so I need deps.edn to load it. so now I’m stuck between 2 goals
another option would be to load using deps.edn but then use the shadow api to remove the “src” path before it is started
you can still add the regular dependency as well but it will pick source files from the source path over the files in the jar
yeah I was just looking a docs and the use case is similar to https://shadow-cljs.github.io/docs/UsersGuide.html#_javascript_dialects
that’s an interesting idea. just checkout the git lib locally and then use shadow for deps, pointing at that dir
it’s https://github.com/ribelo/doxa but I’m using a non-master branch
ok. I’ll try a local checkout. that would be a simple/easy fix until doxa gets a clojars release
@U05224H0W I found a better solution. as long as none of the source files in “src” are required, they are ignored by shadow compile. in this way I can use deps :true and include both source paths without cljs complaining