clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
2021-05-03T11:01:21.097600Z

I'd like to visualize an artifact dependency tree (jar and node modules) for a ClojureScript application. I understand there are solutions with leiningen/clj, but none of them appears to integrate with deps.cljs and/or node modules. Any suggestion where I should be starting?

thheller 2021-05-03T11:30:12.098400Z

shadow-cljs build reports give you a very detailed overview for your code/dependencies https://shadow-cljs.github.io/docs/UsersGuide.html#build-report. it is however just a table and not an actual visualization/graph (yet)

thheller 2021-05-03T11:31:31.100Z

not aware of anything that would otherwise combine jar/npm, only separate tools

👍 1
alexmiller 2021-05-03T12:41:12.101200Z

For the deps part, there is https://github.com/clojure/tools.deps.graph

👍 1
2021-05-03T13:04:21.101500Z

Damn, now I remember! Been there two years ago. IIRC, it did not support node modules at that time. Guess that has not changed in the meantime, has it? ;)

2021-05-03T13:05:20.101800Z

Somehow felt I should be digging deeper in shadow-cljs. ;)

alexmiller 2021-05-03T13:48:24.102100Z

no, as they're not deps :)

Grzegorz Smajdor 2021-05-03T21:07:56.102900Z

https://clojurians.slack.com/archives/C053AK3F9/p1620075937014300