This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-05
Channels
- # babashka (14)
- # beginners (62)
- # calva (1)
- # cider (54)
- # clj-kondo (3)
- # cljdoc (15)
- # cljs-dev (2)
- # clojure (180)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (39)
- # clojurescript (85)
- # core-async (9)
- # core-logic (1)
- # core-typed (5)
- # data-science (27)
- # datomic (2)
- # emacs (15)
- # figwheel-main (98)
- # fulcro (26)
- # graphql (15)
- # helix (1)
- # jobs-discuss (26)
- # kaocha (1)
- # off-topic (54)
- # other-lisps (1)
- # re-frame (21)
- # reagent (1)
- # reitit (3)
- # shadow-cljs (49)
- # spacemacs (12)
- # specter (5)
- # xtdb (2)
Check the latest commits in cljdoc/cljdoc-analyzer and feel free to add any JS deps in the same fashion. This recently fixed the issue for Pathom. @tony.kay @danvingo
We’re already automatically detecting this now for string requires inside the analyzed project but it’s obviously more involved to do for the the entire classpath (but I guess it would be possible)
https://github.com/cljdoc/cljdoc-analyzer/commit/c82af9bb9b04d63f057ac986dbb6fb607c59ac46
https://github.com/cljsjs/packages/blob/master/d3/build.boot#L25-L26 You need to find deps.cljs files, and look for their :provides in order to determine what js deps they need.
@martinklepsch Been a while since I read the code, does the analyzer have access to the classpath of the lib?
Yeah that might be a good approach. The analyzer does have access to the full classpath
But if you’re not using cljsjs, and instead getting things from npm directly, classpath doesn’t help you.
That’s where the commit above helps