| # Copyright 2017 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 = "build_bazel_rules_typescript") |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "build_bazel_rules_nodejs", |
| urls = ["https://github.com/bazelbuild/rules_nodejs/archive/0.11.3.zip"], |
| strip_prefix = "rules_nodejs-0.11.3", |
| sha256 = "e8842fa5f5e38f2c826167ff94323d4b5aabd13217cee867d971d6f860cfd730" |
| ) |
| |
| http_archive( |
| name = "bazel_skylib", |
| urls = ["https://github.com/bazelbuild/bazel-skylib/archive/0.3.1.zip"], |
| strip_prefix = "bazel-skylib-0.3.1", |
| sha256 = "95518adafc9a2b656667bbf517a952e54ce7f350779d0dd95133db4eb5c27fb1", |
| ) |
| |
| load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "yarn_install") |
| |
| # Use a bazel-managed npm dependency, allowing us to test resolution to these paths |
| yarn_install( |
| name = "build_bazel_rules_typescript_internal_bazel_managed_deps", |
| package_json = "//examples/bazel_managed_deps:package.json", |
| yarn_lock = "//examples/bazel_managed_deps:yarn.lock", |
| ) |
| |
| # Install a hermetic version of node. |
| # After this is run, these labels will be available: |
| # - NodeJS: |
| # @nodejs//:node |
| # - NPM: |
| # @nodejs//:npm |
| # - The yarn package manager: |
| # @nodejs//:yarn |
| node_repositories( |
| package_json = ["//:package.json"], |
| preserve_symlinks = True) |
| |
| http_archive( |
| name = "io_bazel_rules_go", |
| urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.13.0/rules_go-0.13.0.tar.gz"], |
| sha256 = "ba79c532ac400cefd1859cbc8a9829346aa69e3b99482cd5a54432092cbc3933", |
| ) |
| |
| http_archive( |
| name = "io_bazel", |
| urls = ["https://github.com/bazelbuild/bazel/releases/download/0.9.0/bazel-0.9.0-dist.zip"], |
| sha256 = "efb28fed4ffcfaee653e0657f6500fc4cbac61e32104f4208da385676e76312a", |
| ) |
| |
| http_archive( |
| name = "bazel_gazelle", |
| urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.13.0/bazel-gazelle-0.13.0.tar.gz"], |
| sha256 = "bc653d3e058964a5a26dcad02b6c72d7d63e6bb88d94704990b908a1445b8758", |
| ) |
| |
| BAZEL_BUILDTOOLS_VERSION = "0.12.0" |
| |
| http_archive( |
| name = "com_github_bazelbuild_buildtools", |
| url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % BAZEL_BUILDTOOLS_VERSION, |
| strip_prefix = "buildtools-%s" % BAZEL_BUILDTOOLS_VERSION, |
| sha256 = "ec495cbd19238c9dc488fd65ca1fee56dcb1a8d6d56ee69a49f2ebe69826c261", |
| ) |
| |
| load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") |
| |
| go_rules_dependencies() |
| |
| go_register_toolchains() |
| |
| load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| |
| gazelle_dependencies() |
| |
| http_archive( |
| name = "io_bazel_rules_webtesting", |
| urls = ["https://github.com/bazelbuild/rules_webtesting/archive/0.2.1.zip"], |
| strip_prefix = "rules_webtesting-0.2.1", |
| sha256 = "7d490aadff9b5262e5251fa69427ab2ffd1548422467cb9f9e1d110e2c36f0fa", |
| ) |
| |
| load("@io_bazel_rules_webtesting//web:repositories.bzl", "browser_repositories", "web_test_repositories") |
| |
| web_test_repositories() |
| |
| browser_repositories( |
| chromium = True, |
| firefox = True, |
| ) |
| |
| load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace", "check_rules_typescript_version") |
| |
| ts_setup_workspace() |
| |
| # Test that check_rules_typescript_version works as expected |
| check_rules_typescript_version("0.15.3") |
| |
| ############################################# |
| # Dependencies for generating documentation # |
| ############################################# |
| |
| http_archive( |
| name = "io_bazel_rules_sass", |
| urls = ["https://github.com/bazelbuild/rules_sass/archive/0.0.3.zip"], |
| strip_prefix = "rules_sass-0.0.3", |
| sha256 = "8fa98e7b48a5837c286a1ea254b5a5c592fced819ee9fe4fdd759768d97be868", |
| ) |
| load("@io_bazel_rules_sass//sass:sass.bzl", "sass_repositories") |
| sass_repositories() |
| |
| http_archive( |
| name = "io_bazel_skydoc", |
| urls = ["https://github.com/bazelbuild/skydoc/archive/0ef7695c9d70084946a3e99b89ad5a99ede79580.zip"], |
| strip_prefix = "skydoc-0ef7695c9d70084946a3e99b89ad5a99ede79580", |
| sha256 = "491f9e142b870b18a0ec8eb3d66636eeceabe5f0c73025706c86f91a1a2acb4d", |
| ) |
| load("@io_bazel_skydoc//skylark:skylark.bzl", "skydoc_repositories") |
| skydoc_repositories() |