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

Commit

Permalink
build: create docs test npm scripts (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Feb 11, 2019
1 parent 4fbf6a7 commit b4d4cb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .kokoro/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000",
"test-no-cover": "mocha test/*.js",
"test": "npm run cover",
"fix": "eslint --fix '**/*.js'"
"fix": "eslint --fix '**/*.js'",
"docs-test": "blcl docs -r --exclude www.googleapis.com",
"predocs-test": "npm run docs"
},
"dependencies": {
"google-gax": "^0.25.0",
Expand All @@ -57,6 +59,7 @@
"mocha": "^5.2.0",
"nyc": "^13.0.0",
"power-assert": "^1.6.0",
"prettier": "^1.13.7"
"prettier": "^1.13.7",
"broken-link-checker-local": "^0.2.0"
}
}

0 comments on commit b4d4cb3

Please sign in to comment.