Skip to content

Commit

Permalink
build: use bazel build (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent dd46516 commit 5cc78c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 27 deletions.
22 changes: 7 additions & 15 deletions packages/google-cloud-dialogflow/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-dialogflow.git",
"sha": "d1fb5abb66f1eb55545807e1f6cb45b0ec51c287"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "dc3682a7075d3028f00de866446fd0543ebc6079",
"internalRef": "318303567"
"remote": "[email protected]:googleapis/nodejs-dialogflow.git",
"sha": "8073919118efd361342474fde921d981e191c319"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
Expand All @@ -29,17 +21,17 @@
"source": "googleapis",
"apiName": "dialogflow",
"apiVersion": "v2beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "dialogflow",
"apiVersion": "v2",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
14 changes: 2 additions & 12 deletions packages/google-cloud-dialogflow/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,13 @@
AUTOSYNTH_MULTIPLE_COMMITS = True


gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()
# note: default version must be the last one to generate the correct system test
versions = ['v2beta1', 'v2']
default_version = 'v2'

for version in versions:
library = gapic.typescript_library(
'dialogflow', version,
generator_args={
"grpc-service-config": f"google/cloud/dialogflow/{version}/dialogflow_grpc_service_config.json",
"package-name": f"@google-cloud/dialogflow",
"main-service": f"dialogflow",
"validation": "false",
},
proto_path=f'/google/cloud/dialogflow/{version}',
extra_proto_files=["google/cloud/common_resources.proto"]
)
library = gapic.node_library('dialogflow', version)
s.copy(library, excludes=['package.json', 'README.md'])

common_templates = gcp.CommonTemplates()
Expand Down

0 comments on commit 5cc78c7

Please sign in to comment.