angular/packages/core/test
Alex Rickabaugh 1eafd04eb3 build(ivy): support alternate compilation modes to enable Ivy testing (#24056)
Bazel has a restriction that a single output (eg. a compiled version of
//packages/common) can only be produced by a single rule. This precludes
the Angular repo from having multiple rules that build the same code. And
the complexity of having a single rule produce multiple outputs (eg. an
ngc-compiled version of //packages/common and an Ivy-enabled version) is
too high.

Additionally, the Angular repo has lots of existing tests which could be
executed as-is under Ivy. Such testing is very valuable, and it would be
nice to share not only the code, but the dependency graph / build config
as well.

Thus, this change introduces a --define flag 'compile' with three potential
values. When --define=compile=X is set, the entire build system runs in a
particular mode - the behavior of all existing targets is controlled by
the flag. This allows us to reuse our entire build structure for testing
in a variety of different manners. The flag has three possible settings:

* legacy (the default): the traditional View Engine (ngc) build
* local: runs the prototype ngtsc compiler, which does not rely on global
  analysis
* jit: runs ngtsc in a mode which executes tsickle, but excludes the
  Angular related transforms, which approximates the behavior of plain
  tsc. This allows the main packages such as common to be tested with
  the JIT compiler.

Additionally, the ivy_ng_module() rule still exists and runs ngc in a mode
where Ivy-compiled output is produced from global analysis information, as
a stopgap while ngtsc is being developed.

PR Close #24056
2018-05-29 18:02:29 -04:00
..
animation fix(animations): retain state styling for nodes that are moved around (#23534) 2018-05-02 16:58:46 -07:00
bundling build(ivy): support alternate compilation modes to enable Ivy testing (#24056) 2018-05-29 18:02:29 -04:00
change_detection refactor: ensure all 'TODO's are consistent (#23252) 2018-04-13 13:11:01 -07:00
debug feat(core): set preserveWhitespaces to false by default (#22046) 2018-02-16 09:06:14 -08:00
di revert: refactor(ivy): make return value of define(Component|Directive|Pipe|Injector|Injectable) private (#23371) 2018-04-13 23:02:29 -07:00
dom fix(platform-server): add styles to elements correctly (#22527) 2018-03-14 14:12:31 -07:00
linker fix(core): avoid eager providers re-initialization (#23559) 2018-04-27 07:16:12 -07:00
metadata build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
reflection feat(core): support metadata reflection for native class types (#22356) 2018-02-22 13:22:03 -08:00
render3 feat(ivy): add support for short-circuiting (#24039) 2018-05-25 13:46:50 -04:00
sanitization feat(ivy): provide sanitization methods which can be tree shaken (#22540) 2018-03-07 18:24:07 -08:00
testability feat(core): add task tracking to Testability (#16863) 2018-03-14 08:48:48 -07:00
util feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
view fix(core): call ngOnDestroy on all services that have it (#23755) 2018-05-08 13:55:29 -07:00
zone build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
application_init_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
application_module_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
application_ref_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
BUILD.bazel test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
component_fixture_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
dev_mode_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
directive_lifecycle_integration_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
error_handler_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
event_emitter_spec.ts fix(core): fix proper propagation of subscriptions in EventEmitter (#22016) 2018-02-06 07:56:33 -08:00
fake_async_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
forward_ref_integration_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
spies.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00
testing_internal_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00
util_spec.ts build(core): remove main() from specs (#21053) 2017-12-22 13:10:51 -08:00