mgechev / ngrev

Tool for reverse engineering of Angular applications
MIT License
1.57k stars 106 forks source link

Is there a programatic API I could use to get the dependencies of a component? #55

Closed davidfirst closed 5 years ago

davidfirst commented 5 years ago

I'm trying to extract all dependencies of a component (similar to node-dependency-tree), which seems to be a non-trivial task with Angular. This project seems the closest I can get, however, I need it for a CLI tool.

If there is no such an API, can you point me to the main point where the UI gets the files? I guess I'll be able to take it from there and post a PR. (hopefully, the UI is not coupled to the logic).

Thanks!

mgechev commented 5 years ago

You can do this with this library. See ngrev.

davidfirst commented 5 years ago

I'm confused. "ngrev" is this library, according to the description it's "Graphical tool for reverse engineering of Angular projects". I need the same but without the graphical interface. Just CLI or some API. How can I achieve this?

Thanks.

mgechev commented 5 years ago

You can use ngast to build something like ngrev without graphical interface. I mentioned ngrev since you can use it as an example :)