Skip to content

Commit

Permalink
build: use bazel build (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 80f584c commit ce0241d
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-speech/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-speech.git",
"sha": "c4d9e736ed93f016bb76eeeb2463e9b0d6f21109"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727",
"internalRef": "310060413"
"remote": "git@github.com:googleapis/nodejs-speech.git",
"sha": "1bf0123fd8c98ccba7f381114edc68402a1396a2"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,17 +21,17 @@
"source": "googleapis",
"apiName": "speech",
"apiVersion": "v1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "speech",
"apiVersion": "v1p1beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
11 changes: 2 additions & 9 deletions packages/google-cloud-speech/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,14 @@
AUTOSYNTH_MULTIPLE_COMMITS = True


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

versions = ['v1', 'v1p1beta1']
name = 'speech'

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

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

0 comments on commit ce0241d

Please sign in to comment.