Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch mode to circular dependencies #187

Open
chrisgfortes opened this issue Dec 7, 2018 · 1 comment
Open

Watch mode to circular dependencies #187

chrisgfortes opened this issue Dec 7, 2018 · 1 comment
Assignees
Labels
core dependency tree generation

Comments

@chrisgfortes
Copy link

Is there a way to use madge CLI in a watch mode to circular dependencies? Since that we are developing, have it running in a console it will be nice.

Thanks

@mrjoelkemp
Copy link
Contributor

As a quick approach, I'd search for any module that lets you run a command on a file change and wire that up to run the madge command you're using.

Another approach is to add support for a new watch option in Madge that uses a file watcher (like the sane module) that invokes madge's entry point with the given arguments; you'd effectively end up rerunning madge on every file change.

The best but more involved solution is to layer on caching so that madge/dependency-tree only recompute parts of the tree that have changed. With the previous methods, the files that have changed are ignored and only used as a trigger to rerun madge. This would take some exploration but would be really cool.

@pahen pahen self-assigned this Aug 2, 2019
@PabloLION PabloLION added the core dependency tree generation label Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core dependency tree generation
Projects
None yet
Development

No branches or pull requests

4 participants