| # Copyright 2019 The Bazel Authors. All rights reserved. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| workspace( |
| name = "examples_protocol_buffers", |
| managed_directories = {"@npm": ["node_modules"]}, |
| ) |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "build_bazel_rules_nodejs", |
| sha256 = "4681ca88d512d57196d064d1441549080d8d17d119174a1229d1717a16a4a489", |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.0.0-beta.1/rules_nodejs-4.0.0-beta.1.tar.gz"], |
| ) |
| |
| http_archive( |
| name = "com_google_protobuf", |
| sha256 = "c6003e1d2e7fefa78a3039f19f383b4f3a61e81be8c19356f85b6461998ad3db", |
| strip_prefix = "protobuf-3.17.3", |
| urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.17.3.tar.gz"], |
| ) |
| |
| http_archive( |
| name = "rules_proto", |
| sha256 = "bc12122a5ae4b517fa423ea03a8d82ea6352d5127ea48cb54bc324e8ab78493c", |
| strip_prefix = "rules_proto-af6481970a34554c6942d993e194a9aed7987780", |
| urls = [ |
| "https://github.com/bazelbuild/rules_proto/archive/af6481970a34554c6942d993e194a9aed7987780.tar.gz", |
| ], |
| ) |
| |
| load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") |
| |
| yarn_install( |
| name = "npm", |
| package_json = "//:package.json", |
| yarn_lock = "//:yarn.lock", |
| ) |
| |
| load("@npm//@bazel/labs:package.bzl", "npm_bazel_labs_dependencies") |
| |
| npm_bazel_labs_dependencies() |
| |
| load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") |
| |
| rules_proto_dependencies() |
| |
| rules_proto_toolchains() |
| |
| load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| |
| protobuf_deps() |