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

feature request: build graph using directory path #62

Closed skonik closed 4 months ago

skonik commented 5 months ago

Hello. I really like the idea!

Is it possible to build graph using directory path? You will need to iterate over all files and all directories in specified dir, I guess. Would be really cool to analyze the whole repository and check condition of the whole code specifing only directory

gabotechs commented 5 months ago

Hello!

It's a good idea, I'm just deferring that as it is technically a bit complex, but it's definitely possible and would be nice to have it actually.

Stay tuned as I would probably give it a shot to this soon.

gabotechs commented 4 months ago

It's supported now, you can pass as many arguments as you want to the dep-tree command:

dep-tree your/folder/file1.js your/folder/file2.js your/folder/file3.js ...

or let your shell expand the files in a directory using globstars

dep-tree your/folder/*.js

or let your shell recursively expand everything within a dir (only some shells support this)

dep-tree your/folder/**/*.js