2018-02-13 14:26:06 -05:00
|
|
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
2017-06-02 12:43:52 -04:00
|
|
|
|
2019-01-16 04:19:01 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-02-02 12:18:44 -05:00
|
|
|
ng_module(
|
2017-06-02 12:43:52 -04:00
|
|
|
name = "common",
|
2017-12-06 09:56:49 -05:00
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//rxjs",
|
2017-12-06 09:56:49 -05:00
|
|
|
],
|
2017-06-02 12:43:52 -04:00
|
|
|
)
|
2018-02-13 14:26:06 -05:00
|
|
|
|
|
|
|
ng_package(
|
|
|
|
name = "npm_package",
|
2018-03-13 14:00:53 -04:00
|
|
|
srcs = [
|
|
|
|
"package.json",
|
|
|
|
"//packages/common/http:package.json",
|
|
|
|
"//packages/common/http/testing:package.json",
|
|
|
|
"//packages/common/testing:package.json",
|
2019-04-25 10:36:49 -04:00
|
|
|
"//packages/common/upgrade:package.json",
|
2018-03-13 14:00:53 -04:00
|
|
|
],
|
2019-06-07 16:38:06 -04:00
|
|
|
entry_point = ":index.ts",
|
2019-12-28 19:37:59 -05:00
|
|
|
nested_packages = ["//packages/common/locales:package"],
|
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.
|
|
|
|
visibility = [
|
2020-02-04 14:45:40 -05:00
|
|
|
"//integration:__pkg__",
|
2018-12-11 19:53:42 -05:00
|
|
|
"//packages/bazel/test/ng_package:__pkg__",
|
2019-01-22 12:46:51 -05:00
|
|
|
"//packages/compiler-cli/integrationtest:__pkg__",
|
2019-03-20 09:47:58 -04:00
|
|
|
"//packages/compiler-cli/ngcc/test:__pkg__",
|
2018-12-11 19:53:42 -05:00
|
|
|
"//packages/compiler-cli/test:__pkg__",
|
|
|
|
"//packages/compiler-cli/test/diagnostics:__pkg__",
|
|
|
|
"//packages/compiler-cli/test/transformers:__pkg__",
|
|
|
|
"//packages/compiler/test:__pkg__",
|
|
|
|
"//packages/language-service/test:__pkg__",
|
|
|
|
],
|
2018-02-13 14:26:06 -05:00
|
|
|
deps = [
|
|
|
|
"//packages/common",
|
|
|
|
"//packages/common/http",
|
|
|
|
"//packages/common/http/testing",
|
|
|
|
"//packages/common/testing",
|
2019-04-25 10:36:49 -04:00
|
|
|
"//packages/common/upgrade",
|
2018-02-13 14:26:06 -05:00
|
|
|
],
|
|
|
|
)
|