Skip to content

Commit

Permalink
build: create docs test npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Feb 11, 2019
1 parent 10600f0 commit c07450b
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 @@ -42,7 +42,9 @@
"compile": "tsc -p . && cp -r dev/protos build && cp -r dev/test/fake-certificate.json build/test/fake-certificate.json && cp dev/src/v1beta1/firestore_client_config.json build/src/v1beta1/ && cp dev/src/v1/firestore_client_config.json build/src/v1/ && cp dev/conformance/test-definition.proto build/conformance && cp dev/conformance/test-suite.binproto build/conformance",
"fix": "gts fix",
"prepare": "npm run compile",
"pretest-only": "npm run compile"
"pretest-only": "npm run compile",
"docs-test": "blcl docs -r --exclude www.googleapis.com",
"predocs-test": "npm run docs"
},
"dependencies": {
"@google-cloud/projectify": "^0.3.0",
Expand Down Expand Up @@ -81,6 +83,7 @@
"proxyquire": "^2.0.1",
"source-map-support": "^0.5.6",
"ts-node": "^8.0.0",
"typescript": "~3.3.0"
"typescript": "~3.3.0",
"broken-link-checker-local": "^0.2.0"
}
}

0 comments on commit c07450b

Please sign in to comment.