| # Copyright 2018 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. |
| |
| """Package file which defines build dependencies |
| """ |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
| |
| def rules_typescript_dev_dependencies(): |
| """ |
| Fetch dependencies needed for local development. |
| |
| These are in this file to keep version information in one place, and make the WORKSPACE |
| shorter. |
| |
| Also this allows other repos to reference our sources with local_repository and install the needed deps. |
| """ |
| |
| maybe( |
| http_archive, |
| name = "build_bazel_rules_nodejs", |
| sha256 = "b6670f9f43faa66e3009488bbd909bc7bc46a5a9661a33f6bc578068d1837f37", |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz"], |
| ) |
| |
| # For protocol buffers |
| maybe( |
| http_archive, |
| name = "io_bazel", |
| urls = ["https://github.com/bazelbuild/bazel/releases/download/5.3.1/bazel-5.3.1-dist.zip"], |
| sha256 = "18486e7152ca26b26585e9b2a6f49f332b116310d3b7e5b70583f1f1f24bb8ae", |
| ) |
| |
| # For building concatjs_devserver binary |
| # See https://github.com/bazelbuild/rules_go#setup for the latest version. |
| maybe( |
| http_archive, |
| name = "io_bazel_rules_go", |
| sha256 = "8e968b5fcea1d2d64071872b12737bbb5514524ee5f0a4f54f5920266c261acb", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.28.0/rules_go-v0.28.0.zip", |
| "https://github.com/bazelbuild/rules_go/releases/download/v0.28.0/rules_go-v0.28.0.zip", |
| ], |
| ) |
| |
| # go_repository is defined in bazel_gazelle |
| maybe( |
| http_archive, |
| name = "bazel_gazelle", |
| sha256 = "62ca106be173579c0a167deb23358fdfe71ffa1e4cfdddf5582af26520f1c66f", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz", |
| "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz", |
| ], |
| ) |
| |
| maybe( |
| http_archive, |
| name = "com_google_protobuf", |
| sha256 = "98e615d592d237f94db8bf033fba78cd404d979b0b70351a9e5aaff725398357", |
| strip_prefix = "protobuf-3.9.1", |
| urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.9.1.tar.gz"], |
| ) |