walmartlabs / vizdeps

Visualize Leiningen dependencies using Graphviz
Apache License 2.0
131 stars 13 forks source link

Refactor code to make it possible to use with Boot #7

Open nha opened 7 years ago

nha commented 7 years ago

I get this is a leiningen task.

I am sure there are people using boot that would be interested (I am one).

This project could either provide a boot task, or expose functions that a boot task could use to render the graph, prune dependencies etc.

hlship commented 7 years ago

It's possible a bit of it could be rewritten to use pomengranate (the underlying wrapper around the Aether/Maven code) more directly; that would make it more reasonable to have Boot make use of the code. To be honest, it's a bit of a hack getting the dependencies, especially the full dependency tree.

hlship commented 7 years ago

There's also a few other things related to logging that are a bit Leiningen specific but that could be refactored (we pass around an options map everywhere, logging could be abstracted to functions added to the options map).

nha commented 7 years ago

So maybe steps towards boot compatibility would be:

For context, I know boot has some facilities around dependencies like

Note: I did not dig into the vizdep code yet so it may not all make sense - or make sense at all. In any case 👍 for doing it - I was wishing for something like that.

hlship commented 4 years ago

I don't use Boot any more (I tend to use Joker where in the past I used Boot). I'm open to a reasonable PR to break the code up to be more easily leveraged by Boot, but don't have the bandwidth to do the work itself.