2022-05-04 12:47:58 +00:00
|
|
|
load("//tools:defaults.bzl", "nodejs_binary")
|
2023-02-20 12:37:34 -08:00
|
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
2022-07-06 16:16:50 -07:00
|
|
|
load("//:yarn.bzl", "YARN_PATH")
|
2022-03-21 19:09:54 +02:00
|
|
|
|
2017-06-02 09:43:52 -07:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2017-12-06 06:56:49 -08:00
|
|
|
|
2017-12-17 15:10:54 -08:00
|
|
|
exports_files([
|
2018-03-01 10:41:35 -08:00
|
|
|
"LICENSE",
|
2018-12-17 22:09:39 -08:00
|
|
|
"karma-js.conf.js",
|
|
|
|
|
"browser-providers.conf.js",
|
2022-07-06 16:16:50 -07:00
|
|
|
YARN_PATH,
|
2022-03-25 23:32:26 +01:00
|
|
|
"scripts/ci/bazel-payload-size.sh",
|
2020-03-09 22:17:48 -07:00
|
|
|
"scripts/ci/payload-size.sh",
|
|
|
|
|
"scripts/ci/payload-size.js",
|
2020-03-17 12:58:17 +01:00
|
|
|
"package.json",
|
2023-12-07 20:57:21 +00:00
|
|
|
"angular.json",
|
2017-12-17 15:10:54 -08:00
|
|
|
])
|
2017-06-02 09:43:52 -07:00
|
|
|
|
2022-04-26 18:14:27 -07: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 11:42:58 -07:00
|
|
|
alias(
|
|
|
|
|
name = "tsconfig.json",
|
|
|
|
|
actual = "//packages:tsconfig-build.json",
|
|
|
|
|
)
|
|
|
|
|
|
2023-02-20 12:37:34 -08:00
|
|
|
js_library(
|
|
|
|
|
name = "browser-providers",
|
|
|
|
|
srcs = [
|
|
|
|
|
"browser-providers.conf.d.ts",
|
|
|
|
|
"browser-providers.conf.js",
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
2017-12-18 15:37:05 -08:00
|
|
|
filegroup(
|
2018-05-30 23:49:37 -07:00
|
|
|
name = "angularjs_scripts",
|
2017-12-18 15:37:05 -08:00
|
|
|
srcs = [
|
2020-07-14 12:44:07 -05:00
|
|
|
# We also declare the unminified AngularJS files since these can be used for
|
2018-12-17 18:28:06 +01:00
|
|
|
# local debugging (e.g. see: packages/upgrade/test/common/test_helpers.ts)
|
2019-06-18 21:26:53 -07: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 16:53:12 +02:00
|
|
|
"@npm//:node_modules/angular-1.7/angular.js",
|
|
|
|
|
"@npm//:node_modules/angular-1.7/angular.min.js",
|
2019-06-18 21:26:53 -07:00
|
|
|
"@npm//:node_modules/angular-mocks-1.5/angular-mocks.js",
|
|
|
|
|
"@npm//:node_modules/angular-mocks-1.6/angular-mocks.js",
|
2020-12-04 16:53:12 +02:00
|
|
|
"@npm//:node_modules/angular-mocks-1.7/angular-mocks.js",
|
2021-07-06 15:29:19 +02: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 15:37:05 -08:00
|
|
|
],
|
|
|
|
|
)
|
2020-06-25 01:32:41 -07:00
|
|
|
|
|
|
|
|
# Detect if the build is running under --stamp
|
|
|
|
|
config_setting(
|
|
|
|
|
name = "stamp",
|
|
|
|
|
values = {"stamp": "true"},
|
|
|
|
|
)
|
2022-03-21 19:09:54 +02: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 16:16:50 -07:00
|
|
|
visibility = [
|
|
|
|
|
"//aio/tools/examples/shared:__pkg__",
|
|
|
|
|
"//integration:__subpackages__",
|
|
|
|
|
],
|
2022-03-21 19:09:54 +02:00
|
|
|
)
|
2023-02-20 12:37:34 -08: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",
|
|
|
|
|
}),
|
|
|
|
|
)
|