angular-cli/BUILD.bazel
Ash Ramirez 434a3740f0 refactor(@angular/cli): update aio links -> adev links
Updates for all angular.io links to the new angular.dev domain. Additionally, adjustment to new resources where the equivalent does not exist on the new site (e.g. Tour of Heroes tutorial)
2024-06-06 11:12:06 +02:00

69 lines
1.5 KiB
Python

# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.dev/license
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin")
load("@npm//@bazel/concatjs:index.bzl", "ts_config")
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
exports_files([
"LICENSE",
"tsconfig.json",
"tsconfig-test.json",
"tsconfig-build-ng.json",
"tsconfig-build.json",
"package.json",
])
# Files required by e2e tests
copy_to_bin(
name = "config-files",
srcs = [
"package.json",
],
)
# Detect if the build is running under --stamp
config_setting(
name = "stamp",
values = {"stamp": "true"},
)
# If set will replace dependency versions with tarballs for packages in this repo
bool_flag(
name = "enable_package_json_tar_deps",
build_setting_default = False,
)
config_setting(
name = "package_json_use_tar_deps",
flag_values = {
":enable_package_json_tar_deps": "true",
},
)
# If set will replace dependency versions with snapshot repos for packages in this repo
bool_flag(
name = "enable_snapshot_repo_deps",
build_setting_default = False,
)
config_setting(
name = "package_json_use_snapshot_repo_deps",
flag_values = {
":enable_snapshot_repo_deps": "true",
},
)
ts_config(
name = "tsconfig-build-ng",
src = "tsconfig-build-ng.json",
deps = [
":tsconfig.json",
],
)