angular/tools
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
..
build build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
cjs-jasmine feat(elements): add support for creating custom elements (#22413) 2018-03-16 12:39:07 -07:00
code.angularjs.org build: use subshells when changing directories 2017-05-12 12:19:51 -07:00
gulp-tasks refactor: update CLDR data for closure locale & use a const for undefined (#23372) 2018-04-13 16:30:23 -07:00
http-server build: serve ivy todo app with real http-server (#23446) 2018-04-25 15:51:18 -07:00
karma build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
ngcontainer build: update bazel to 0.13 (#23623) 2018-05-04 15:23:55 -07:00
npm build: remove local yarn (#19981) 2017-11-02 15:11:34 -07:00
public_api_guard feat(platform-browser): add HammerJS lazy-loader symbols to public API (#23943) 2018-05-22 13:41:16 -04:00
source-map-test build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
symbol-extractor fix(ivy): change symbol-extractor to use .accept rather than -—define UPDATE_GOLDEN=1 (#22913) 2018-03-22 18:02:48 -04:00
testing feat(ivy): first steps towards ngtsc mode (#23455) 2018-04-25 13:25:33 -07:00
travis build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
tree-shaking-test refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
ts-api-guardian build: remove unnecessary stability check (#23176) 2018-04-05 10:03:39 -07:00
tsc-watch build: remove references to tsc-wrapped (#19298) 2017-09-21 13:55:52 -07:00
tslint feat(elements): add schematics (#23298) 2018-04-11 18:13:30 -07:00
validate-commit-message build: make commit validation accept typical Revert messages (#23480) 2018-04-22 11:49:49 -07:00
yarn build: upgrade yarn to 1.3.2 (#21406) 2018-01-10 12:32:26 -08:00
bazel.rc build(ivy): support alternate compilation modes to enable Ivy testing (#24056) 2018-05-29 18:02:29 -04:00
bazel_stamp_vars.sh build: only match version tags for BUILD_SCM_VERSION (#23903) 2018-05-14 12:44:26 -07:00
BUILD.bazel build: fix bazel stamping (#22965) 2018-03-28 09:00:02 -07:00
check-environment.js build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
defaults.bzl build(ivy): support alternate compilation modes to enable Ivy testing (#24056) 2018-05-29 18:02:29 -04:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
postinstall-patches.js build: remove a postinstall-patch to fix rxjs (#23234) 2018-04-17 14:09:02 -07:00
tsconfig.json test(bazel): Build and test ts-api-guardian locally (#22544) 2018-03-02 15:00:00 -08:00
types.d.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00