angular/packages/bazel/src
Roy Dorombozi 6375fa7987 refactor(bazel): add support for starlark's unused_inputs_list (#45946)
This change adds the capability of ngc_wrapped to emit an
unused_inputs_list file that could be used by starlark.

We are making this change because in situations where angular modules
depend on angular modules, it becomes very easy for a single change to
trigger a long cascading set of angular builds since each angular rule
depends on the transitive closure of input files.

With this change in place, and once it is properly configured, bazel
will update the set of inputs to a build rule after it is built once
removing any of the inputs specified in this list, making incremental
builds quicker by skipping any rebuilds that only had changes to unused
inputs.

This logic should be, and is likely duplicated in tsc_wrapped to solve
the same problem in pure TypeScript situations, ideally we could use the
same implementation one day.

In addition, its possible that tree artifacts are not as supported as
we'd like, and where this change should mark entire directories as
unused, we may get better performance gains by enumerating the directory
and being more explicit about specific inputs which are unused.

PR Close #45946
2022-05-11 11:21:56 -07:00
..
ng_module build: clean up references to old master branch (#45856) 2022-05-04 16:23:33 -07:00
ng_package fix(bazel): speed up d.ts bundling by configuring worker (#45900) 2022-05-05 15:35:14 -07:00
ngc-wrapped refactor(bazel): add support for starlark's unused_inputs_list (#45946) 2022-05-11 11:21:56 -07:00
types_bundle fix(bazel): speed up d.ts bundling by configuring worker (#45900) 2022-05-05 15:35:14 -07:00
BUILD.bazel feat(bazel): create transition for enabling partial compilation (#43431) 2021-10-01 18:28:42 +00:00
external.bzl build: migrate more usages from @bazel/typescript to @bazel/concatjs (#45431) 2022-03-25 12:18:34 -07:00
ng_perf.bzl refactor(bazel): move ng_module.bzl file into sub-directory for consistent structure (#43431) 2021-10-01 18:28:42 +00:00