gabotechs / dep-tree

Tool for helping developers keep their code bases clean and decoupled. It allows visualising a code base complexity using a 3d force-directed graph of files and the dependencies between them.
https://github.com/gabotechs/dep-tree
MIT License
1.4k stars 35 forks source link

Define some sort of format to read in that third-party tools can generate #76

Closed nogweii closed 5 months ago

nogweii commented 5 months ago

Maybe the JSON output? If dep-tree could render that json, it could be a useful interchange format to build support in other languages.

For me, I was thinking about poking around and exploring this in a few Ruby codebases.

gabotechs commented 5 months ago

There is a way already, you can get a json output using the following command:

dep-tree tree your/entrypoint/file --json

beware of versions older than 0.19.4 for big codebases though, as they have some performance issues building json outputs. 0.19.4 should be fine.