Skip to content

Instantly share code, notes, and snippets.

@epreston
Created April 28, 2023 18:13
Show Gist options
  • Save epreston/f43397b2fec788db210b4360e4155044 to your computer and use it in GitHub Desktop.
Save epreston/f43397b2fec788db210b4360e4155044 to your computer and use it in GitHub Desktop.
madgerc - simple configuration for madge
{
"layout": "dot",
"rankdir": "LR",
"fontName": "Courier",
"fontSize": "16",
"detectiveOptions": {
"es6": {
"skipTypeImports": true
},
"ts": {
"skipTypeImports": true
}
}
}
@epreston
Copy link
Author

https://github.com/pahen/madge

Useful for generating dependency graphs and checking for circular references.

@epreston
Copy link
Author

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