Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
90 lines (69 sloc)
2.88 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| workspace( | |
| name = "angular_cli", | |
| managed_directories = {"@npm": ["node_modules"]}, | |
| ) | |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| http_archive( | |
| name = "bazel_skylib", | |
| sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728", | |
| urls = [ | |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz", | |
| "https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz", | |
| ], | |
| ) | |
| http_archive( | |
| name = "io_bazel_rules_webtesting", | |
| sha256 = "e9abb7658b6a129740c0b3ef6f5a2370864e102a5ba5ffca2cea565829ed825a", | |
| urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.5/rules_webtesting.tar.gz"], | |
| ) | |
| http_archive( | |
| name = "build_bazel_rules_nodejs", | |
| sha256 = "e328cb2c9401be495fa7d79c306f5ee3040e8a03b2ebb79b022e15ca03770096", | |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.4.2/rules_nodejs-5.4.2.tar.gz"], | |
| ) | |
| load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") | |
| build_bazel_rules_nodejs_dependencies() | |
| http_archive( | |
| name = "rules_pkg", | |
| sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2", | |
| urls = ["https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz"], | |
| ) | |
| load("@bazel_tools//tools/sh:sh_configure.bzl", "sh_configure") | |
| sh_configure() | |
| load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") | |
| bazel_skylib_workspace() | |
| load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") | |
| rules_pkg_dependencies() | |
| # Setup the Node.js toolchain | |
| load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains") | |
| nodejs_register_toolchains( | |
| name = "nodejs", | |
| node_version = "14.17.1", | |
| ) | |
| load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") | |
| yarn_install( | |
| name = "npm", | |
| data = [ | |
| "//:.yarn/releases/yarn-1.22.17.cjs", | |
| "//:.yarnrc", | |
| ], | |
| # Currently disabled due to: | |
| # 1. Missing Windows support currently. | |
| # 2. Incompatibilites with the `ts_library` rule. | |
| exports_directories_only = False, | |
| package_json = "//:package.json", | |
| # We prefer to symlink the `node_modules` to only maintain a single install. | |
| # See https://github.com/angular/dev-infra/pull/446#issuecomment-1059820287 for details. | |
| symlink_node_modules = True, | |
| yarn = "//:.yarn/releases/yarn-1.22.17.cjs", | |
| yarn_lock = "//:yarn.lock", | |
| ) | |
| http_archive( | |
| name = "aspect_bazel_lib", | |
| sha256 = "a8b47eeaf3c1bd41c4f4b633ef4c959daf83fdee343379495098b50571d4b3b8", | |
| strip_prefix = "bazel-lib-0.11.1", | |
| url = "https://github.com/aspect-build/bazel-lib/archive/v0.11.1.tar.gz", | |
| ) | |
| load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "register_jq_toolchains") | |
| aspect_bazel_lib_dependencies() | |
| register_jq_toolchains(version = "1.6") |