Last active
August 29, 2015 14:11
-
-
Save yllieth/2db9697818e80be17671 to your computer and use it in GitHub Desktop.
Angular dependencies graph
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
sudo apt-get install graphviz | |
npm install grunt-angular-modules-graph --save-dev | |
npm install grunt-graphviz --save-dev |
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
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' | |
] | |
} | |
} | |
}; |
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
module.exports = { | |
dependencies: { | |
files: { | |
'dependencies-graph.png': 'deps.dot' | |
} | |
} | |
}; |
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
grunt modules-graph | |
grunt graphviz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment