Initial release
Features:
- Generates dependency information from any javascript code base:
- in html, dot, csv
- highlights for dependencies you have configured to be forbidden
- Configurable dependency validation (and a special bare bones reporter) to integrate into build systems.
- See Daphne's dependencies for a gentle introduction.
Pictures
Graphviz dot output
Build output
(only visible when there's something wrong wit your dependencies):
dependency-cruise -T err -v test/fixtures
Dependency-cruiser found the following illegal dependencies:
test/fixtures/cjs/root_one.js => test/fixtures/cjs/sub/dir.js
test/fixtures/cjs/sub/dir.js => test/fixtures/cjs/sub/depindir.js
test/fixtures/cjs/two_only_one.js => test/fixtures/cjs/sub/dir.js
make: *** [dependency-cruise] Error 3