Skip to content

Commit

Permalink
build: use bazel build (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 060bb01 commit 0cd51c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
26 changes: 9 additions & 17 deletions packages/google-cloud-tasks/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-tasks.git",
"sha": "14495107ce57f8a9f1e1668a2582ac66d2daccd6"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "eb37e688331443969eed9b969531751154a956d5",
"internalRef": "317130948"
"remote": "[email protected]:googleapis/nodejs-tasks.git",
"sha": "c6895111223f81fdbb8d6c698d8f2560675ac869"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,26 +21,26 @@
"source": "googleapis",
"apiName": "tasks",
"apiVersion": "v2",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "tasks",
"apiVersion": "v2beta2",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "tasks",
"apiVersion": "v2beta3",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
13 changes: 2 additions & 11 deletions packages/google-cloud-tasks/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 = ["v2", "v2beta2", "v2beta3"]
for version in versions:
library = gapic.typescript_library(
"tasks", version,
generator_args={
"grpc-service-config": f"google/cloud/tasks/{version}/cloudtasks_grpc_service_config.json",
"package-name": f"@google-cloud/tasks",
"main-service": f"tasks"
},
proto_path=f'/google/cloud/tasks/{version}',
extra_proto_files=['google/cloud/common_resources.proto'],
)
library = gapic.node_library("tasks", version)
s.copy(library, excludes=["README.md", "package.json"])

# Copy common templates
Expand Down

0 comments on commit 0cd51c3

Please sign in to comment.