Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace call to repo-tools lint #861

Merged
merged 1 commit into from
Nov 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app",
"test": "npm run system-test"
Expand Down
2 changes: 1 addition & 1 deletion appengine/cloudsql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"node": ">=8"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -instances=$INSTANCE_CONNECTION_NAME=tcp:$SQL_PORT &",
Expand Down
2 changes: 1 addition & 1 deletion appengine/cloudsql_postgresql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"node": ">=8"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -instances=$INSTANCE_CONNECTION_NAME=tcp:$SQL_PORT &",
Expand Down
2 changes: 1 addition & 1 deletion appengine/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app",
"test": "npm run system-test"
Expand Down
2 changes: 1 addition & 1 deletion appengine/endpoints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"system-test": "repo-tools test app",
Expand Down
2 changes: 1 addition & 1 deletion appengine/errorreporting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"system-test": "repo-tools test app",
Expand Down
2 changes: 1 addition & 1 deletion appengine/headless-chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "node app.js",
"system-test": "repo-tools test app",
"unit-test": "ava --verbose test/*.test.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "npm run unit-test && npm run system-test"
},
Expand Down
2 changes: 1 addition & 1 deletion appengine/hello-world/flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app",
"test": "npm run system-test",
Expand Down
2 changes: 1 addition & 1 deletion appengine/hello-world/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app",
"test": "npm run system-test",
Expand Down
2 changes: 1 addition & 1 deletion appengine/mailjet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app",
"test": "npm run system-test"
Expand Down
2 changes: 1 addition & 1 deletion appengine/metadata/flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"node": ">=8"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app -- server.js",
"test": "npm run system-test"
Expand Down
2 changes: 1 addition & 1 deletion appengine/metadata/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"node": ">=8"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app -- ./server.js",
"test": "npm run system-test"
Expand Down
4 changes: 2 additions & 2 deletions auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=4.3.2"
"node": ">=6"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "repo-tools test run --cmd ava -- -T 20s --verbose system-test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion containerengine/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "node server.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app -- server.js",
"test": "npm run system-test"
Expand Down
4 changes: 2 additions & 2 deletions debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=4.3.2"
"node": ">=6"
},
"scripts": {
"deploy": "gcloud app deploy",
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"system-test": "repo-tools test app",
"test": "npm run system-test",
Expand Down
2 changes: 1 addition & 1 deletion endpoints/getting-started-grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "node server.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "repo-tools test run --cmd ava -- -T 1m --verbose system-test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion endpoints/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"start": "node app.js",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "repo-tools test run --cmd ava -- -T 20s --verbose test/*.test.js"
},
Expand Down
4 changes: 2 additions & 2 deletions error-reporting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=4.3.2"
"node": ">=6"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"error-test": "repo-tools test app --msg \"Something broke!\" --url \"http://localhost:33332/error\" --port 33332 -- snippets.js express",
"exception-test": "repo-tools test app --code 500 --msg SyntaxError --url \"http://localhost:33333/exception\" --port 33333 -- snippets.js express",
Expand Down
2 changes: 1 addition & 1 deletion functions/background/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/billing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Examples of integrating Cloud Functions with billing",
"main": "index.js",
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava test/*"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/composer-storage-trigger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"sinon": "4.4.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"test": "ava -T 20s --verbose test/*.test.js"
}
}
2 changes: 1 addition & 1 deletion functions/concepts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint"
"lint": "semistandard '**/*.js'"
},
"dependencies": {
"request": "^2.85.0"
Expand Down
2 changes: 1 addition & 1 deletion functions/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"e2e-test": "export FUNCTIONS_CMD='gcloud functions' && sh test/updateFunctions.sh && BASE_URL=\"https://$GCF_REGION-$GCLOUD_PROJECT.cloudfunctions.net/\" ava -T 20s --verbose test/*.test.js",
"system-test": "export FUNCTIONS_CMD='functions' && sh test/updateFunctions.sh && BASE_URL=\"http://localhost:8010/$GCLOUD_PROJECT/$GCF_REGION\" ava -T 20s --verbose test/*.test.js",
Expand Down
2 changes: 1 addition & 1 deletion functions/env_vars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"pretest": "repo-tools lint",
"pretest": "semistandard '**/*.js'",
"test": "ava -T 30s test/*.test.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion functions/gcs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/headless-chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=8"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"e2e-test": "export FUNCTIONS_CMD='gcloud beta functions' && sh test/updateFunctions.sh && BASE_URL=\"https://$GCF_REGION-$GCLOUD_PROJECT.cloudfunctions.net/\" ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"e2e-test": "export FUNCTIONS_CMD='gcloud functions' && sh test/updateFunctions.sh && BASE_URL=\"https://$GCP_REGION-$GCLOUD_PROJECT.cloudfunctions.net/\" ava -T 20s --verbose test/*.test.js",
"test": "export FUNCTIONS_CMD='functions-emulator' && sh test/updateFunctions.sh && export BASE_URL=\"http://localhost:8010/$GCLOUD_PROJECT/$GCF_REGION\" && ava -T 20s --verbose -c 1 test/index.test.js test/*unit*test.js test/*integration*test.js",
Expand Down
2 changes: 1 addition & 1 deletion functions/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/imagemagick/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/ocr/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/scheduleinstance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=6.0"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/sendgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/slack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "samples lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/spanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion functions/speech-to-speech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"storage"
],
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"local-test": "mocha test/index.test.js",
"system-test": "mocha --timeout 20000 test/sample.integration.http.test.js",
"pretest": "npm run lint && sh test/updateFunctions.sh",
Expand Down
2 changes: 1 addition & 1 deletion functions/sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"start-proxy-pg": "cloud_sql_proxy -instances=$INSTANCE_CONNECTION_NAME-pg=tcp:5432 &",
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && npm run start-proxy-pg && npm run start-proxy-mysql || exit 0",
"kill-proxy": "killall cloud_sql_proxy",
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"ava": "ava -T 20s --verbose test/*.test.js",
"test": "npm run start-proxy && npm run ava && npm run kill-proxy"
Expand Down
2 changes: 1 addition & 1 deletion functions/tips/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=6.14.0"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion functions/uuid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"node": ">=4.3.2"
},
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "ava -T 20s --verbose test/*.test.js"
},
Expand Down
2 changes: 1 addition & 1 deletion iot/http_example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Google Inc.",
"main": "cloudiot_http_example_nodejs.js",
"scripts": {
"lint": "repo-tools lint",
"lint": "semistandard '**/*.js'",
"pretest": "npm run lint",
"test": "repo-tools test run --cmd ava -- -T 3m --verbose system-test/*.test.js"
},
Expand Down
Loading