Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit b4fdab1

Browse files
build: create docs test npm scripts (#324)
1 parent c75f895 commit b4fdab1

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.kokoro/docs.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,4 @@ cd $(dirname $0)/..
2222

2323
npm install
2424

25-
npm run docs
26-
27-
# Check broken links
28-
BIN=./node_modules/.bin
29-
30-
npm install broken-link-checker
31-
npm install http-server
32-
$BIN/http-server -p 8080 docs/ &
33-
$BIN/blc http://localhost:8080 -r --exclude www.googleapis.com
25+
npm run docs-test

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
"system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000",
3838
"test-no-cover": "mocha test/*.js",
3939
"test": "npm run cover",
40-
"fix": "eslint --fix '**/*.js'"
40+
"fix": "eslint --fix '**/*.js'",
41+
"docs-test": "blcl docs -r --exclude www.googleapis.com",
42+
"predocs-test": "npm run docs"
4143
},
4244
"dependencies": {
4345
"@google-cloud/promisify": "^0.3.0",
@@ -62,6 +64,7 @@
6264
"power-assert": "^1.6.0",
6365
"prettier": "^1.13.6",
6466
"sinon": "^7.0.0",
65-
"uuid": "^3.3.0"
67+
"uuid": "^3.3.0",
68+
"broken-link-checker-local": "^0.2.0"
6669
}
6770
}

0 commit comments

Comments
 (0)