Comparing version 1.0.0 to 1.1.0
@@ -12,3 +12,3 @@ #!/usr/bin/env node | ||
.usage('[options] <src...>') | ||
.option('-b --basedir <path>', 'base directory for resolving paths') | ||
.option('-b, --basedir <path>', 'base directory for resolving paths') | ||
.option('-s, --summary', 'show dependency count summary') | ||
@@ -15,0 +15,0 @@ .option('-c, --circular', 'show circular dependencies') |
# CHANGELOG | ||
## v1.1.0 (Aug 23, 2016) | ||
* Support for setting custom GraphViz options with config `graphVizOptions`. | ||
## v1.0.0 (Aug 19, 2016) | ||
@@ -4,0 +7,0 @@ |
@@ -23,2 +23,3 @@ 'use strict'; | ||
edgeColor: '#757575', | ||
graphVizOptions: false, | ||
graphVizPath: false | ||
@@ -25,0 +26,0 @@ }; |
@@ -46,3 +46,3 @@ 'use strict'; | ||
return { | ||
G: { | ||
G: Object.assign({ | ||
overlap: false, | ||
@@ -52,7 +52,7 @@ pad: 0.111, | ||
bgcolor: config.backgroundColor | ||
}, | ||
E: { | ||
}, config.graphVizOptions.G), | ||
E: Object.assign({ | ||
color: config.edgeColor | ||
}, | ||
N: { | ||
}, config.graphVizOptions.E), | ||
N: Object.assign({ | ||
fontname: config.fontName, | ||
@@ -62,3 +62,3 @@ fontsize: config.fontSize, | ||
fontcolor: config.nodeColor | ||
} | ||
}, config.graphVizOptions.N) | ||
}; | ||
@@ -65,0 +65,0 @@ } |
@@ -175,2 +175,4 @@ 'use strict'; | ||
absPath = absPath.replace(/\\/g, '/'); | ||
return absPath; | ||
@@ -177,0 +179,0 @@ } |
{ | ||
"name": "madge", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "Patrik Henningsson <patrik.henningsson@gmail.com>", | ||
@@ -8,2 +8,3 @@ "repository": "git://github.com/pahen/madge", | ||
"license": "MIT", | ||
"reveal": true, | ||
"description": "Create graphs from module dependencies.", | ||
@@ -35,3 +36,3 @@ "keywords": [ | ||
"lint": "eslint bin/cli.js lib test/*.js", | ||
"debug": "bin/cli.js --debug bin lib", | ||
"debug": "node bin/cli.js --debug bin lib", | ||
"generate": "npm run generate:small && npm run generate:madge", | ||
@@ -55,5 +56,5 @@ "generate:small": "bin/cli.js --image /tmp/simple.svg test/files/cjs/circular/a.js", | ||
"eslint": "^3.0.0", | ||
"mocha": "^2.3.3", | ||
"should": "^9.0.2" | ||
"mocha": "^3.0.2", | ||
"should": "^11.1.0" | ||
} | ||
} |
@@ -21,3 +21,3 @@ # MaDGe - Module Dependency Graph | ||
> Graph generated from the madge source code. | ||
> Graph generated from the madge's own code and dependencies. | ||
@@ -155,2 +155,3 @@ <a href="http://pahen.github.io/madge/madge.svg"> | ||
`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 | ||
@@ -163,3 +164,8 @@ | ||
"showFileExtension": true, | ||
"fontSize": "10px" | ||
"fontSize": "10px", | ||
"graphVizOptions": { | ||
"G": { | ||
"rankdir": "LR" | ||
} | ||
} | ||
} | ||
@@ -166,0 +172,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
83741
686
274
0