diff --git a/.kokoro/docs.sh b/.kokoro/docs.sh index ea6e514f..a4f31879 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 0dc17ecf..3d2cdbad 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,9 @@ "pretest": "npm run compile", "posttest": "npm run check", "proto": "npm run proto:logging", - "proto:logging": "mkdir -p proto && pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/logging/v2/logging.proto | pbts -o proto/logging.d.ts -" + "proto:logging": "mkdir -p proto && pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/logging/v2/logging.proto | pbts -o proto/logging.d.ts -", + "docs-test": "blcl docs -r --exclude www.googleapis.com", + "predocs-test": "npm run docs" }, "dependencies": { "@google-cloud/common-grpc": "^0.10.0", @@ -105,6 +107,7 @@ "prettier": "^1.15.1", "proxyquire": "^2.1.0", "typescript": "~3.3.0", - "uuid": "^3.3.2" + "uuid": "^3.3.2", + "broken-link-checker-local": "^0.2.0" } }