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

Commit 5451e22

Browse files
build: create docs test npm scripts
1 parent 8fc013e commit 5451e22

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.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
@@ -40,7 +40,9 @@
4040
"fix": "gts fix && eslint --fix '**/*.js'",
4141
"prepare": "npm run compile",
4242
"pretest": "npm run compile",
43-
"presystem-test": "npm run compile"
43+
"presystem-test": "npm run compile",
44+
"docs-test": "blcl docs -r --exclude www.googleapis.com",
45+
"predocs-test": "npm run docs"
4446
},
4547
"dependencies": {
4648
"@google-cloud/common": "^0.30.0",
@@ -75,6 +77,7 @@
7577
"prettier": "^1.13.5",
7678
"proxyquire": "^2.0.1",
7779
"source-map-support": "^0.5.6",
78-
"typescript": "~3.3.0"
80+
"typescript": "~3.3.0",
81+
"broken-link-checker-local": "^0.2.0"
7982
}
8083
}

0 commit comments

Comments
 (0)