chore: add dependency chart generation as script (#6034)

This commit is contained in:
Jack Franklin 2020-06-17 14:29:39 +01:00 committed by GitHub
parent 547f4ea60a
commit 64c9c709c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ yarn.lock
/lib
test/coverage.json
temp/
dependency-chart.png

View File

@ -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/",
@ -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",