angular-cn/packages
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
..
animations fix(animations): do not throw errors when a destroyed component is animated (#23836) 2018-05-11 16:08:14 -04:00
bazel build(ivy): support alternate compilation modes to enable Ivy testing (#24056) 2018-05-29 18:02:29 -04:00
benchpress fix(benchpress): Fix promise chain in chrome_driver_extension. (#23458) 2018-05-14 15:32:44 -07:00
common test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
compiler build(ivy): support alternate compilation modes to enable Ivy testing (#24056) 2018-05-29 18:02:29 -04:00
compiler-cli build(ivy): support alternate compilation modes to enable Ivy testing (#24056) 2018-05-29 18:02:29 -04:00
core build(ivy): support alternate compilation modes to enable Ivy testing (#24056) 2018-05-29 18:02:29 -04:00
docs
elements test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
examples fix(common): titlecase pipe (#22600) 2018-03-23 13:42:51 -04:00
forms test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
http test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
language-service build: upgrade to TypeScript 2.8 (#23782) 2018-05-15 15:31:12 -07:00
platform-browser docs: add doc to event-management api (#23656) 2018-05-22 17:33:49 -04:00
platform-browser-dynamic test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
platform-server style: remove empty comments (#23404) 2018-05-10 15:48:13 -07:00
platform-webworker test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
platform-webworker-dynamic style: remove empty comments (#23404) 2018-05-10 15:48:13 -07:00
router test: switch to ts_web_test_suite (#23859) 2018-05-15 11:40:56 -07:00
service-worker fix(service-worker): check platformBrowser before accessing navigator.serviceWorker (#21231) 2018-05-22 15:09:31 -04:00
upgrade build: upgrade to TypeScript 2.8 (#23782) 2018-05-15 15:31:12 -07:00
BUILD.bazel feat(bazel): introduce a binary stamping feature (#22176) 2018-02-15 14:08:53 -08:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts
es6-subset.d.ts build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00
goog.d.ts fix(compiler): add typings for `COMPILED`. 2017-09-29 09:26:38 -07:00
license-banner.txt docs(common): update copyright years (#21232) 2018-01-04 17:45:36 -05:00
rollup.config.js refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
system.d.ts
tsconfig-build.json build: enable importHelpers in tsconfig (#22812) 2018-03-15 21:16:03 -07:00
tsconfig-metadata.json refactor(compiler): bump metadata version to 4 (#19338) 2017-09-26 13:31:59 -07:00
tsconfig.json feat(elements): add schematics (#23298) 2018-04-11 18:13:30 -07:00
types.d.ts perf(ivy): add performance counters in ngDevMode (#23385) 2018-05-01 10:27:40 -07:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT