diff --git a/.kokoro/docs.sh b/.kokoro/docs.sh index ea6e514..a4f3187 100755 --- a/.kokoro/docs.sh +++ b/.kokoro/docs.sh @@ -22,12 +22,4 @@ cd $(dirname $0)/.. npm install -npm run docs - -# Check broken links -BIN=./node_modules/.bin - -npm install broken-link-checker -npm install http-server -$BIN/http-server -p 8080 docs/ & -$BIN/blc http://localhost:8080 -r --exclude www.googleapis.com +npm run docs-test diff --git a/package.json b/package.json index 7cfd0c6..7736a5d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "system-test": "mocha build/system-test --timeout 20000", "samples-test": "echo no samples 🤷‍♂️", "presystem-test": "npm run compile", - "docs": "compodoc src/" + "docs": "compodoc src/", + "docs-test": "blcl docs -r --exclude www.googleapis.com", + "predocs-test": "npm run docs" }, "keywords": [ "google", @@ -68,6 +70,7 @@ "nyc": "^13.0.0", "source-map-support": "^0.5.6", "through2": "^3.0.0", - "typescript": "~3.3.0" + "typescript": "~3.3.0", + "broken-link-checker-local": "^0.2.0" } }