Alex Eagle
5da96c75a2
fix(bazel): don't console.error from the compile helper ( #19879 )
...
This lets other callers of compile() choose different formatting for the diagnostics
PR Close #19879
2017-10-23 16:56:57 -04:00
Alex Eagle
56774dfb79
fix(compiler-cli): diagnostics file paths relative to cwd, not tsconfig ( #19748 )
...
PR Close #19748
2017-10-18 11:18:17 -07:00
Tobias Bosch
ad130d62d8
fix(compiler): add first bazel test for `ng_module` ( #19703 )
...
We were missing quite a bit of test coverage,
this is the start of recreating it.
PR Close #19703
2017-10-17 15:18:31 -07:00
Vikram Subramanian
405ccc7195
fix(bazel): fix the output directory for extractor to be genfiles/ instead of bin/ ( #19716 )
...
PR Close #19716
2017-10-13 17:31:10 -07:00
Vikram Subramanian
836c889baa
fix(compiler): prepare for future Bazel semantics of += ( #19717 )
...
This is a local mod that was already applied in G3.
PR Close #19717
2017-10-13 16:29:46 -07:00
Tobias Bosch
653a211743
Revert "Revert "Revert "perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )"""
...
This reverts commit 6b7cead0c5
.
2017-10-12 16:09:49 -07:00
Chuck Jazdzewski
6b7cead0c5
Revert "Revert "perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )""
...
This reverts commit 94a925a1b0
.
2017-10-12 10:32:21 -07:00
Chuck Jazdzewski
94a925a1b0
Revert "perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )"
...
This reverts commit a22121d65d
.
2017-10-12 10:26:53 -07:00
Tobias Bosch
a22121d65d
perf(compiler): skip type check and emit in bazel in some cases. ( #19646 )
...
If no user files changed:
- only type check the changed generated files
Never emit non changed generated files
- we still calculate them, but don’t send them through
TypeScript to emit them but cache the written files instead.
PR Close #19646
2017-10-11 15:54:02 -07:00
Tobias Bosch
81167d9c4a
perf(compiler): speed up loading of summaries for bazel. ( #19581 )
...
For hazel, we have a specific way of writing summaries,
which we can leverage to make the deserialization faster.
PR Close #19581
2017-10-06 14:48:02 -07:00
Tobias Bosch
0b06ea177a
perf(compiler): only type check input files when using bazel ( #19581 )
...
This helps hazel as it does not check libraries (e.g. the default lib) which are
not input files, but still checks `.d.ts` files that are inputs.
PR Close #19581
2017-10-06 14:48:02 -07:00
Tobias Bosch
1058b2a778
fix(compiler): always emit summaries for jit with ng_module bazel rule.
2017-10-03 09:57:12 -07:00
Tobias Bosch
b0868915ae
perf(compiler): don’t emit summaries for jit by default
...
This re-adds the flag `enableSummariesForJit` to the compiler options
that already existed in Angular 4.
2017-10-02 08:24:50 -07:00
Tobias Bosch
627f04883a
fix(compiler): implement i18n with new compiler
...
This commit is from vikerman@
closes #19429
2017-09-27 10:10:49 -07:00
Tobias Bosch
a8a9660112
fix(compiler): various squashed fixes for the new ngc
...
introduce the option `allowEmptyCodegenFiles` to generate all generated files,
even if they are empty.
- also provides the original source files from which the file was generated
in the write file callback
- needed e.g. for G3 when copying over pinto mod names from the original component
to all generated files
use `importAs` from flat modules when writing summaries
- i.e. prevents incorrect entries like @angular/common/common in the .ngsummary.json files.
change interaction between ng and ts to prevent race conditions
- before Angular would rely on TS to first read the file for which we generate files,
and then the generated files. However, this can break easily when we reuse an old program.
don’t generate files for sources that are outside of `rootDir`
(see #19337 )
2017-09-25 13:36:00 -07:00
Alex Eagle
9ad4b3bd31
build: update to latest @bazel/typescript ( #19277 )
...
Switches devmode output of an ng_module to UMD
2017-09-25 12:40:22 -07:00
Tobias Bosch
b826e0c636
refactor(compiler): don’t workaround a fixed tsickle bug ( #19301 )
...
PR Close #19301
2017-09-21 09:59:40 -07:00
Matias Niemelä
4695c69cf1
refactor(compiler): remove all source-level traces to tsc-wrapped ( #18966 )
...
- temporarily keeps the old sources under packages/tsc-wrapped
until the build scripts are changed to use compiler-cli everywhere.
- removes the compiler options `disableTransformerPipeline` that was introduced
in a previous beta of Angular 5, i.e. the transformer based compiler
is now always enabled.
PR Close #18966
2017-09-13 20:47:37 -04:00
Tobias Bosch
ca5aebaa6b
refactor: update angular to support TypeScript 2.4
...
Detailed updates:
- rxjs@5.0.x
- tsickle@0.24.x
- typescript@2.4.x
- @bazel/typescript@0.10.0
- protractor@5.1.x
- selenium-webdriver@3.0.x
BREAKING CHANGE:
- the Angular compiler now requires TypeScript 2.4.x.
2017-09-12 10:31:30 -07:00
Tobias Bosch
a69172f6ce
fix(compiler): fix bazel integration and make `perform-compile` more flexible
...
Needed to allow custom checking for diagnostics.
2017-09-07 19:30:04 -04:00
Alex Eagle
d2707f1457
build: cleanup duplicated code now in @bazel/typescript ( #19004 )
...
PR Close #19004
2017-09-05 23:17:26 -05:00
Alex Eagle
fef3d2ad53
build: ngc-wrapped as a bazel worker ( #18960 )
...
PR Close #18960
2017-09-01 12:23:11 -05:00
Tobias Bosch
a1293b26ef
build: correctly collect summary files with bazel ( #18912 )
...
PR Close #18912
2017-08-31 13:27:56 -07:00
Tobias Bosch
667473c32d
build: for bazel, paths in summaries should never contain blaze prefix paths ( #18912 )
...
PR Close #18912
2017-08-31 13:27:56 -07:00
Alex Eagle
f2f5286020
build: upgrade to latest bazel rules ( #18733 )
...
PR Close #18733
2017-08-23 11:34:52 -05:00
Alex Eagle
47220997e1
build: add bazel integration test ( #18733 )
...
It includes sass compilation, and building the bazel package
distribution.
PR Close #18733
2017-08-23 11:34:52 -05:00
Alex Eagle
9ffa490d3f
refactor(compiler-cli): move ngc-wrapped to packages/bazel ( #18733 )
...
See design: https://goo.gl/rAeYWx
PR Close #18733
2017-08-23 11:34:51 -05:00