build: enable bundle_dts for a number of packages (#28726)

This change enables dts bundling for the following packages and their secondary entry points:

- @angular/animations
- @angular/elements
- @angular/http
- @angular/platform-browser
- @angular/platform-browser-dynamic
- @angular/platform-server
- @angular/platform-webworker
- @angular/platform-webworker-dynamic
- @angular/servce-worker

Dts bundling happens in `ng_module` bazel definition, hence packages such as `@angular/compiler`, `@angular/compiler-cli` and `@angular/langauge service` cannot be flattened as they use `ts_library`.

`@angular/core`, `@angular/common`, `@angular/upgrade` and `@angular/forms` will be done seperatly as it requires some changes either to their source or specs.

PR Close #28726
This commit is contained in:
Alan Agius 2019-02-19 18:16:08 +01:00 committed by Igor Minar
parent 02ee8c7bc5
commit fd4e1d69ee
17 changed files with 17 additions and 0 deletions

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages/core",
],

View File

@ -12,6 +12,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages/animations",
"//packages/core",

View File

@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
ng_module(
name = "testing",
srcs = glob(["**/*.ts"]),
bundle_dts = True,
deps = [
"//packages/animations",
"//packages/animations/browser",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages/core",
"//packages/platform-browser",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages/core",
"//packages/platform-browser",

View File

@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
ng_module(
name = "testing",
srcs = glob(["**/*.ts"]),
bundle_dts = True,
deps = [
"//packages/core",
"//packages/http",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages:types",
"//packages/common",

View File

@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
ng_module(
name = "testing",
srcs = glob(["**/*.ts"]),
bundle_dts = True,
deps = [
"//packages/compiler",
"//packages/compiler/testing",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages:types",
"//packages/common",

View File

@ -12,6 +12,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages/animations",
"//packages/animations/browser",

View File

@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
ng_module(
name = "testing",
srcs = glob(["**/*.ts"]),
bundle_dts = True,
deps = [
"//packages/core",
"//packages/core/testing",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages/animations/browser",
"//packages/common",

View File

@ -7,6 +7,7 @@ load("//tools:defaults.bzl", "ng_module")
ng_module(
name = "testing",
srcs = glob(["**/*.ts"]),
bundle_dts = True,
deps = [
"//packages/core",
"//packages/platform-browser-dynamic/testing",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages:types",
"//packages/common",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages:types",
"//packages/common",

View File

@ -10,6 +10,7 @@ ng_module(
"src/**/*.ts",
],
),
bundle_dts = True,
deps = [
"//packages/common",
"//packages/core",

View File

@ -10,5 +10,6 @@ ng_module(
"*.ts",
"src/**/*.ts",
]),
bundle_dts = True,
deps = ["//packages/core"],
)