Skip to content

Commit

Permalink
build: use bazel build (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 77cbd23 commit e97e0ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
18 changes: 5 additions & 13 deletions packages/google-cloud-datalabeling/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-datalabeling.git",
"sha": "e6c75f5416814ff65006b62bdbea06dd2c9d270b"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "6dfd72d028a0d0a43764e060f7b15e004385c3a1",
"internalRef": "310168181"
"remote": "git@github.com:googleapis/nodejs-datalabeling.git",
"sha": "78892f9998651690f6726520d818cf244df4793b"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,8 +21,8 @@
"source": "googleapis",
"apiName": "datalabeling",
"apiVersion": "v1beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
13 changes: 2 additions & 11 deletions packages/google-cloud-datalabeling/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,10 @@
AUTOSYNTH_MULTIPLE_COMMITS = True

# Run the gapic generator
gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()
versions = ['v1beta1']
for version in versions:
library = gapic.typescript_library(
'datalabeling', version,
generator_args={
"grpc-service-config": f"google/cloud/datalabeling/{version}/datalabeling_grpc_service_config.json",
"package-name": "@google-cloud/datalabeling",
"main-service": "datalabeling"
},
proto_path=f'/google/cloud/datalabeling/{version}',
extra_proto_files=['google/cloud/common_resources.proto'],
)
library = gapic.node_library('datalabeling', version)
s.copy(library, excludes=['README.md', 'package.json'])

# Copy common templates
Expand Down

0 comments on commit e97e0ae

Please sign in to comment.