angular/packages/bazel/src
Paul Gschwendtner 217db9b216 feat(bazel): support ts_library targets as entry-points for ng_package (#32610)
Within an Angular package, it can happen that there are
entry-points which do not contain features that belong into
an `@NgModule` or need metadata files to be generated.

For example: the `cdk`, `cdk/testing` and `cdk/coercion`
entry-points. Besides other entry-points in the `cdk`
package, those entry-points do not need metadata to
be generated and no not use the `ng_module` rule.

Currently the "ng_package" rule properly picks up such
entry-points and builds bundles, does downleveling etc.
The only thing it misses is that no `package.json` files
are generated for the entry-point. This means that consumers
will not be able to use these entry-points built with "ts_library"
(except accessing the individual bundlings explicitly).

The "ng_package" rule should follow the full APF specification
for such entry-points. Partially building bundles and doing the
downleveling is confusing and a breaking issue.

The motifivation of supporting this (besides making the
rule behavior consistent; the incomplete output is not
acceptable), is that using the "ng_module" rule does
not make sense to be used for non-Angular entry-points.

Especially since it depends on Angular packages to
be specified as Bazel action inputs just to compile
vanilla TypeScript with `@angular/compiler-cli`.

PR Close #32610
2019-09-13 13:23:55 -07:00
..
api-extractor feat(bazel): update to the latest @microsoft/api-extractor (#32185) 2019-08-30 13:55:32 -04:00
builders build: update to nodejs rules 0.34.0 and bazel 0.28.1 (#31824) 2019-07-26 15:01:25 -07:00
ng_package feat(bazel): support ts_library targets as entry-points for ng_package (#32610) 2019-09-13 13:23:55 -07:00
ngc-wrapped refactor(ivy): remove the tsc passthrough option (#32219) 2019-08-20 16:41:08 -07:00
schematics feat: make the Ivy compiler the default for ngc (#32219) 2019-08-20 16:41:08 -07:00
BUILD.bazel build: update to rules_nodejs 0.32.2 (#31325) 2019-07-01 14:16:42 -07:00
esm5.bzl build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
external.bzl build(bazel): remove deprecated rules_nodejs NodeModuleInfo provider (#31325) 2019-07-01 14:16:42 -07:00
modify_tsconfig.js fix(bazel): do not throw error when writing tsickle externs (#27200) 2018-12-04 14:01:24 -08:00
ng_module.bzl feat(bazel): compile targets used for indexing by Kythe with Ivy (#31786) 2019-07-23 21:14:16 -07:00
ng_rollup_bundle.bzl build: update rules_nodejs and clean up bazel warnings (#30370) 2019-05-14 10:08:45 -07:00