Skip to content

Commit

Permalink
build: use bazel build (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 22f37d1 commit 53bca74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
18 changes: 5 additions & 13 deletions packages/google-cloud-kms/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-kms.git",
"sha": "4a1ae8056a5a840ee617daca75e571357c47195a"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "ef180e07d360d86ce0f71c448edffbf6b7ceb8c9",
"internalRef": "314805551"
"remote": "git@github.com:googleapis/nodejs-kms.git",
"sha": "576e62f9e8f5dce320da2dc87c71cce3624ddd7f"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,8 +21,8 @@
"source": "googleapis",
"apiName": "kms",
"apiVersion": "v1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
14 changes: 2 additions & 12 deletions packages/google-cloud-kms/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,10 @@
AUTOSYNTH_MULTIPLE_COMMITS = True


gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()
versions = ['v1']
for version in versions:
library = gapic.typescript_library(
'kms', version,
generator_args={
"grpc-service-config": f"google/cloud/kms/{version}/cloudkms_grpc_service_config.json",
"package-name": "@google-cloud/kms",
"iam-service": "true",
"validation": "false",
},
proto_path=f'/google/cloud/kms/{version}',
extra_proto_files=['google/cloud/common_resources.proto']
)
library = gapic.node_library('kms', version)
# skip index, package.json, and README.md
s.copy(
library,
Expand Down

0 comments on commit 53bca74

Please sign in to comment.