Open fregante opened 3 years ago
If you're familiar with macOS, this should give you a good idea of how I'd expect to be able to explore the dependencies in a project:
It gives you a clear view of each dependency and sub dependency:
It's interactive but doesn't have to be: Shared dependencies can just end with a symbol, e.g. chrome.ts
above could just show a non-linked extensionContext.ts
item, which is on the second level already.
I just realized that I can get what I'm suggesting by just opening each file and reading its import
statements 🤔
What that lacks though is the ability to see the dependency branch (i.e. not just one list of imports at a time, but both the parents and the children of each dependency, like in the Finder screenshot above)
seems hard to do. what about we make the graph "reactive" and nodes and expand / collapse by clicking them?
Hi! This is a great tool but I'm struggling to make it useful. Graphs are not a great way to represent dependencies because shared dependencies are pulled so far right and away from their importers, forcing you to follow thousands of pixels of lines.
The entry point has 6 direct dependencies, can you spot them in less than 10 seconds? 10 seconds is a long time to spot 6 dependencies.
The solution here is to use the textual output and that cleanly shows you the 6 dependencies… if you only find the entry point in this list in alphabetical order:
Additionally the list is monodimensional: I can see the 6 dependencies, but then I can't follow them easily.