2022-05-04 12:47:58 +00:00
|
|
|
load("//tools:defaults.bzl", "nodejs_binary")
|
2023-02-20 20:37:34 +00:00
|
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
2022-07-06 23:16:50 +00:00
|
|
|
load("//:yarn.bzl", "YARN_PATH")
|
2022-03-21 17:09:54 +00:00
|
|
|
|
2017-06-02 16:43:52 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2017-12-06 14:56:49 +00:00
|
|
|
|
2017-12-17 23:10:54 +00:00
|
|
|
exports_files([
|
2018-03-01 18:41:35 +00:00
|
|
|
"LICENSE",
|
2018-12-18 06:09:39 +00:00
|
|
|
"karma-js.conf.js",
|
|
|
|
|
"browser-providers.conf.js",
|
2022-07-06 23:16:50 +00:00
|
|
|
YARN_PATH,
|
2022-03-25 22:32:26 +00:00
|
|
|
"scripts/ci/bazel-payload-size.sh",
|
2020-03-10 05:17:48 +00:00
|
|
|
"scripts/ci/payload-size.sh",
|
|
|
|
|
"scripts/ci/payload-size.js",
|
2020-03-17 11:58:17 +00:00
|
|
|
"package.json",
|
2023-12-07 20:57:21 +00:00
|
|
|
"angular.json",
|
2017-12-17 23:10:54 +00:00
|
|
|
])
|
2017-06-02 16:43:52 +00:00
|
|
|
|
2022-04-27 01:14:27 +00:00
|
|
|
filegroup(
|
|
|
|
|
# filegroup is needed so that this package.json file can be a dep
|
|
|
|
|
# in a js_library target, which doesn't allow source file deps
|
|
|
|
|
name = "package_json",
|
|
|
|
|
srcs = ["package.json"],
|
|
|
|
|
)
|
|
|
|
|
|
2019-04-02 18:42:58 +00:00
|
|
|
alias(
|
|
|
|
|
name = "tsconfig.json",
|
|
|
|
|
actual = "//packages:tsconfig-build.json",
|
|
|
|
|
)
|
|
|
|
|
|
2023-02-20 20:37:34 +00:00
|
|
|
js_library(
|
|
|
|
|
name = "browser-providers",
|
|
|
|
|
srcs = [
|
|
|
|
|
"browser-providers.conf.d.ts",
|
|
|
|
|
"browser-providers.conf.js",
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
2017-12-18 23:37:05 +00:00
|
|
|
filegroup(
|
2018-05-31 06:49:37 +00:00
|
|
|
name = "angularjs_scripts",
|
2017-12-18 23:37:05 +00:00
|
|
|
srcs = [
|
2020-07-14 17:44:07 +00:00
|
|
|
# We also declare the unminified AngularJS files since these can be used for
|
2018-12-17 17:28:06 +00:00
|
|
|
# local debugging (e.g. see: packages/upgrade/test/common/test_helpers.ts)
|
2019-06-19 04:26:53 +00:00
|
|
|
"@npm//:node_modules/angular-1.5/angular.js",
|
|
|
|
|
"@npm//:node_modules/angular-1.5/angular.min.js",
|
|
|
|
|
"@npm//:node_modules/angular-1.6/angular.js",
|
|
|
|
|
"@npm//:node_modules/angular-1.6/angular.min.js",
|
2020-12-04 14:53:12 +00:00
|
|
|
"@npm//:node_modules/angular-1.7/angular.js",
|
|
|
|
|
"@npm//:node_modules/angular-1.7/angular.min.js",
|
2019-06-19 04:26:53 +00:00
|
|
|
"@npm//:node_modules/angular-mocks-1.5/angular-mocks.js",
|
|
|
|
|
"@npm//:node_modules/angular-mocks-1.6/angular-mocks.js",
|
2020-12-04 14:53:12 +00:00
|
|
|
"@npm//:node_modules/angular-mocks-1.7/angular-mocks.js",
|
2021-07-06 13:29:19 +00:00
|
|
|
"@npm//:node_modules/angular-mocks-1.8/angular-mocks.js",
|
|
|
|
|
"@npm//:node_modules/angular-1.8/angular.js",
|
|
|
|
|
"@npm//:node_modules/angular-1.8/angular.min.js",
|
2017-12-18 23:37:05 +00:00
|
|
|
],
|
|
|
|
|
)
|
2020-06-25 08:32:41 +00:00
|
|
|
|
|
|
|
|
# Detect if the build is running under --stamp
|
|
|
|
|
config_setting(
|
|
|
|
|
name = "stamp",
|
|
|
|
|
values = {"stamp": "true"},
|
|
|
|
|
)
|
2022-03-21 17:09:54 +00:00
|
|
|
|
|
|
|
|
nodejs_binary(
|
|
|
|
|
name = "yarn_vendored",
|
2023-06-15 20:15:50 +00:00
|
|
|
data = [".yarn/releases/yarn-1.22.19.cjs"],
|
|
|
|
|
entry_point = ".yarn/releases/yarn-1.22.19.cjs",
|
2022-07-06 23:16:50 +00:00
|
|
|
visibility = [
|
|
|
|
|
"//aio/tools/examples/shared:__pkg__",
|
|
|
|
|
"//integration:__subpackages__",
|
|
|
|
|
],
|
2022-03-21 17:09:54 +00:00
|
|
|
)
|
2023-02-20 20:37:34 +00:00
|
|
|
|
|
|
|
|
alias(
|
|
|
|
|
name = "sauce_connect",
|
|
|
|
|
actual = select({
|
|
|
|
|
"@npm//@angular/build-tooling/bazel/constraints:linux_x64": "@sauce_connect_linux_amd64//:bin/sc",
|
|
|
|
|
"@npm//@angular/build-tooling/bazel/constraints:macos_x64": "@sauce_connect_mac//:bin/sc",
|
|
|
|
|
"@npm//@angular/build-tooling/bazel/constraints:macos_arm64": "@sauce_connect_mac//:bin/sc",
|
|
|
|
|
}),
|
|
|
|
|
)
|