Created
April 28, 2023 18:13
-
-
Save epreston/f43397b2fec788db210b4360e4155044 to your computer and use it in GitHub Desktop.
madgerc - simple configuration for madge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"layout": "dot", | |
"rankdir": "LR", | |
"fontName": "Courier", | |
"fontSize": "16", | |
"detectiveOptions": { | |
"es6": { | |
"skipTypeImports": true | |
}, | |
"ts": { | |
"skipTypeImports": true | |
} | |
} | |
} |
Example NPM Config
"scripts": {
"madge-circular": "madge src --circular",
"madge-graphs": "madge src -i graphs/dependency-graph.svg"
},
Graphs require graphviz dependencies.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/pahen/madge
Useful for generating dependency graphs and checking for circular references.