[Tests] Add `markdown-link-check` script

This uses the npm package `markdown-link-check` to check if all the links in the documentation are alive.
Peter Dave Hello 2017-11-05 04:06:36 +08:00 committed by Jordan Harband
parent 53f9ba8336
commit 1afd4f3566
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,8 @@
"doctoc:check": "diff -q README.md v-README.md.orig",
"postdoctoc:check": "mv v-README.md.orig README.md",
"eclint": "eclint check $(git ls-tree --name-only HEAD | xargs)",
"dockerfile_lint": "dockerfile_lint"
"dockerfile_lint": "dockerfile_lint",
"markdown-link-check": "git ls-files | command grep -E '\\.md$' | xargs -n 1 markdown-link-check -p"
},
"repository": {
"type": "git",
@ -42,6 +43,7 @@
"dockerfile_lint": "^0.3.4",
"doctoc": "^2.0.0",
"eclint": "^2.8.1",
"markdown-link-check": "^3.1.4",
"replace": "^1.2.1",
"semver": "^7.3.5",
"urchin": "^0.0.5"