From dded777012402693798bdb79c61565ebf1e98944 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Mon, 30 Oct 2017 06:27:11 -0700 Subject: [PATCH] Upgrade repo-tools and regenerate scaffolding. (#20) --- packages/google-cloud-language/.gitignore | 2 +- packages/google-cloud-language/README.md | 19 ++++---- packages/google-cloud-language/package.json | 2 +- .../google-cloud-language/samples/README.md | 46 ++++++++++++------- .../samples/package.json | 12 ++--- 5 files changed, 48 insertions(+), 33 deletions(-) diff --git a/packages/google-cloud-language/.gitignore b/packages/google-cloud-language/.gitignore index d97022b4503..6b80718f261 100644 --- a/packages/google-cloud-language/.gitignore +++ b/packages/google-cloud-language/.gitignore @@ -7,4 +7,4 @@ out/ system-test/secrets.js system-test/*key.json *.lock -*-lock.json +*-lock.js* diff --git a/packages/google-cloud-language/README.md b/packages/google-cloud-language/README.md index c05e9358127..36300c83ff4 100644 --- a/packages/google-cloud-language/README.md +++ b/packages/google-cloud-language/README.md @@ -1,6 +1,6 @@ Google Cloud Platform logo -# 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=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) @@ -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 @@ -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. @@ -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 diff --git a/packages/google-cloud-language/package.json b/packages/google-cloud-language/package.json index 714ca1f36a8..780ec0f05ca 100644 --- a/packages/google-cloud-language/package.json +++ b/packages/google-cloud-language/package.json @@ -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", diff --git a/packages/google-cloud-language/samples/README.md b/packages/google-cloud-language/samples/README.md index 63aa1a1b253..35e305b9bb9 100644 --- a/packages/google-cloud-language/samples/README.md +++ b/packages/google-cloud-language/samples/README.md @@ -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. @@ -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 + Commands: - sentiment-text Detects sentiment of a string. - sentiment-file Detects sentiment in a file in Google Cloud Storage. - entities-text Detects entities in a string. - entities-file Detects entities in a file in Google Cloud Storage. - syntax-text Detects syntax of a string. - syntax-file Detects syntax in a file in Google Cloud Storage. - entity-sentiment-text Detects sentiment of the entities in a string. - entity-sentiment-file Detects sentiment of the entities in a file in Google Cloud Storage. + analyze.v1.js sentiment-text Detects sentiment of a string. + analyze.v1.js sentiment-file Detects sentiment in a file in Google Cloud Storage. + analyze.v1.js entities-text Detects entities in a string. + analyze.v1.js entities-file Detects entities in a file in Google Cloud Storage. + analyze.v1.js syntax-text Detects syntax of a string. + analyze.v1.js syntax-file Detects syntax in a file in Google Cloud Storage. + analyze.v1.js entity-sentiment-text Detects sentiment of the entities in a string. + analyze.v1.js entity-sentiment-file Detects sentiment of the entities in a file in Google + Cloud Storage. Options: --version Show version number [boolean] @@ -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 + Commands: - sentiment-text Detects sentiment of a string. - sentiment-file Detects sentiment in a file in Google Cloud Storage. - entities-text Detects entities in a string. - entities-file Detects entities in a file in Google Cloud Storage. - syntax-text Detects syntax of a string. - syntax-file Detects syntax in a file in Google Cloud Storage. - classify-text Classifies text of a string. - classify-file Classifies text in a file in Google Cloud Storage. + analyze.v1beta2.js sentiment-text Detects sentiment of a string. + analyze.v1beta2.js sentiment-file Detects sentiment in a file in Google Cloud Storage. + analyze.v1beta2.js entities-text Detects entities in a string. + analyze.v1beta2.js entities-file Detects entities in a file in Google Cloud Storage. + analyze.v1beta2.js syntax-text Detects syntax of a string. + analyze.v1beta2.js syntax-file Detects syntax in a file in Google Cloud Storage. + analyze.v1beta2.js classify-text Classifies text of a string. + analyze.v1beta2.js classify-file Classifies text in a file in Google Cloud Storage. Options: --version Show version number [boolean] @@ -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 diff --git a/packages/google-cloud-language/samples/package.json b/packages/google-cloud-language/samples/package.json index a06f4835399..5048f608b8b 100644 --- a/packages/google-cloud-language/samples/package.json +++ b/packages/google-cloud-language/samples/package.json @@ -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, @@ -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" } }