Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b151a85

Browse files
build: create docs test npm scripts (googleapis#244)
1 parent 115d349 commit b151a85

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
@@ -58,7 +58,8 @@
5858
"proxyquire": "^2.0.0",
5959
"sinon": "^7.0.0",
6060
"source-map-support": "^0.5.6",
61-
"typescript": "^3.0.0"
61+
"typescript": "^3.0.0",
62+
"broken-link-checker-local": "^0.2.0"
6263
},
6364
"scripts": {
6465
"lint": "npm run check && eslint '**/*.js'",
@@ -73,6 +74,8 @@
7374
"posttest": "npm run check",
7475
"samples-test": "mocha samples/system-test",
7576
"system-test": "mocha build/system-test",
76-
"presystem-test": "npm run compile"
77+
"presystem-test": "npm run compile",
78+
"docs-test": "blcl docs -r --exclude www.googleapis.com",
79+
"predocs-test": "npm run docs"
7780
}
7881
}

0 commit comments

Comments
 (0)