From cf355f651e5c9cf89b796378f6a99f955d50b53c Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Mon, 30 Jul 2018 20:12:04 -0700 Subject: [PATCH] chore: add node templates to synth.py (#84) --- packages/google-cloud-language/synth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/google-cloud-language/synth.py b/packages/google-cloud-language/synth.py index 00f34a25133..b7b46e3b7d5 100644 --- a/packages/google-cloud-language/synth.py +++ b/packages/google-cloud-language/synth.py @@ -6,6 +6,7 @@ logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() # tasks has two product names, and a poorly named artman yaml for version in ['v1', 'v1beta2']: @@ -17,6 +18,10 @@ library, excludes=['package.json', 'README.md', 'src/index.js']) +templates = common_templates.node_library(package_name="@google-cloud/language") +s.copy(templates) + + # Node.js specific cleanup subprocess.run(['npm', 'ci']) subprocess.run(['npm', 'run', 'prettier'])