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 eb6e655 commit e7c925a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
22 changes: 7 additions & 15 deletions packages/google-cloud-automl/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-automl.git",
"sha": "9663c22f7f481c922410f5a84e285d8404099a35"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "2fc2caaacb15949c7f80426bfc7dafdd41dbc333",
"internalRef": "310239576"
"remote": "git@github.com:googleapis/nodejs-automl.git",
"sha": "b74b206e1b627b00de5be54411cab94a5b86474c"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,17 +21,17 @@
"source": "googleapis",
"apiName": "automl",
"apiVersion": "v1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "automl",
"apiVersion": "v1beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
13 changes: 2 additions & 11 deletions packages/google-cloud-automl/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,10 @@
AUTOSYNTH_MULTIPLE_COMMITS = True


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

common_templates = gcp.CommonTemplates()
Expand Down

0 comments on commit e7c925a

Please sign in to comment.