Skip to content

Commit

Permalink
Upgrade repo-tools and regenerate scaffolding. (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry authored and stephenplusplus committed Oct 30, 2017
1 parent 68889c8 commit dded777
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-language/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ out/
system-test/secrets.js
system-test/*key.json
*.lock
*-lock.json
*-lock.js*
19 changes: 11 additions & 8 deletions packages/google-cloud-language/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<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"/>

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

[![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)
[![CircleCI](https://img.shields.io/circleci/project/github/googleapis/nodejs-language.svg?style=flat)](https://circleci.com/gh/googleapis/nodejs-language)
Expand All @@ -11,7 +11,9 @@
[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.


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

Read more about the client libraries for Cloud APIs, including the older
Expand Down Expand Up @@ -92,13 +94,13 @@ client

## Samples

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

| Sample | Source Code |
| --------------------------- | --------------------------------- |
| Analyze v1 | [source code](https://github.com/googleapis/nodejs-language/blob/master/samples/analyze.v1.js) |
| Analyze v1beta2 | [source code](https://github.com/googleapis/nodejs-language/blob/master/samples/analyze.v1beta2.js) |
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| 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) |
| 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) |

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

## Contributing

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

## License

Apache Version 2.0

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

[client-docs]: https://cloud.google.com/nodejs/docs/reference/language/latest/
[product-docs]: https://cloud.google.com/natural-language/docs
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
2 changes: 1 addition & 1 deletion packages/google-cloud-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"lodash.merge": "^4.6.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "^2.0.10",
"@google-cloud/nodejs-repo-tools": "^2.1.0",
"async": "^2.5.0",
"codecov": "^2.3.0",
"eslint": "^4.8.0",
Expand Down
46 changes: 29 additions & 17 deletions packages/google-cloud-language/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Google Cloud Natural Language API: Node.js Samples

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

[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.

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

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

[![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)

__Usage:__ `node analyze.v1.js --help`

```
analyze.v1.js <command>
Commands:
sentiment-text <text> Detects sentiment of a string.
sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
entities-text <text> Detects entities in a string.
entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
syntax-text <text> Detects syntax of a string.
syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
entity-sentiment-text <text> Detects sentiment of the entities in a string.
entity-sentiment-file <bucketName> <fileName> Detects sentiment of the entities in a file in Google Cloud Storage.
analyze.v1.js sentiment-text <text> Detects sentiment of a string.
analyze.v1.js sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
analyze.v1.js entities-text <text> Detects entities in a string.
analyze.v1.js entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
analyze.v1.js syntax-text <text> Detects syntax of a string.
analyze.v1.js syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
analyze.v1.js entity-sentiment-text <text> Detects sentiment of the entities in a string.
analyze.v1.js entity-sentiment-file <bucketName> <fileName> Detects sentiment of the entities in a file in Google
Cloud Storage.
Options:
--version Show version number [boolean]
Expand All @@ -62,18 +67,22 @@ For more information, see https://cloud.google.com/natural-language/docs

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

[![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)

__Usage:__ `node analyze.v1beta2.js --help`

```
analyze.v1beta2.js <command>
Commands:
sentiment-text <text> Detects sentiment of a string.
sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
entities-text <text> Detects entities in a string.
entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
syntax-text <text> Detects syntax of a string.
syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
classify-text <text> Classifies text of a string.
classify-file <bucketName> <fileName> Classifies text in a file in Google Cloud Storage.
analyze.v1beta2.js sentiment-text <text> Detects sentiment of a string.
analyze.v1beta2.js sentiment-file <bucketName> <fileName> Detects sentiment in a file in Google Cloud Storage.
analyze.v1beta2.js entities-text <text> Detects entities in a string.
analyze.v1beta2.js entities-file <bucketName> <fileName> Detects entities in a file in Google Cloud Storage.
analyze.v1beta2.js syntax-text <text> Detects syntax of a string.
analyze.v1beta2.js syntax-file <bucketName> <fileName> Detects syntax in a file in Google Cloud Storage.
analyze.v1beta2.js classify-text <text> Classifies text of a string.
analyze.v1beta2.js classify-file <bucketName> <fileName> Classifies text in a file in Google Cloud Storage.
Options:
--version Show version number [boolean]
Expand All @@ -95,3 +104,6 @@ For more information, see https://cloud.google.com/natural-language/docs

[analyze-v1beta2_1_docs]: https://cloud.google.com/natural-language/docs/
[analyze-v1beta2_1_code]: analyze.v1beta2.js

[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
[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
12 changes: 6 additions & 6 deletions packages/google-cloud-language/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=4.3.2"
"node": ">=4.0.0"
},
"repository": "googleapis/nodejs-language",
"private": true,
Expand All @@ -19,15 +19,15 @@
"test": "repo-tools test run --cmd npm -- run cover"
},
"dependencies": {
"@google-cloud/language": "0.13.0",
"@google-cloud/language": "1.0.0",
"@google-cloud/storage": "1.4.0",
"yargs": "9.0.1"
"yargs": "10.0.3"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "2.0.8",
"ava": "0.22.0",
"@google-cloud/nodejs-repo-tools": "2.1.0",
"ava": "0.23.0",
"proxyquire": "1.8.0",
"sinon": "4.0.1",
"sinon": "4.0.2",
"uuid": "3.1.0"
}
}

0 comments on commit dded777

Please sign in to comment.