Skip to content

Commit

Permalink
chore: add node templates to synth.py (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored and JustinBeckwith committed Jul 31, 2018
1 parent 8b796bc commit cf355f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/google-cloud-language/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand All @@ -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'])
Expand Down

0 comments on commit cf355f6

Please sign in to comment.