2017-12-06 09:56:49 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-02-13 14:26:06 -05:00
|
|
|
load("//tools:defaults.bzl", "ng_module", "ng_package")
|
2017-06-02 12:43:52 -04:00
|
|
|
|
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",
|
|
|
|
"@rxjs",
|
|
|
|
],
|
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",
|
|
|
|
],
|
2018-02-13 14:26:06 -05:00
|
|
|
entry_point = "packages/common/index.js",
|
2018-04-03 17:10:21 -04:00
|
|
|
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 = [
|
|
|
|
"//packages/bazel/test/ng_package:__pkg__",
|
2019-01-22 12:46:51 -05:00
|
|
|
"//packages/compiler-cli/integrationtest:__pkg__",
|
2018-12-11 19:53:42 -05:00
|
|
|
"//packages/compiler-cli/test:__pkg__",
|
|
|
|
"//packages/compiler-cli/test/diagnostics:__pkg__",
|
|
|
|
"//packages/compiler-cli/test/ngcc:__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",
|
|
|
|
],
|
|
|
|
)
|