Skip to content

Instantly share code, notes, and snippets.

@yifeiyin
Created July 9, 2020 02:33
Show Gist options
  • Save yifeiyin/3858a66ef38721b5f0a10f1bdfa3a4c9 to your computer and use it in GitHub Desktop.
Save yifeiyin/3858a66ef38721b5f0a10f1bdfa3a4c9 to your computer and use it in GitHub Desktop.
Generate React Components Dependency Graph
https://www.netlify.com/blog/2018/08/23/how-to-easily-visualize-a-projects-dependency-graph-with-dependency-cruiser/
npm i -g dependency-cruiser
brew install graphviz
depcruise --exclude "^node_modules" --output-type dot src | dot -T svg > dependencygraph.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment