angular-cn/packages/bazel
Alex Rickabaugh b61c009c54 build: emit performance JSON file for each ng_module() (#41125)
A previous commit implemented a streamlined performance metric reporting
system for the compiler-cli, controlled via the compiler option
`tracePerformance`.

This commit adds a custom Bazel flag rule //packages/compiler-cli:ng_perf
to the repository, and wires it through to the `ng_module` implementation
such that if the flag is set, `ng_module` will produce perf results as part
of the build. The underlying mechanism of `//:ng_perf` is not exported from
`@angular/bazel` as a public rule that consumers can use, so there is little
risk of accidental dependency on the contents of these perf traces.

An alias is added so that `--ng_perf` is a Bazel flag which works in our
repository.

PR Close #41125
2021-03-24 13:42:25 -07:00
..
docs build: remove deps on legacy nodejs rules rollup_bundle internals (#33201) (#33607) 2019-11-06 19:56:57 +00:00
src build: emit performance JSON file for each ng_module() (#41125) 2021-03-24 13:42:25 -07:00
test test(bazel): use bazel runfiles helper for resolving file names (#40955) 2021-02-23 10:38:09 -08:00
third_party/github.com/bazelbuild/bazel/src/main/protobuf build: upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) 2020-10-08 11:54:59 -07:00
BUILD.bazel build: update .bazelversion (#40579) 2021-01-26 11:35:54 -08:00
index.bzl build: emit performance JSON file for each ng_module() (#41125) 2021-03-24 13:42:25 -07:00
package.bzl build: update to rules_nodejs@3.1.0 (#40710) 2021-02-09 10:48:43 -08:00
package.json feat(core): drop support for TypeScript 4.0 and 4.1 (#41158) 2021-03-17 09:10:25 -07:00