Skip to content

Commit

Permalink
build: use bazel build (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 2582055 commit b0faf18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
22 changes: 7 additions & 15 deletions packages/google-cloud-texttospeech/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-text-to-speech.git",
"sha": "5f506f013f46c734fef6fbeb38ed1827f0648514"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "55094be6405640329ddc93730962b9f7e68a0fc1",
"internalRef": "314438331"
"remote": "[email protected]:googleapis/nodejs-text-to-speech.git",
"sha": "1f1ad17f03cbaa06b2716d233cb85e0bd85a1d81"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,17 +21,17 @@
"source": "googleapis",
"apiName": "texttospeech",
"apiVersion": "v1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "texttospeech",
"apiVersion": "v1beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
11 changes: 2 additions & 9 deletions packages/google-cloud-texttospeech/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,13 @@
AUTOSYNTH_MULTIPLE_COMMITS = True


gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()
common_templates = gcp.CommonTemplates()

versions = ['v1', 'v1beta1']

for version in versions:
library = gapic.typescript_library(
'texttospeech',
generator_args={
"grpc-service-config": f"google/cloud/texttospeech/{version}/texttospeech_grpc_service_config.json",
"package-name": f"@google-cloud/text-to-speech"
},
proto_path=f'/google/cloud/texttospeech/{version}',
version=version)
library = gapic.node_library('texttospeech', version)

# skip index, protos, package.json, and README.md
s.copy(
Expand Down

0 comments on commit b0faf18

Please sign in to comment.