From d11ce7da0cdf352d1d89247b8c5872c03002ebd3 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Mon, 29 Apr 2019 16:15:02 -0700 Subject: [PATCH] chore: generate common files using synthtool --- .github/ISSUE_TEMPLATE/bug_report.md | 33 +++++ .github/ISSUE_TEMPLATE/feature_request.md | 18 +++ .github/ISSUE_TEMPLATE/support_request.md | 7 ++ .gitignore | 1 + .jsdoc.js | 45 +++++++ .kokoro/common.cfg | 24 ++++ .kokoro/continuous/node10/common.cfg | 24 ++++ .kokoro/continuous/node10/docs.cfg | 4 + .kokoro/continuous/node10/lint.cfg | 4 + .kokoro/continuous/node10/samples-test.cfg | 7 ++ .../continuous/node10/system-test-grpcjs.cfg | 12 ++ .kokoro/continuous/node10/system-test.cfg | 7 ++ .kokoro/continuous/node10/test.cfg | 0 .kokoro/continuous/node11/common.cfg | 24 ++++ .kokoro/continuous/node11/test.cfg | 0 .kokoro/continuous/node6/common.cfg | 24 ++++ .kokoro/continuous/node6/test.cfg | 0 .kokoro/continuous/node8/common.cfg | 24 ++++ .kokoro/continuous/node8/test.cfg | 9 ++ .kokoro/docs.sh | 25 ++++ .kokoro/lint.sh | 31 +++++ .kokoro/presubmit/node10/common.cfg | 24 ++++ .kokoro/presubmit/node10/docs.cfg | 4 + .kokoro/presubmit/node10/lint.cfg | 4 + .kokoro/presubmit/node10/samples-test.cfg | 7 ++ .../presubmit/node10/system-test-grpcjs.cfg | 12 ++ .kokoro/presubmit/node10/system-test.cfg | 7 ++ .kokoro/presubmit/node10/test.cfg | 0 .kokoro/presubmit/node11/common.cfg | 24 ++++ .kokoro/presubmit/node11/test.cfg | 0 .kokoro/presubmit/node6/common.cfg | 24 ++++ .kokoro/presubmit/node6/test.cfg | 0 .kokoro/presubmit/node8/common.cfg | 24 ++++ .kokoro/presubmit/node8/test.cfg | 9 ++ .kokoro/presubmit/windows/common.cfg | 2 + .kokoro/presubmit/windows/test.cfg | 2 + .kokoro/publish.sh | 31 +++++ .kokoro/release/publish.cfg | 74 +++++++++++ .kokoro/samples-test.sh | 42 +++++++ .kokoro/system-test.sh | 36 ++++++ .kokoro/test.bat | 27 ++++ .kokoro/test.sh | 27 ++++ .kokoro/trampoline.sh | 27 ++++ .readme-partials.yml | 39 ++++++ .repo-metadata.json | 8 ++ CODE_OF_CONDUCT.md | 43 +++++++ CONTRIBUTING.md | 67 +++++++--- LICENSE.txt => LICENSE | 2 +- README.md | 118 +++++++++++++++++- codecov.yaml | 4 + package.json | 5 +- renovate.json | 18 +++ synth.metadata | 12 ++ synth.py | 13 ++ 54 files changed, 1031 insertions(+), 28 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/support_request.md create mode 100644 .jsdoc.js create mode 100644 .kokoro/common.cfg create mode 100644 .kokoro/continuous/node10/common.cfg create mode 100644 .kokoro/continuous/node10/docs.cfg create mode 100644 .kokoro/continuous/node10/lint.cfg create mode 100644 .kokoro/continuous/node10/samples-test.cfg create mode 100644 .kokoro/continuous/node10/system-test-grpcjs.cfg create mode 100644 .kokoro/continuous/node10/system-test.cfg create mode 100644 .kokoro/continuous/node10/test.cfg create mode 100644 .kokoro/continuous/node11/common.cfg create mode 100644 .kokoro/continuous/node11/test.cfg create mode 100644 .kokoro/continuous/node6/common.cfg create mode 100644 .kokoro/continuous/node6/test.cfg create mode 100644 .kokoro/continuous/node8/common.cfg create mode 100644 .kokoro/continuous/node8/test.cfg create mode 100755 .kokoro/docs.sh create mode 100755 .kokoro/lint.sh create mode 100644 .kokoro/presubmit/node10/common.cfg create mode 100644 .kokoro/presubmit/node10/docs.cfg create mode 100644 .kokoro/presubmit/node10/lint.cfg create mode 100644 .kokoro/presubmit/node10/samples-test.cfg create mode 100644 .kokoro/presubmit/node10/system-test-grpcjs.cfg create mode 100644 .kokoro/presubmit/node10/system-test.cfg create mode 100644 .kokoro/presubmit/node10/test.cfg create mode 100644 .kokoro/presubmit/node11/common.cfg create mode 100644 .kokoro/presubmit/node11/test.cfg create mode 100644 .kokoro/presubmit/node6/common.cfg create mode 100644 .kokoro/presubmit/node6/test.cfg create mode 100644 .kokoro/presubmit/node8/common.cfg create mode 100644 .kokoro/presubmit/node8/test.cfg create mode 100644 .kokoro/presubmit/windows/common.cfg create mode 100644 .kokoro/presubmit/windows/test.cfg create mode 100755 .kokoro/publish.sh create mode 100644 .kokoro/release/publish.cfg create mode 100755 .kokoro/samples-test.sh create mode 100755 .kokoro/system-test.sh create mode 100644 .kokoro/test.bat create mode 100755 .kokoro/test.sh create mode 100755 .kokoro/trampoline.sh create mode 100644 .readme-partials.yml create mode 100644 .repo-metadata.json create mode 100644 CODE_OF_CONDUCT.md rename LICENSE.txt => LICENSE (99%) create mode 100644 codecov.yaml create mode 100644 renovate.json create mode 100644 synth.metadata create mode 100644 synth.py diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..b1b51898a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,33 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +Please run down the following list and make sure you've tried the usual "quick fixes": + + - Search the issues already opened: https://github.com/googleapis/release-please/issues + - Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-node + - Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js + +If you are still having issues, please be sure to include as much information as possible: + +#### Environment details + + - OS: + - Node.js version: + - npm version: + - `release-please` version: + +#### Steps to reproduce + + 1. ? + 2. ? + +Making sure to follow these steps will guarantee the quickest resolution possible. + +Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..6365857f3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,18 @@ +--- +name: Feature request +about: Suggest an idea for this library + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + + **Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + **Describe the solution you'd like** +A clear and concise description of what you want to happen. + **Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + **Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md new file mode 100644 index 000000000..995869032 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/support_request.md @@ -0,0 +1,7 @@ +--- +name: Support request +about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. + +--- + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.gitignore b/.gitignore index 06507615d..5707ebc36 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ coverage .DS_Store build/ system-test/fixtures/gh/* +__pycache__ diff --git a/.jsdoc.js b/.jsdoc.js new file mode 100644 index 000000000..df0883ef2 --- /dev/null +++ b/.jsdoc.js @@ -0,0 +1,45 @@ +/*! + * Copyright 2018 Google LLC. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +'use strict'; + +module.exports = { + opts: { + readme: './README.md', + package: './package.json', + template: './node_modules/jsdoc-baseline', + recurse: true, + verbose: true, + destination: './docs/' + }, + plugins: [ + 'plugins/markdown' + ], + source: { + excludePattern: '(^|\\/|\\\\)[._]', + include: [ + 'src' + ], + includePattern: '\\.js$' + }, + templates: { + copyright: 'Copyright 2018 Google, LLC.', + includeDate: false, + sourceFiles: false, + systemName: 'release-please', + theme: 'lumen' + } +}; diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg new file mode 100644 index 000000000..f8ea38349 --- /dev/null +++ b/.kokoro/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/continuous/node10/common.cfg b/.kokoro/continuous/node10/common.cfg new file mode 100644 index 000000000..f8ea38349 --- /dev/null +++ b/.kokoro/continuous/node10/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/continuous/node10/docs.cfg b/.kokoro/continuous/node10/docs.cfg new file mode 100644 index 000000000..676f66b5e --- /dev/null +++ b/.kokoro/continuous/node10/docs.cfg @@ -0,0 +1,4 @@ +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/docs.sh" +} diff --git a/.kokoro/continuous/node10/lint.cfg b/.kokoro/continuous/node10/lint.cfg new file mode 100644 index 000000000..139008727 --- /dev/null +++ b/.kokoro/continuous/node10/lint.cfg @@ -0,0 +1,4 @@ +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/lint.sh" +} diff --git a/.kokoro/continuous/node10/samples-test.cfg b/.kokoro/continuous/node10/samples-test.cfg new file mode 100644 index 000000000..74eab28af --- /dev/null +++ b/.kokoro/continuous/node10/samples-test.cfg @@ -0,0 +1,7 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/samples-test.sh" +} diff --git a/.kokoro/continuous/node10/system-test-grpcjs.cfg b/.kokoro/continuous/node10/system-test-grpcjs.cfg new file mode 100644 index 000000000..913592c1f --- /dev/null +++ b/.kokoro/continuous/node10/system-test-grpcjs.cfg @@ -0,0 +1,12 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/system-test.sh" +} + +env_vars: { + key: "GOOGLE_CLOUD_USE_GRPC_JS" + value: "1" +} diff --git a/.kokoro/continuous/node10/system-test.cfg b/.kokoro/continuous/node10/system-test.cfg new file mode 100644 index 000000000..e5f9bd009 --- /dev/null +++ b/.kokoro/continuous/node10/system-test.cfg @@ -0,0 +1,7 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/system-test.sh" +} diff --git a/.kokoro/continuous/node10/test.cfg b/.kokoro/continuous/node10/test.cfg new file mode 100644 index 000000000..e69de29bb diff --git a/.kokoro/continuous/node11/common.cfg b/.kokoro/continuous/node11/common.cfg new file mode 100644 index 000000000..ccd4f2aa1 --- /dev/null +++ b/.kokoro/continuous/node11/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:11-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/continuous/node11/test.cfg b/.kokoro/continuous/node11/test.cfg new file mode 100644 index 000000000..e69de29bb diff --git a/.kokoro/continuous/node6/common.cfg b/.kokoro/continuous/node6/common.cfg new file mode 100644 index 000000000..1fb877888 --- /dev/null +++ b/.kokoro/continuous/node6/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:6-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/continuous/node6/test.cfg b/.kokoro/continuous/node6/test.cfg new file mode 100644 index 000000000..e69de29bb diff --git a/.kokoro/continuous/node8/common.cfg b/.kokoro/continuous/node8/common.cfg new file mode 100644 index 000000000..6c67dbab7 --- /dev/null +++ b/.kokoro/continuous/node8/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/continuous/node8/test.cfg b/.kokoro/continuous/node8/test.cfg new file mode 100644 index 000000000..468b8c719 --- /dev/null +++ b/.kokoro/continuous/node8/test.cfg @@ -0,0 +1,9 @@ +# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "dpebot_codecov_token" + } + } +} diff --git a/.kokoro/docs.sh b/.kokoro/docs.sh new file mode 100755 index 000000000..a4f318794 --- /dev/null +++ b/.kokoro/docs.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -xeo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +cd $(dirname $0)/.. + +npm install + +npm run docs-test diff --git a/.kokoro/lint.sh b/.kokoro/lint.sh new file mode 100755 index 000000000..7c2ea2a28 --- /dev/null +++ b/.kokoro/lint.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -xeo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +cd $(dirname $0)/.. + +npm install + +# Install and link samples +cd samples/ +npm link ../ +npm install +cd .. + +npm run lint diff --git a/.kokoro/presubmit/node10/common.cfg b/.kokoro/presubmit/node10/common.cfg new file mode 100644 index 000000000..f8ea38349 --- /dev/null +++ b/.kokoro/presubmit/node10/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/presubmit/node10/docs.cfg b/.kokoro/presubmit/node10/docs.cfg new file mode 100644 index 000000000..676f66b5e --- /dev/null +++ b/.kokoro/presubmit/node10/docs.cfg @@ -0,0 +1,4 @@ +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/docs.sh" +} diff --git a/.kokoro/presubmit/node10/lint.cfg b/.kokoro/presubmit/node10/lint.cfg new file mode 100644 index 000000000..139008727 --- /dev/null +++ b/.kokoro/presubmit/node10/lint.cfg @@ -0,0 +1,4 @@ +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/lint.sh" +} diff --git a/.kokoro/presubmit/node10/samples-test.cfg b/.kokoro/presubmit/node10/samples-test.cfg new file mode 100644 index 000000000..74eab28af --- /dev/null +++ b/.kokoro/presubmit/node10/samples-test.cfg @@ -0,0 +1,7 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/samples-test.sh" +} diff --git a/.kokoro/presubmit/node10/system-test-grpcjs.cfg b/.kokoro/presubmit/node10/system-test-grpcjs.cfg new file mode 100644 index 000000000..913592c1f --- /dev/null +++ b/.kokoro/presubmit/node10/system-test-grpcjs.cfg @@ -0,0 +1,12 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/system-test.sh" +} + +env_vars: { + key: "GOOGLE_CLOUD_USE_GRPC_JS" + value: "1" +} diff --git a/.kokoro/presubmit/node10/system-test.cfg b/.kokoro/presubmit/node10/system-test.cfg new file mode 100644 index 000000000..e5f9bd009 --- /dev/null +++ b/.kokoro/presubmit/node10/system-test.cfg @@ -0,0 +1,7 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/system-test.sh" +} diff --git a/.kokoro/presubmit/node10/test.cfg b/.kokoro/presubmit/node10/test.cfg new file mode 100644 index 000000000..e69de29bb diff --git a/.kokoro/presubmit/node11/common.cfg b/.kokoro/presubmit/node11/common.cfg new file mode 100644 index 000000000..ccd4f2aa1 --- /dev/null +++ b/.kokoro/presubmit/node11/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:11-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/presubmit/node11/test.cfg b/.kokoro/presubmit/node11/test.cfg new file mode 100644 index 000000000..e69de29bb diff --git a/.kokoro/presubmit/node6/common.cfg b/.kokoro/presubmit/node6/common.cfg new file mode 100644 index 000000000..1fb877888 --- /dev/null +++ b/.kokoro/presubmit/node6/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:6-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/presubmit/node6/test.cfg b/.kokoro/presubmit/node6/test.cfg new file mode 100644 index 000000000..e69de29bb diff --git a/.kokoro/presubmit/node8/common.cfg b/.kokoro/presubmit/node8/common.cfg new file mode 100644 index 000000000..6c67dbab7 --- /dev/null +++ b/.kokoro/presubmit/node8/common.cfg @@ -0,0 +1,24 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user" +} +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/test.sh" +} diff --git a/.kokoro/presubmit/node8/test.cfg b/.kokoro/presubmit/node8/test.cfg new file mode 100644 index 000000000..468b8c719 --- /dev/null +++ b/.kokoro/presubmit/node8/test.cfg @@ -0,0 +1,9 @@ +# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "dpebot_codecov_token" + } + } +} diff --git a/.kokoro/presubmit/windows/common.cfg b/.kokoro/presubmit/windows/common.cfg new file mode 100644 index 000000000..d6e25e0b1 --- /dev/null +++ b/.kokoro/presubmit/windows/common.cfg @@ -0,0 +1,2 @@ +# Format: //devtools/kokoro/config/proto/build.proto + diff --git a/.kokoro/presubmit/windows/test.cfg b/.kokoro/presubmit/windows/test.cfg new file mode 100644 index 000000000..9d6253ee5 --- /dev/null +++ b/.kokoro/presubmit/windows/test.cfg @@ -0,0 +1,2 @@ +# Use the test file directly +build_file: "release-please/.kokoro/test.bat" diff --git a/.kokoro/publish.sh b/.kokoro/publish.sh new file mode 100755 index 000000000..2be138d7a --- /dev/null +++ b/.kokoro/publish.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +# Start the releasetool reporter +python3 -m pip install gcp-releasetool +python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script + +cd $(dirname $0)/.. + +NPM_TOKEN=$(cat $KOKORO_KEYSTORE_DIR/73713_release-please-npm-token) +echo "//wombat-dressing-room.appspot.com/:_authToken=${NPM_TOKEN}" > ~/.npmrc + +npm install +npm publish --access=public --registry=https://wombat-dressing-room.appspot.com diff --git a/.kokoro/release/publish.cfg b/.kokoro/release/publish.cfg new file mode 100644 index 000000000..41a4a5bda --- /dev/null +++ b/.kokoro/release/publish.cfg @@ -0,0 +1,74 @@ +# Get npm token from Keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "google_cloud_npm_token" + backend_type: FASTCONFIGPUSH + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "yoshi-automation-github-key" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "docuploader_service_account" + } + } +} + +# Fetch magictoken to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "releasetool-magictoken" + } + } +} + +# Fetch api key to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "magic-github-proxy-api-key" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "release-please-npm-token" + } + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "release-please/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/release-please/.kokoro/publish.sh" +} diff --git a/.kokoro/samples-test.sh b/.kokoro/samples-test.sh new file mode 100755 index 000000000..5a81ec01f --- /dev/null +++ b/.kokoro/samples-test.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -xeo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +# Setup service account credentials. +export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json +export GCLOUD_PROJECT=long-door-651 + +cd $(dirname $0)/.. + +# Run a pre-test hook, if a pre-samples-test.sh is in the project +if [ -f .kokoro/pre-samples-test.sh ]; then + set +x + . .kokoro/pre-samples-test.sh + set -x +fi + +npm install + +# Install and link samples +cd samples/ +npm link ../ +npm install +cd .. + +npm run samples-test diff --git a/.kokoro/system-test.sh b/.kokoro/system-test.sh new file mode 100755 index 000000000..fd8f0b638 --- /dev/null +++ b/.kokoro/system-test.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -xeo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +# Setup service account credentials. +export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json +export GCLOUD_PROJECT=long-door-651 + +cd $(dirname $0)/.. + +# Run a pre-test hook, if a pre-system-test.sh is in the project +if [ -f .kokoro/pre-system-test.sh ]; then + set +x + . .kokoro/pre-system-test.sh + set -x +fi + +npm install + +npm run system-test diff --git a/.kokoro/test.bat b/.kokoro/test.bat new file mode 100644 index 000000000..767320757 --- /dev/null +++ b/.kokoro/test.bat @@ -0,0 +1,27 @@ +@rem Copyright 2018 Google LLC. All rights reserved. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem http://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. + +@echo "Starting Windows build" + +cd /d %~dp0 +cd .. + +call npm install -g npm@latest || goto :error +call npm install || goto :error +call npm run test || goto :error + +goto :EOF + +:error +exit /b 1 diff --git a/.kokoro/test.sh b/.kokoro/test.sh new file mode 100755 index 000000000..4d6c3f831 --- /dev/null +++ b/.kokoro/test.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -xeo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +cd $(dirname $0)/.. + +npm install +npm test +./node_modules/nyc/bin/nyc.js report + +bash $KOKORO_GFILE_DIR/codecov.sh diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh new file mode 100755 index 000000000..87ffd2ca9 --- /dev/null +++ b/.kokoro/trampoline.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# Copyright 2017 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -xeo pipefail + +# Always run the cleanup script, regardless of the success of bouncing into +# the container. +function cleanup() { + chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + echo "cleanup"; +} +trap cleanup EXIT + +python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/.readme-partials.yml b/.readme-partials.yml new file mode 100644 index 000000000..784bcfd4f --- /dev/null +++ b/.readme-partials.yml @@ -0,0 +1,39 @@ +title: |- + # [Release Please](https://github.com/googleapis/release-please) +introduction: |- + `release-please` generates GitHub PRs for library releases, based on the + [conventionalcommits.org](https://www.conventionalcommits.org) commit + specification. + + The generated PR: + + * determines the next version that a library should be released as (based + on [SemVer](https://semver.org/)). + * updates language-specifc files, `.gemspec`, `package.json`, `setup.py`, etc., + with the appropriate version. + * generates a CHANGELOG with information pertinent to library consumers. + * adds tags to the PR, providing contextual information to automation tools furhter + down the pipeline, e.g., `autorelease: pending`. +body: |- + ## CLI Commands + + When running CLI commands, set the `GH_TOKEN` environment variable to + a [token you've generated](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) + with write permissions for the repo you're interacting with. + + ### Minting a Release + + Generates a new release, based on the commit history since the last release + that was tagged: + + ```bash + release-please mint-release --repo-url=git@github.com:bcoe/my-fake-repo.git + --package-name=@google-cloud/fake --release-type=node + ``` + + * `--repo-url`: the GitHub URL of the repository the release is being + generated for. + * `--package-name`: the name of the package that will ultimately be published + (to `npm`, `PyPi`, `RubyGems`, etc.). + * `--release-type`: what type of release is being created, possible values: + * `node`: a simple Node.js repo (not a mono-repo). diff --git a/.repo-metadata.json b/.repo-metadata.json new file mode 100644 index 000000000..0c3e55bb4 --- /dev/null +++ b/.repo-metadata.json @@ -0,0 +1,8 @@ +{ + "name": "release-please", + "name_pretty": "Release Please", + "release_level": "alpha", + "language": "nodejs", + "repo": "googleapis/release-please", + "distribution_name": "release-please" +} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..46b2a08ea --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,43 @@ +# Contributor Code of Conduct + +As contributors and maintainers of this project, +and in the interest of fostering an open and welcoming community, +we pledge to respect all people who contribute through reporting issues, +posting feature requests, updating documentation, +submitting pull requests or patches, and other activities. + +We are committed to making participation in this project +a harassment-free experience for everyone, +regardless of level of experience, gender, gender identity and expression, +sexual orientation, disability, personal appearance, +body size, race, ethnicity, age, religion, or nationality. + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery +* Personal attacks +* Trolling or insulting/derogatory comments +* Public or private harassment +* Publishing other's private information, +such as physical or electronic +addresses, without explicit permission +* Other unethical or unprofessional conduct. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct. +By adopting this Code of Conduct, +project maintainers commit themselves to fairly and consistently +applying these principles to every aspect of managing this project. +Project maintainers who do not follow or enforce the Code of Conduct +may be permanently removed from the project team. + +This code of conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. + +Instances of abusive, harassing, or otherwise unacceptable behavior +may be reported by opening an issue +or contacting one or more of the project maintainers. + +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, +available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index db177d4ac..78aaa61b2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,28 +1,55 @@ -# How to Contribute +# How to become a contributor and submit your own code -We'd love to accept your patches and contributions to this project. There are -just a few small guidelines you need to follow. +**Table of contents** -## Contributor License Agreement +* [Contributor License Agreements](#contributor-license-agreements) +* [Contributing a patch](#contributing-a-patch) +* [Running the tests](#running-the-tests) +* [Releasing the library](#releasing-the-library) -Contributions to this project must be accompanied by a Contributor License -Agreement. You (or your employer) retain the copyright to your contribution; -this simply gives us permission to use and redistribute your contributions as -part of the project. Head over to to see -your current agreements on file or to sign a new one. +## Contributor License Agreements -You generally only need to submit a CLA once, so if you've already submitted one -(even if it was for a different project), you probably don't need to do it -again. +We'd love to accept your sample apps and patches! Before we can take them, we +have to jump a couple of legal hurdles. -## Code reviews +Please fill out either the individual or corporate Contributor License Agreement +(CLA). -All submissions, including submissions by project members, require review. We -use GitHub pull requests for this purpose. Consult -[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more -information on using pull requests. + * If you are an individual writing original source code and you're sure you + own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual). + * If you work for a company that wants to allow you to contribute your work, + then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate). -## Community Guidelines +Follow either of the two links above to access the appropriate CLA and +instructions for how to sign and return it. Once we receive it, we'll be able to +accept your pull requests. -This project follows -[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). +## Contributing A Patch + +1. Submit an issue describing your proposed change to the repo in question. +1. The repo owner will respond to your issue promptly. +1. If your proposed change is accepted, and you haven't already done so, sign a + Contributor License Agreement (see details above). +1. Fork the desired repo, develop and test your code changes. +1. Ensure that your code adheres to the existing style in the code to which + you are contributing. +1. Ensure that your code has an appropriate set of tests which all pass. +1. Submit a pull request. + +## Running the tests + +1. [Prepare your environment for Node.js setup][setup]. + +1. Install dependencies: + + npm install + +1. Run the tests: + + npm test + +1. Lint (and maybe fix) any changes: + + npm run fix + +[setup]: https://cloud.google.com/nodejs/docs/setup diff --git a/LICENSE.txt b/LICENSE similarity index 99% rename from LICENSE.txt rename to LICENSE index 7a4a3ea24..d64569567 100644 --- a/LICENSE.txt +++ b/LICENSE @@ -199,4 +199,4 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file + limitations under the License. diff --git a/README.md b/README.md index ae0907849..3591aff03 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,117 @@ -# Release Please +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo -Generates a PR on GitHub with a proposed release, based on commit messages -following the [conventionalcommits.org](https://www.conventionalcommits.org) +# [Release Please](https://github.com/googleapis/release-please) + + +[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![npm version](https://img.shields.io/npm/v/release-please.svg)](https://www.npmjs.org/package/release-please) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/release-please/master.svg?style=flat)](https://codecov.io/gh/googleapis/release-please) + + + + +`release-please` generates GitHub PRs for library releases, based on the +[conventionalcommits.org](https://www.conventionalcommits.org) commit specification. + +The generated PR: + +* determines the next version that a library should be released as (based + on [SemVer](https://semver.org/)). +* updates language-specifc files, `.gemspec`, `package.json`, `setup.py`, etc., + with the appropriate version. +* generates a CHANGELOG with information pertinent to library consumers. +* adds tags to the PR, providing contextual information to automation tools furhter + down the pipeline, e.g., `autorelease: pending`. + + + + +* [github.com/googleapis/release-please](https://github.com/googleapis/release-please) + +Read more about the client libraries for Cloud APIs, including the older +Google APIs Client Libraries, in [Client Libraries Explained][explained]. + +[explained]: https://cloud.google.com/apis/docs/client-libraries-explained + +**Table of contents:** + + +* [Quickstart](#quickstart) + + * [Installing the client library](#installing-the-client-library) + + +* [Versioning](#versioning) +* [Contributing](#contributing) +* [License](#license) + +## Quickstart + +### Installing the client library + +```bash +npm install release-please +``` + +## CLI Commands + +When running CLI commands, set the `GH_TOKEN` environment variable to +a [token you've generated](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) +with write permissions for the repo you're interacting with. + +### Minting a Release + +Generates a new release, based on the commit history since the last release +that was tagged: + +```bash +release-please mint-release --repo-url=git@github.com:bcoe/my-fake-repo.git + --package-name=@google-cloud/fake --release-type=node +``` + +* `--repo-url`: the GitHub URL of the repository the release is being + generated for. +* `--package-name`: the name of the package that will ultimately be published + (to `npm`, `PyPi`, `RubyGems`, etc.). +* `--release-type`: what type of release is being created, possible values: + * `node`: a simple Node.js repo (not a mono-repo). + + + +## Versioning + +This library follows [Semantic Versioning](http://semver.org/). + + + + +This library is considered to be in **alpha**. This means it is still a +work-in-progress and under active development. Any release is subject to +backwards-incompatible changes at any time. + + + +More Information: [Google Cloud Platform Launch Stages][launch_stages] + +[launch_stages]: https://cloud.google.com/terms/launch-stages + +## Contributing + +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/release-please/blob/master/CONTRIBUTING.md). + +## License + +Apache Version 2.0 + +See [LICENSE](https://github.com/googleapis/release-please/blob/master/LICENSE) + + + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing + +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 000000000..5724ea947 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,4 @@ +--- +codecov: + ci: + - source.cloud.google.com diff --git a/package.json b/package.json index 143a4f4c9..3372c21b9 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,7 @@ "build/src", "!build/src/**/*.map" ], - "repository": { - "type": "git", - "url": "git+https://github.com/bcoe/release-please.git" - }, + "repository": "googleapis/release-please", "keywords": [ "release", "conventional-commits" diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000..61f31b77a --- /dev/null +++ b/renovate.json @@ -0,0 +1,18 @@ +{ + "extends": [ + "config:base", + "docker:disable" + ], + "pinVersions": false, + "rebaseStalePrs": true, + "schedule": [ + "after 9am and before 3pm" + ], + "gitAuthor": null, + "packageRules": [ + { + "extends": "packages:linters", + "groupName": "linters" + } + ] +} diff --git a/synth.metadata b/synth.metadata new file mode 100644 index 000000000..2581b26d6 --- /dev/null +++ b/synth.metadata @@ -0,0 +1,12 @@ +{ + "updateTime": "2019-04-29T22:58:38.050354Z", + "sources": [ + { + "template": { + "name": "node_library", + "origin": "synthtool.gcp", + "version": "2019.4.10" + } + } + ] +} \ No newline at end of file diff --git a/synth.py b/synth.py new file mode 100644 index 000000000..f9a376753 --- /dev/null +++ b/synth.py @@ -0,0 +1,13 @@ +import synthtool as s +import synthtool.gcp as gcp +import logging +logging.basicConfig(level=logging.DEBUG) +common_templates = gcp.CommonTemplates() +templates = common_templates.node_library() +s.copy(templates, excludes=[ + '.eslintignore', + '.eslintrc.yml', + '.prettierignore', + '.prettierrc', + '.nycrc' +])