Skip to content

Commit

Permalink
refactor: drop repo-tool as an exec wrapper (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and alexander-fenster committed Jun 26, 2018
1 parent 4077f40 commit 3cd04d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
7 changes: 1 addition & 6 deletions packages/google-cloud-language/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,7 @@ jobs:
fi
- run: &npm_install_and_link
name: Install and link the module.
command: |
npm install
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
if ! test -x "$repo_tools"; then
chmod +x "$repo_tools"
fi
command: npm install
- run:
name: Run unit tests.
command: npm test
Expand Down
12 changes: 6 additions & 6 deletions packages/google-cloud-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
],
"scripts": {
"cover": "nyc --reporter=lcov mocha --require intelli-espower-loader test/*.js && nyc report",
"docs": "repo-tools exec -- jsdoc -c .jsdoc.js",
"docs": "jsdoc -c .jsdoc.js",
"generate-scaffolding": "repo-tools generate all && repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json",
"lint": "repo-tools lint --cmd eslint -- src/ samples/ system-test/ test/",
"prettier": "repo-tools exec -- prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js",
"lint": "eslint src/ samples/ system-test/ test/",
"prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js",
"samples-test": "cd samples/ && npm test && cd ../",
"system-test": "repo-tools test run --cmd mocha -- system-test/*.js --timeout 600000",
"test-no-cover": "repo-tools test run --cmd mocha -- test/*.js --no-timeouts",
"test": "repo-tools test run --cmd npm -- run cover"
"system-test": "mocha system-test/*.js --timeout 600000",
"test-no-cover": "mocha test/*.js --no-timeouts",
"test": "npm run cover"
},
"dependencies": {
"google-gax": "^0.16.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-language/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"ava": "ava -T 20s --verbose test/*.test.js ./system-test/*.test.js",
"cover": "nyc --reporter=lcov --cache ava -T 20s --verbose test/*.test.js ./system-test/*.test.js && nyc report",
"test": "repo-tools test run --cmd npm -- run cover"
"test": "npm run cover"
},
"dependencies": {
"@google-cloud/language": "1.2.0",
Expand Down

0 comments on commit 3cd04d8

Please sign in to comment.