| # 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 = "9901bc17138a79135048fb0c107ee7a56e91815ec6594c08cb9a17b80276d62b", |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.40.0/rules_nodejs-0.40.0.tar.gz"], |
| ) |
| |
| http_archive( |
| name = "com_google_protobuf", |
| sha256 = "6adf73fd7f90409e479d6ac86529ade2d45f50494c5c10f539226693cb8fe4f7", |
| strip_prefix = "protobuf-3.10.1", |
| urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.10.1.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//:install_bazel_dependencies.bzl", "install_bazel_dependencies") |
| |
| install_bazel_dependencies() |
| |
| load("@npm_bazel_protractor//:package.bzl", "npm_bazel_protractor_dependencies") |
| |
| npm_bazel_protractor_dependencies() |
| |
| load("@npm_bazel_karma//:package.bzl", "npm_bazel_karma_dependencies") |
| |
| npm_bazel_karma_dependencies() |
| |
| load("@npm_bazel_labs//:package.bzl", "npm_bazel_labs_dependencies") |
| |
| npm_bazel_labs_dependencies() |
| |
| load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories") |
| |
| web_test_repositories() |
| |
| load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl", "browser_repositories") |
| |
| browser_repositories( |
| chromium = True, |
| firefox = True, |
| ) |
| |
| load("@npm_bazel_typescript//:index.bzl", "ts_setup_workspace") |
| |
| ts_setup_workspace() |
| |
| load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| |
| protobuf_deps() |