2020-02-26 12:09:35 -05:00
|
|
|
load("//tools:defaults.bzl", "ng_module", "ng_package", "ts_api_guardian_test_npm_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 = "platform-webworker",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
|
|
|
),
|
2019-06-14 03:29:04 -04:00
|
|
|
# Disable building with strict compatibility as the platform-webworker package is
|
|
|
|
# deprecated and therefore it is not needed to make it compatible with --strict.
|
|
|
|
tsconfig = "//packages:tsconfig-build-no-strict",
|
2017-12-17 18:10:54 -05:00
|
|
|
deps = [
|
|
|
|
"//packages:types",
|
|
|
|
"//packages/common",
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/platform-browser",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//rxjs",
|
2017-12-17 18:10:54 -05:00
|
|
|
],
|
|
|
|
)
|
2018-03-07 14:26:11 -05:00
|
|
|
|
|
|
|
ng_package(
|
|
|
|
name = "npm_package",
|
|
|
|
srcs = ["package.json"],
|
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 = [
|
|
|
|
":platform-webworker",
|
|
|
|
],
|
|
|
|
)
|
2020-02-26 12:09:35 -05:00
|
|
|
|
|
|
|
ts_api_guardian_test_npm_package(
|
|
|
|
name = "platform-webworker_api",
|
2020-03-12 07:36:28 -04:00
|
|
|
actualDir = "angular/packages/platform-webworker/npm_package",
|
2020-02-26 12:09:35 -05:00
|
|
|
data = [
|
|
|
|
":npm_package",
|
|
|
|
"//goldens:public-api",
|
|
|
|
],
|
2020-03-12 07:36:28 -04:00
|
|
|
goldenDir = "angular/goldens/public-api/platform-webworker",
|
2020-02-26 12:09:35 -05:00
|
|
|
)
|