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 721176c commit 384114c
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 @@ -48,7 +48,9 @@
"proto": "npm run proto:spanner && npm run proto:spanner_instance_admin && npm run proto:spanner_database_admin",
"proto:spanner": "mkdir -p proto && pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/spanner/v1/spanner.proto | pbts -o proto/spanner.d.ts -",
"proto:spanner_instance_admin": "pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/spanner/admin/instance/v1/spanner_instance_admin.proto | pbts -o proto/spanner_instance_admin.d.ts -",
"proto:spanner_database_admin": "pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/spanner/admin/database/v1/spanner_database_admin.proto | pbts -o proto/spanner_database_admin.d.ts -"
"proto:spanner_database_admin": "pbjs -t static-module -w commonjs -p node_modules/google-proto-files google/spanner/admin/database/v1/spanner_database_admin.proto | pbts -o proto/spanner_database_admin.d.ts -",
"docs-test": "blcl docs -r --exclude www.googleapis.com",
"predocs-test": "npm run docs"
},
"dependencies": {
"@google-cloud/common-grpc": "^0.10.0",
Expand Down Expand Up @@ -115,6 +117,7 @@
"time-span": "^2.0.0",
"typescript": "~3.3.0",
"uuid": "^3.3.2",
"yargs": "^12.0.1"
"yargs": "^12.0.1",
"broken-link-checker-local": "^0.2.0"
}
}

0 comments on commit 384114c

Please sign in to comment.