Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to pass options to detectives #105

Merged
merged 1 commit into from
Oct 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Property | Type | Default | Description
`edgeColor` | String | #757575 | Edge color to use in the graph
`graphVizOptions` | Object | false | Custom GraphViz [options](http://www.graphviz.org/content/attrs)
`graphVizPath` | String | null | Custom GraphViz path
`detectiveOptions` | Object | false | Custom `detective` options for [dependency-tree](https://github.com/dependents/node-dependency-tree)

> Note that when running the CLI it's possible to use a runtime configuration file. The config should placed in `.madgerc` in your project or home folder. Look [here](https://github.com/dominictarr/rc#standards) for alternative locations for the file. Here's an example:

Expand Down Expand Up @@ -280,4 +281,4 @@ minimize a global energy function, which is equivalent to statistical multi-dime

# License

MIT License
MIT License
3 changes: 2 additions & 1 deletion lib/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ class Tree {
requireConfig: this.config.requireConfig,
webpackConfig: this.config.webpackConfig,
visited: visited,
filter: this.filterPath.bind(this)
filter: this.filterPath.bind(this),
detective: this.config.detectiveOptions
}));
});

Expand Down