Skip to content

Commit 6746b9e

Browse files
authored
Upgrade to repo tools v1.4.7 (#370)
1 parent 0666dc6 commit 6746b9e

4 files changed

Lines changed: 119 additions & 1474 deletions

File tree

cloud-language/snippets/package.json

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
"type": "git",
99
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1010
},
11-
"cloud": {
12-
"requiresKeyFile": true,
13-
"requiresProjectId": true
14-
},
1511
"engines": {
1612
"node": ">=4.3.2"
1713
},
14+
"semistandard": {
15+
"ignore": [
16+
"node_modules"
17+
]
18+
},
1819
"scripts": {
19-
"lint": "samples lint \"*.js\" \"system-test/*.js\" \"slackbot/*.js\" \"slackbot/system-test/*.js\"",
20+
"lint": "samples lint",
2021
"pretest": "npm run lint",
2122
"system-test": "ava -T 20s --verbose system-test/*.test.js",
2223
"test": "npm run system-test"
@@ -27,9 +28,35 @@
2728
"yargs": "7.1.0"
2829
},
2930
"devDependencies": {
30-
"@google-cloud/nodejs-repo-tools": "1.3.1",
31+
"@google-cloud/nodejs-repo-tools": "1.4.7",
3132
"ava": "0.19.1",
3233
"proxyquire": "1.7.11",
3334
"sinon": "2.1.0"
35+
},
36+
"cloud-repo-tools": {
37+
"requiresKeyFile": true,
38+
"requiresProjectId": true,
39+
"product": "nl",
40+
"samples": [
41+
{
42+
"id": "analyze-v1",
43+
"name": "Analyze v1",
44+
"file": "analyze.v1.js",
45+
"docs_link": "https://cloud.google.com/natural-language/docs/",
46+
"usage": "node analyze.v1.js --help"
47+
},
48+
{
49+
"id": "analyze-v1beta2",
50+
"name": "Analyze v1beta2",
51+
"file": "analyze.v1beta2.js",
52+
"docs_link": "https://cloud.google.com/natural-language/docs/",
53+
"usage": "node analyze.v1beta2.js --help"
54+
},
55+
{
56+
"id": "slackbot",
57+
"name": "Slack Bot",
58+
"ref": "slackbot/README.md"
59+
}
60+
]
3461
}
3562
}

cloud-language/snippets/slackbot/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "git",
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
12-
"cloud": {
12+
"cloud-repo-tools": {
1313
"requiresKeyFile": true,
1414
"requiresProjectId": true
1515
},
@@ -29,7 +29,7 @@
2929
"sqlite3": "3.1.8"
3030
},
3131
"devDependencies": {
32-
"@google-cloud/nodejs-repo-tools": "1.3.1",
32+
"@google-cloud/nodejs-repo-tools": "1.4.4",
3333
"ava": "0.19.1",
3434
"proxyquire": "1.7.11",
3535
"sinon": "2.1.0"

0 commit comments

Comments
 (0)