Skip to content

Instantly share code, notes, and snippets.

@yllieth
Last active August 29, 2015 14:11
Show Gist options
  • Save yllieth/2db9697818e80be17671 to your computer and use it in GitHub Desktop.
Save yllieth/2db9697818e80be17671 to your computer and use it in GitHub Desktop.
Angular dependencies graph
sudo apt-get install graphviz
npm install grunt-angular-modules-graph --save-dev
npm install grunt-graphviz --save-dev
module.exports = {
options: {
// Task-specific options go here.
},
your_target: {
files: {
'deps.dot': [
'<%= hub.app %>/modules/**/scripts/**/*.js',
'<%= hub.app %>/modules/**/modulesConfiguration.js',
'<%= hub.app %>/modules/app.js'
]
}
}
};
module.exports = {
dependencies: {
files: {
'dependencies-graph.png': 'deps.dot'
}
}
};
grunt modules-graph
grunt graphviz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment