Skip to content

Commit

Permalink
chore: add dependency chart generation as script (#6034)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin committed Jun 17, 2020
1 parent 547f4ea commit 64c9c70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,3 +16,4 @@ yarn.lock
/lib
test/coverage.json
temp/
dependency-chart.png
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -34,7 +34,8 @@
"compare-protocol-d-ts": "node utils/protocol-types-generator compare",
"test-install": "scripts/test-install.sh",
"generate-docs": "npm run tsc && api-extractor run --local --verbose && api-documenter markdown -i temp -o new-docs",
"ensure-new-docs-up-to-date": "npm run generate-docs && exit `git status --porcelain | head -255 | wc -l`"
"ensure-new-docs-up-to-date": "npm run generate-docs && exit `git status --porcelain | head -255 | wc -l`",
"generate-dependency-graph": "echo 'Requires graphviz installed locally!' && depcruise --max-depth 3 --output-type dot src/index.ts | dot -T png > dependency-chart.png"
},
"files": [
"lib/",
Expand Down Expand Up @@ -73,6 +74,7 @@
"@typescript-eslint/parser": "^2.28.0",
"commonmark": "^0.28.1",
"cross-env": "^5.0.5",
"dependency-cruiser": "^9.7.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-mocha": "^6.3.0",
Expand Down

0 comments on commit 64c9c70

Please sign in to comment.