Repository - API - Source
dependency-tree
module to get rid of the eslint dependencydependency-tree
to 6.0.0--depends
and --exclude
match filenames.--orphans
to show modules that no one is depending on.--include-npm
addeddependencyFilter
foo.js
> foo.json
due to how file extensions are handled.--show-skipped
to --warning
.es6.mixedImports
.--stdin
to be used for piping a predefined tree.graphVizOptions
.After 4 years of adding features/fixes it started to be hard to maintain the project and fix some outstanding issues due to how madge was designed to work.
So I decided it was high time for version 1.0 to be released and take the opportunity to do a major rewrite and reduce the size and responsibility of the project and delegate some work to external libraries. This introduced many breaking changes. Here's the most important ones.
Added:
.madgerc
(replaces --config
)--webpack-config
for supporting aliased module paths--debug
for turning on debug outputChanged:
--json
should now be used instead of --output json
Removed:
--format
since the format is now detected automatically from the file content--optimized
and --main-require-module
since we no longer support RequireJS builds (r.js)--read
--find-nested-dependencies
--paths
--config
--output
--break-on-error
onParseFile
and onAddModule