2021-06-28 13:50:44 -04:00
|
|
|
load("//tools:defaults.bzl", "api_golden_test_npm_package", "ng_module", "ng_package")
|
2017-12-17 18:10:54 -05:00
|
|
|
|
2019-01-16 04:19:01 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-02-13 11:19:33 -05:00
|
|
|
ng_module(
|
2017-12-17 18:10:54 -05:00
|
|
|
name = "upgrade",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
2019-03-22 05:42:52 -04:00
|
|
|
"src/dynamic/src/*.ts",
|
2017-12-17 18:10:54 -05:00
|
|
|
],
|
|
|
|
),
|
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/platform-browser-dynamic",
|
2019-03-22 05:42:52 -04:00
|
|
|
"//packages/upgrade/src/common",
|
2019-10-05 23:06:53 -04:00
|
|
|
"//packages/zone.js/lib:zone_d_ts",
|
2017-12-17 18:10:54 -05:00
|
|
|
],
|
|
|
|
)
|
2018-03-07 14:26:11 -05:00
|
|
|
|
|
|
|
ng_package(
|
|
|
|
name = "npm_package",
|
2018-03-13 14:00:53 -04:00
|
|
|
srcs = [
|
|
|
|
"package.json",
|
|
|
|
"//packages/upgrade/static:package.json",
|
2019-03-22 05:42:52 -04:00
|
|
|
"//packages/upgrade/static/testing:package.json",
|
2018-03-13 14:00:53 -04:00
|
|
|
],
|
2019-06-07 16:38:06 -04:00
|
|
|
entry_point = ":index.ts",
|
2018-06-05 14:38:46 -04:00
|
|
|
tags = [
|
|
|
|
"release-with-framework",
|
|
|
|
],
|
2018-12-11 19:53:42 -05:00
|
|
|
# Do not add more to this list.
|
|
|
|
# Dependencies on the full npm_package cause long re-builds.
|
2020-02-04 14:45:40 -05:00
|
|
|
visibility = ["//integration:__pkg__"],
|
2018-03-07 14:26:11 -05:00
|
|
|
deps = [
|
|
|
|
":upgrade",
|
|
|
|
"//packages/upgrade/static",
|
2019-03-22 05:42:52 -04:00
|
|
|
"//packages/upgrade/static/testing",
|
2018-03-07 14:26:11 -05:00
|
|
|
],
|
|
|
|
)
|
2020-02-26 12:09:35 -05:00
|
|
|
|
2021-06-28 13:50:44 -04:00
|
|
|
api_golden_test_npm_package(
|
2020-02-26 12:09:35 -05:00
|
|
|
name = "upgrade_api",
|
|
|
|
data = [
|
|
|
|
":npm_package",
|
|
|
|
"//goldens:public-api",
|
|
|
|
],
|
2021-06-28 13:50:44 -04:00
|
|
|
golden_dir = "angular/goldens/public-api/upgrade",
|
|
|
|
npm_package = "angular/packages/upgrade/npm_package",
|
2020-02-26 12:09:35 -05:00
|
|
|
)
|