Skip to content

Commit

Permalink
build: use bazel build (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 62836df commit 7083ca6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
22 changes: 7 additions & 15 deletions packages/google-cloud-recaptchaenterprise/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-recaptcha-enterprise.git",
"sha": "fd52ed9ae9cc159c2b3915fcfc4a11ae1462ac4b"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "c1ba5ba3f24307ca5a6df350d0137c29d69983d5",
"internalRef": "316715576"
"remote": "git@github.com:googleapis/nodejs-recaptcha-enterprise.git",
"sha": "dbccd2e444d5d808ad6981acf3ad6936106e9649"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,17 +21,17 @@
"source": "googleapis",
"apiName": "recaptchaenterprise",
"apiVersion": "v1beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "recaptchaenterprise",
"apiVersion": "v1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
12 changes: 2 additions & 10 deletions packages/google-cloud-recaptchaenterprise/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,10 @@


# run the gapic generator
gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()
versions = ['v1beta1', 'v1']
for version in versions:
library = gapic.typescript_library(
'recaptchaenterprise', version,
generator_args={
"grpc-service-config": f"google/cloud/recaptchaenterprise/{version}/recaptchaenterprise_grpc_service_config.json",
"package-name": f"@google-cloud/recaptcha-enterprise",
},
proto_path=f'/google/cloud/recaptchaenterprise/{version}',
extra_proto_files=['google/cloud/common_resources.proto']
)
library = gapic.node_library('recaptchaenterprise', version)
s.copy(library, excludes=['package.json'])

# Copy common templates
Expand Down

0 comments on commit 7083ca6

Please sign in to comment.