angular/packages/bazel/src
Doug Parker e0a72857cc fix(bazel): construct a manifest file even when warnings are emitted (#43582)
Refs #42966.

Previously if _any_ diagnostics were emitted, regardless of their category, the manifest would not be generated. This means that if a target emits only warnings and no errors, it would still fail to build because it does not generate all the required output files (specifically the `.es5.MF` file). Now the manifest file is generated as long as there are no error diagnostics in the result. This makes `ng_module()` support compiler warnings as a user would expect.

Added a test which uses extended template diagnostics to trigger the invalid banana in box diagnostic. This generates a warning and uses Skylib's `build_test()` to verify that it builds successfully. Unfortunately there is no easy way to verify that the warning diagnostic is emitted at all. `expected_diagnostics` should be able to do that, but it doesn't seem to have any effect on `ng_module()` and may not be integrated. Instead, testing that a target with warnings builds correctly is the best we can easily do here without a deeper investigation.

PR Close #43582
2021-09-29 09:58:24 -07:00
..
api-extractor fix(bazel): update integration test to use rules_nodejs@3.1.0 (#40710) 2021-02-09 10:48:43 -08:00
ng_package build: remove skydoc and rules_sass from repository (#42760) 2021-07-09 14:50:15 -07:00
ngc-wrapped fix(bazel): construct a manifest file even when warnings are emitted (#43582) 2021-09-29 09:58:24 -07:00
BUILD.bazel build: remove skydoc and rules_sass from repository (#42760) 2021-07-09 14:50:15 -07:00
external.bzl 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
modify_tsconfig.js fix(dev-infra): exclude node_modules from circular dependency checks (#41407) 2021-04-02 15:47:33 -07:00
ng_module.bzl feat(bazel): add strict_templates and experimental_extended_template_diagnostics to ng_module() rule (#43582) 2021-09-29 09:58:23 -07:00
ng_perf.bzl build: emit performance JSON file for each ng_module() (#41125) 2021-03-24 13:42:25 -07:00