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

Add more madge examples #48

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/Informations/detect-dependency-cycles.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@ https://www.npmjs.com/package/madge
### image export (Ubuntu/Wsl)
- apt-get install graphviz
- npx madge --extensions js,ts --circular --image graph.svg .


### examples

#### as graphic
npx madge --image graph_server.svg dist/apps/server/apps/server.app.js
npx madge --circular --image graph_server_circular.svg dist/apps/server/apps/server.app.js

npx madge --exclude '^(?!.*entity).*$' --image graph_server_entities.svg dist/apps/server/apps/server.app.js
npx madge --circular --exclude '^(?!.*entity).*$' --image graph_server_circular_entities.svg dist/apps/server/apps/server.app.js

#### as text
npx madge --json dist/apps/server/apps/server.app.js >> output.json

### more solutions

https://github.com/jmcdo29/nestjs-spelunker

https://sanyamaggarwal.medium.com/automate-circular-dependency-detection-in-your-node-js-project-394ed08f64bf

Loading