| # Bazel workspace created by @bazel/create 0.38.1 |
| # Declares that this directory is the root of a Bazel workspace. |
| # See https://docs.bazel.build/versions/main/build-ref.html#workspace |
| workspace( |
| # How this workspace would be referenced with absolute labels from another workspace |
| name = "angular_bazel_architect", |
| ) |
| |
| # Install the nodejs "bootstrap" package |
| # This provides the basic tools for running and packaging nodejs programs in Bazel |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "build_bazel_rules_nodejs", |
| sha256 = "f690430f4d4cc403b5c90d0f0b21842183b56b732fff96cfe6555fe73189906a", |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.0.1/rules_nodejs-5.0.1.tar.gz"], |
| ) |
| |
| load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") |
| |
| build_bazel_rules_nodejs_dependencies() |
| |
| # The yarn_install rule runs yarn anytime the package.json or yarn.lock file changes. |
| # It also extracts and installs any Bazel rules distributed in an npm package. |
| load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") |
| |
| yarn_install( |
| # Name this npm so that Bazel Label references look like @npm//package |
| name = "npm", |
| data = ["//:patches/@angular-devkit+architect-cli+0.1102.2.patch"], |
| package_json = "//:package.json", |
| yarn_lock = "//:yarn.lock", |
| ) |
| |
| load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains") |
| |
| nodejs_register_toolchains( |
| name = "node16", |
| node_version = "16.9.0", |
| ) |