@stanimirovv/dependency-diff
v1.0.6
Published
Diff dependency-cruiser jsons
Downloads
2
Readme
Dependency Diff
generate DOT diagrams showing the code level dependency diff between two versions of a git repository
You can visualize the output either with a cmd tool or online
Setup
It is expected you have a git binary.
You need to setup dependency-cruiser in your project as this is what generates the dependencies.
npm i --save-dev dependency-cruiser
npx depcruise --init
npm i --save-dev @stanimirovv/dependency-diff
Verify dependency-cruiser is correctly installed (assumes your code is src, see dependency-cruiser docs for more info)
npx depcruise src --include-only "^src" --output-type dot
Finally, add a script to your package.json
that dependency-diff
will call:
"depcruise-report": "npx depcruise src --include-only "^src" --output-type json"
! Depending on your project's structure this might be a different script
Usage
npx dependency-diff <branch A> <branch B>