angular-architecture-graph
Version:
Create a graph of an angular project's architecture
35 lines (22 loc) • 1.16 kB
Markdown
# Angular Architecture Graph
This project is a node utility that analyses an angular project and exports a graph with the project's architecture: modules, controllers, directives and filters.
[ ](https://www.codeship.io/projects/32481)
## How to use it:
1. Require the module:
```js
var angularArchitectureGraph = require('angular-architecture-graph'),
])
```
2. Call it with your project code:
```js
var architecture = angularArchitectureGraph([
{ id: 'file1.js', text: '<angular code here in a string>' },
{ id: 'file2.js', text: '<angular code here in a string>' }
])
```
It was designed with grunt in mind. Use it with [grunt-angular-modules-graph](https://github.com/lucalanca/grunt-angular-modules-graph).
3. Do whatever you want with the resulted architecture object
## About
This project was originally forked from , extracted from [@carlo-colombo's](https://github.com/carlo-colombo) [angular-modules-graph](https://github.com/carlo-colombo/angular-modules-graph)
## License:
MIT