Skip to content

Commit

Permalink
build: use bazel build (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 5084941 commit 7d8beca
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-monitoring/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-monitoring.git",
"sha": "c3bda103c90d7aa404397a8b3e729f62c8416f57"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "51362f378a286494980ffc9a5199ab6e3cefd6d5",
"internalRef": "314788297"
"remote": "git@github.com:googleapis/nodejs-monitoring.git",
"sha": "1e0751185d29f17ea9e8fd6eaf03a40f9a60cf6e"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,8 +21,8 @@
"source": "googleapis",
"apiName": "monitoring",
"apiVersion": "v3",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
14 changes: 2 additions & 12 deletions packages/google-cloud-monitoring/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,9 @@
AUTOSYNTH_MULTIPLE_COMMITS = True


gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()
version = "v3"
library = gapic.typescript_library(
"monitoring",
version,
generator_args={
"grpc-service-config": f"google/monitoring/{version}/monitoring_grpc_service_config.json",
"package-name": "@google-cloud/monitoring",
"main-service": "monitoring"
},
proto_path=f'/google/monitoring/{version}',
extra_proto_files=['google/cloud/common_resources.proto']
)
library = gapic.node_library("monitoring", version, proto_path=f'google/monitoring/{version}')

s.copy(library, excludes=["README.md", "package.json"])

Expand Down

0 comments on commit 7d8beca

Please sign in to comment.