Skip to content

Commit

Permalink
Allow to pass options to detectives
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Crisci committed Sep 29, 2016
1 parent edf4484 commit 4a94d38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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.detective
}));
});

Expand Down

0 comments on commit 4a94d38

Please sign in to comment.