feat(bazel): allow ng_module rules to control whether type checking is enabled (#21460)

Defaults to true which is different than `ngc` which defaults to false.

PR Close #21460
This commit is contained in:
Chuck Jazdzewski 2018-01-10 16:18:26 -08:00 committed by Alex Eagle
parent 9b5a485243
commit cffa0fe734
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,7 @@ def _ngc_tsconfig(ctx, files, srcs, **kwargs):
"generateCodeForLibraries": False,
"allowEmptyCodegenFiles": True,
"enableSummariesForJit": True,
"fullTemplateTypeCheck": ctx.attr.type_check,
# FIXME: wrong place to de-dupe
"expectedOut": depset([o.path for o in expected_outs]).to_list(),
"preserveWhitespaces": False,
@ -262,6 +263,8 @@ NG_MODULE_ATTRIBUTES = {
".html",
]),
"type_check": attr.bool(default = True),
"no_i18n": attr.bool(default = False),
"compiler": attr.label(