Skip to content

Commit 06e2546

Browse files
authored
Add more madge examples (#48)
1 parent 7bd4ded commit 06e2546

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/Informations/detect-dependency-cycles.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,23 @@ https://www.npmjs.com/package/madge
1010
### image export (Ubuntu/Wsl)
1111
- apt-get install graphviz
1212
- npx madge --extensions js,ts --circular --image graph.svg .
13+
14+
15+
### examples
16+
17+
#### as graphic
18+
npx madge --image graph_server.svg dist/apps/server/apps/server.app.js
19+
npx madge --circular --image graph_server_circular.svg dist/apps/server/apps/server.app.js
20+
21+
npx madge --exclude '^(?!.*entity).*$' --image graph_server_entities.svg dist/apps/server/apps/server.app.js
22+
npx madge --circular --exclude '^(?!.*entity).*$' --image graph_server_circular_entities.svg dist/apps/server/apps/server.app.js
23+
24+
#### as text
25+
npx madge --json dist/apps/server/apps/server.app.js >> output.json
26+
27+
### more solutions
28+
29+
https://github.com/jmcdo29/nestjs-spelunker
30+
31+
https://sanyamaggarwal.medium.com/automate-circular-dependency-detection-in-your-node-js-project-394ed08f64bf
32+

0 commit comments

Comments
 (0)