Skip to content

Commit

Permalink
Merge pull request pahen#105 from piuccio/detective
Browse files Browse the repository at this point in the history
Allow to pass options to detectives
  • Loading branch information
pahen authored Oct 1, 2016
2 parents c82633c + c66201f commit 2de8722
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.detectiveOptions
}));
});

Expand Down

0 comments on commit 2de8722

Please sign in to comment.