cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
lilactown 2019-04-14T17:46:58.000900Z

hey ya’ll. really impressed with cljdoc. having some issues with a lib I’d like to have on here

martinklepsch 2019-04-14T17:47:05.001300Z

πŸ˜„

martinklepsch 2019-04-14T17:47:15.001800Z

I literally just saw the failing build πŸ™‚

lilactown 2019-04-14T17:47:21.002200Z

πŸ˜…

lilactown 2019-04-14T17:47:25.002400Z

it’s a CLJS lib that depends on React

lilactown 2019-04-14T17:49:40.003800Z

would it help to provide externs?

martinklepsch 2019-04-14T17:50:04.004700Z

Unfortunately I don't have a good answer to this problem currently. cljdoc's analysis builds on the jar/pom only.

lilactown 2019-04-14T17:50:05.004900Z

I could maybe include cljsjs/react. I’d prefer to allow the consumer to include React however they see fit

martinklepsch 2019-04-14T17:50:40.005600Z

Maybe there's a way we can tell the CLJS analyzer to silently ignore string requires, I think that should work (those always refer to npm stuff right?)

lilactown 2019-04-14T17:50:53.005800Z

yeah, AFAIK

martinklepsch 2019-04-14T17:51:33.006400Z

I'll start a thread in #cljs-dev

πŸ‘ 1
martinklepsch 2019-04-14T17:56:01.006800Z

Hope somebody gets what I'm trying to say πŸ˜„

lilactown 2019-04-14T17:57:15.007100Z

I can try and help clarify if people have questions

lilactown 2019-04-14T17:57:51.007300Z

I wonder how shadow-cljs does the analysis

martinklepsch 2019-04-14T17:59:07.007800Z

It looks at node_modules and creates some input for the analyzer based on that.

martinklepsch 2019-04-14T18:00:31.009100Z

But we don't know what node_modules should look like since we only look at the pom.xml

martinklepsch 2019-04-14T18:00:33.009200Z

In a sense a library like clinch doesn't perfectly declare it's dependencies because react is sort of coming out of another package manager

martinklepsch 2019-04-14T18:01:07.009800Z

Would be interesting to see how this problem could be solved in general but I guess it hasn't been too much of an issue so far

thheller 2019-04-14T19:40:44.010700Z

@martinklepsch I created an example not too long ago that showed how to deal with string requires easily. I can't remember where I put it though.

thheller 2019-04-14T19:41:04.011200Z

I posted it here and you asked me to create a PR which I forgot πŸ˜›

martinklepsch 2019-04-14T19:45:15.014200Z

Now that you say it this rings a bell! I’ll try do look that up in the logs next weekend after Clojure/north. @lilactown if you want to open an issue against cljdoc that would be great, then we can’t forget (as I apparently did before :D)

lilactown 2019-04-14T19:56:34.014400Z

πŸ‘ Done!