Skip to content

Commit dded777

Browse files
jmdobrystephenplusplus
authored andcommitted
Upgrade repo-tools and regenerate scaffolding. (#20)
1 parent 68889c8 commit dded777

File tree

5 files changed

+48
-33
lines changed

5 files changed

+48
-33
lines changed

packages/google-cloud-language/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ out/
77
system-test/secrets.js
88
system-test/*key.json
99
*.lock
10-
*-lock.json
10+
*-lock.js*

packages/google-cloud-language/README.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
22

3-
# Google Cloud Natural Language API: Node.js Client
3+
# [Google Cloud Natural Language API: Node.js Client](https://github.com/googleapis/nodejs-language)
44

55
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style&#x3D;flat)](https://cloud.google.com/terms/launch-stages)
66
[![CircleCI](https://img.shields.io/circleci/project/github/googleapis/nodejs-language.svg?style=flat)](https://circleci.com/gh/googleapis/nodejs-language)
@@ -11,7 +11,9 @@
1111
1212
[Cloud Natural Language API](https://cloud.google.com/natural-language/docs) provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, and syntax analysis. This API is part of the larger Cloud Machine Learning API family.
1313

14+
1415
* [Natural Language API Node.js Client API Reference][client-docs]
16+
* [github.com/googleapis/nodejs-language](https://github.com/googleapis/nodejs-language)
1517
* [Natural Language API Documentation][product-docs]
1618

1719
Read more about the client libraries for Cloud APIs, including the older
@@ -92,13 +94,13 @@ client
9294

9395
## Samples
9496

95-
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-language/blob/master/samples) directory. The samples' `README.md`
97+
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-language/tree/master/samples) directory. The samples' `README.md`
9698
has instructions for running the samples.
9799

98-
| Sample | Source Code |
99-
| --------------------------- | --------------------------------- |
100-
| Analyze v1 | [source code](https://github.com/googleapis/nodejs-language/blob/master/samples/analyze.v1.js) |
101-
| Analyze v1beta2 | [source code](https://github.com/googleapis/nodejs-language/blob/master/samples/analyze.v1beta2.js) |
100+
| Sample | Source Code | Try it |
101+
| --------------------------- | --------------------------------- | ------ |
102+
| Analyze v1 | [source code](https://github.com/googleapis/nodejs-language/blob/master/samples/analyze.v1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-language&page=editor&open_in_editor=samples/analyze.v1.js,samples/README.md) |
103+
| Analyze v1beta2 | [source code](https://github.com/googleapis/nodejs-language/blob/master/samples/analyze.v1beta2.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-language&page=editor&open_in_editor=samples/analyze.v1beta2.js,samples/README.md) |
102104

103105
The [Natural Language API Node.js Client API Reference][client-docs] documentation
104106
also contains samples.
@@ -119,13 +121,14 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages]
119121

120122
## Contributing
121123

122-
Contributions welcome! See the [Contributing Guide](.github/CONTRIBUTING.md).
124+
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-language/blob/master/.github/CONTRIBUTING.md).
123125

124126
## License
125127

126128
Apache Version 2.0
127129

128-
See [LICENSE](LICENSE)
130+
See [LICENSE](https://github.com/googleapis/nodejs-language/blob/master/LICENSE)
129131

130132
[client-docs]: https://cloud.google.com/nodejs/docs/reference/language/latest/
131133
[product-docs]: https://cloud.google.com/natural-language/docs
134+
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png

packages/google-cloud-language/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"lodash.merge": "^4.6.0"
6464
},
6565
"devDependencies": {
66-
"@google-cloud/nodejs-repo-tools": "^2.0.10",
66+
"@google-cloud/nodejs-repo-tools": "^2.1.0",
6767
"async": "^2.5.0",
6868
"codecov": "^2.3.0",
6969
"eslint": "^4.8.0",

packages/google-cloud-language/samples/README.md

+29-17
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Google Cloud Natural Language API: Node.js Samples
44

5-
[![Build](https://storage.googleapis.com/.svg)]()
5+
[![Open in Cloud Shell][shell_img]][shell_link]
66

77
[Cloud Natural Language API](https://cloud.google.com/natural-language/docs) provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, and syntax analysis. This API is part of the larger Cloud Machine Learning API family.
88

@@ -25,18 +25,23 @@ library's README.
2525

2626
View the [source code][analyze-v1_0_code].
2727

28+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-language&page=editor&open_in_editor=samples/analyze.v1.js,samples/README.md)
29+
2830
__Usage:__ `node analyze.v1.js --help`
2931

3032
```
33+
analyze.v1.js <command>
34+
3135
Commands:
32-
sentiment-text <text> Detects sentiment of a string.
33-
sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
34-
entities-text <text> Detects entities in a string.
35-
entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
36-
syntax-text <text> Detects syntax of a string.
37-
syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
38-
entity-sentiment-text <text> Detects sentiment of the entities in a string.
39-
entity-sentiment-file <bucketName> <fileName> Detects sentiment of the entities in a file in Google Cloud Storage.
36+
analyze.v1.js sentiment-text <text> Detects sentiment of a string.
37+
analyze.v1.js sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
38+
analyze.v1.js entities-text <text> Detects entities in a string.
39+
analyze.v1.js entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
40+
analyze.v1.js syntax-text <text> Detects syntax of a string.
41+
analyze.v1.js syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
42+
analyze.v1.js entity-sentiment-text <text> Detects sentiment of the entities in a string.
43+
analyze.v1.js entity-sentiment-file <bucketName> <fileName> Detects sentiment of the entities in a file in Google
44+
Cloud Storage.
4045
4146
Options:
4247
--version Show version number [boolean]
@@ -62,18 +67,22 @@ For more information, see https://cloud.google.com/natural-language/docs
6267

6368
View the [source code][analyze-v1beta2_1_code].
6469

70+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-language&page=editor&open_in_editor=samples/analyze.v1beta2.js,samples/README.md)
71+
6572
__Usage:__ `node analyze.v1beta2.js --help`
6673

6774
```
75+
analyze.v1beta2.js <command>
76+
6877
Commands:
69-
sentiment-text <text> Detects sentiment of a string.
70-
sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
71-
entities-text <text> Detects entities in a string.
72-
entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
73-
syntax-text <text> Detects syntax of a string.
74-
syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
75-
classify-text <text> Classifies text of a string.
76-
classify-file <bucketName> <fileName> Classifies text in a file in Google Cloud Storage.
78+
analyze.v1beta2.js sentiment-text <text> Detects sentiment of a string.
79+
analyze.v1beta2.js sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
80+
analyze.v1beta2.js entities-text <text> Detects entities in a string.
81+
analyze.v1beta2.js entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
82+
analyze.v1beta2.js syntax-text <text> Detects syntax of a string.
83+
analyze.v1beta2.js syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
84+
analyze.v1beta2.js classify-text <text> Classifies text of a string.
85+
analyze.v1beta2.js classify-file <bucketName> <fileName> Classifies text in a file in Google Cloud Storage.
7786
7887
Options:
7988
--version Show version number [boolean]
@@ -95,3 +104,6 @@ For more information, see https://cloud.google.com/natural-language/docs
95104

96105
[analyze-v1beta2_1_docs]: https://cloud.google.com/natural-language/docs/
97106
[analyze-v1beta2_1_code]: analyze.v1beta2.js
107+
108+
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
109+
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-language&page=editor&open_in_editor=samples/README.md

packages/google-cloud-language/samples/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "Apache-2.0",
55
"author": "Google Inc.",
66
"engines": {
7-
"node": ">=4.3.2"
7+
"node": ">=4.0.0"
88
},
99
"repository": "googleapis/nodejs-language",
1010
"private": true,
@@ -19,15 +19,15 @@
1919
"test": "repo-tools test run --cmd npm -- run cover"
2020
},
2121
"dependencies": {
22-
"@google-cloud/language": "0.13.0",
22+
"@google-cloud/language": "1.0.0",
2323
"@google-cloud/storage": "1.4.0",
24-
"yargs": "9.0.1"
24+
"yargs": "10.0.3"
2525
},
2626
"devDependencies": {
27-
"@google-cloud/nodejs-repo-tools": "2.0.8",
28-
"ava": "0.22.0",
27+
"@google-cloud/nodejs-repo-tools": "2.1.0",
28+
"ava": "0.23.0",
2929
"proxyquire": "1.8.0",
30-
"sinon": "4.0.1",
30+
"sinon": "4.0.2",
3131
"uuid": "3.1.0"
3232
}
3333
}

0 commit comments

Comments
 (0)