Skip to content

Commit

Permalink
build: create docs test npm scripts (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Feb 11, 2019
1 parent 8a99d56 commit 7d9f77f
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
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
Expand Up @@ -39,7 +39,9 @@
"prepare": "npm run compile",
"pretest": "npm run compile",
"proto": "npm run proto:datastore",
"proto:datastore": "mkdir -p proto && pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/datastore/v1/datastore.proto | pbts -o proto/datastore.d.ts -"
"proto:datastore": "mkdir -p proto && pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/datastore/v1/datastore.proto | pbts -o proto/datastore.d.ts -",
"docs-test": "blcl docs -r --exclude www.googleapis.com",
"predocs-test": "npm run docs"
},
"dependencies": {
"@google-cloud/projectify": "^0.3.2",
Expand Down Expand Up @@ -82,6 +84,7 @@
"prettier": "^1.13.5",
"proxyquire": "^2.0.1",
"sinon": "^7.0.0",
"typescript": "~3.3.0"
"typescript": "~3.3.0",
"broken-link-checker-local": "^0.2.0"
}
}

0 comments on commit 7d9f77f

Please sign in to comment.