File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments