Tobias Bosch
43226cb93d
feat(compiler): use typescript for resolving resource paths
...
This can also be customized via the new method `resourceNameToFileName` in the
`CompilerHost`.
2017-08-16 15:24:48 -07:00
Tobias Bosch
2572bf508f
feat(compiler): make .ngsummary.json files portable
...
This also allows to customize the filePaths in `.ngsummary.json` file
via the new methods `toSummaryFileName` and `fromSummaryFileName`
on the `CompilerHost`.
2017-08-16 15:24:48 -07:00
Tobias Bosch
6a1ab61cce
refactor(compiler): simplify the CompilerHost used for transformers
...
- remove unneeded methods (`getNgCanonicalFileName`, `assumeFileExists`)
- simplify moduleName <-> fileName conversion logic as we don’t need to
account for `genDir` anymore.
- rename `createNgCompilerHost` -> `createCompilerHost`
2017-08-16 15:24:48 -07:00
Tobias Bosch
27d5058e01
refactor(compiler): extract a BaseAotCompilerHost that is shared between the old and new logic
2017-08-16 15:24:48 -07:00
Chuck Jazdzewski
bc22ff1517
fix(language-service): remove tsickle dependency
...
Removes the tsickle dependency added when tsickle was added to the
transform compiler.
Added a test to ensure stray dependencies are not added and no
errors are introduced during module flattening.
2017-08-16 11:33:49 -07:00
Pawel Kozlowski
d2c0d986d4
perf(core): add option to remove blank text nodes from compiled templates
2017-08-14 13:26:16 -07:00
Tobias Bosch
27d901a51d
refactor(compiler-cli): cleanup API for transformer based ngc
...
This is in preparation for watch mode.
2017-08-11 13:20:45 -07:00
Victor Berchet
679608db65
refactor(compiler-cli): use the transformer based compiler by default
...
The source map does not currently work with the transformer pipeline.
It will be re-enabled after TypeScript 2.4 is made the min version.
To revert to the former compiler, use the `disableTransformerPipeline` in
tsconfig.json:
```
{
"angularCompilerOptions": {
"disableTransformerPipeline": true
}
}
```
2017-08-10 20:30:40 -07:00
Chuck Jazdzewski
6f2038cc85
fix(compiler-cli): fix and re-enble expression lowering ( #18570 )
...
Fixes issue uncovered by #18388 and re-enables expression
lowering disabled by #18513 .
2017-08-08 12:40:08 -07:00
Chuck Jazdzewski
5b7432b6ea
fix(compiler-cli): remove minimist dependency of compiler-cli/index ( #18532 )
...
Indirectly removes the minimist dependency in the language service
package was added with the addition of `ngc.ts`.
2017-08-07 14:30:35 -07:00
Victor Berchet
ca695e0632
fix(compiler-cli): disable buggy expression lowering ( #18513 )
2017-08-03 14:31:23 -07:00
Abhimanyu Deora
5651e4ac72
fix(compiler-cli): modified ngc to throw all errors, not just syntax ( #18388 )
2017-08-03 11:10:47 -07:00
Victor Berchet
9479a106bb
build: enable TSLint on the packages folder
2017-07-31 15:47:57 -07:00
Chuck Jazdzewski
b6c4af6495
feat(compiler-cli): automatically lower lambda expressions in metadata
2017-07-31 11:30:44 -07:00
Abhimanyu Deora
d20ac14fe2
refactor(compiler-cli): allow custom error checking function in ngc ( #18355 )
...
PR Close #18355
2017-07-26 17:55:31 -05:00
Abhimanyu Deora
ce47546188
refactor(compiler-cli): add support for browser compiler bundle ( #17979 )
...
PR Close #17979
2017-07-25 15:51:46 -05:00
Alex Eagle
6fc5940959
build: Bazel builds ngfactories for packages/core ( #18289 )
...
PR Close #18289
2017-07-21 18:09:47 -05:00
Miško Hevery
b7a6f52d59
perf: latest tsickle to tree shake: abstract class methods & interfaces ( #18236 )
...
In previous version of tsickle abstract class methods were materialized.
The change resulted in 6Kb savings in angular.io bundle.
This change also required the removal of `@private` and `@return` type
annotation as it is explicitly dissalowed by tsickle.
NOTE: removed casts in front of `makeDecorator` due to:
https://github.com/angular/devkit/issues/45
```
14938 Jul 19 13:16 0.b19e913fbdd6507d346b.chunk.js
1535 Jul 19 13:16 inline.d8e019ea3cfdd86c2bd0.bundle.js
589178 Jul 19 13:16 main.54c97bcb6f254776b678.bundle.js
34333 Jul 19 13:16 polyfills.4a3c9ca9481d53803157.bundle.js
14938 Jul 18 16:55 0.b19e913fbdd6507d346b.chunk.js
1535 Jul 18 16:55 inline.0c83abb44fad9a2768a7.bundle.js
582786 Jul 18 16:55 main.ea290db71b051813e156.bundle.js
34333 Jul 18 16:55 polyfills.4a3c9ca9481d53803157.bundle.js
main savings: 589178 - 582786 = 6,392
```
PR Close #18236
2017-07-21 16:35:37 -05:00
Chuck Jazdzewski
abee785821
refactor(tsc-wrapped): update tsc-wrapped to pass strictNullCheck ( #18160 )
...
PR Close #18160
2017-07-21 12:26:20 -05:00
Olivier Combe
671a175dfb
fix(compiler-cli): fix relative source paths on windows for extracted msg ( #17915 )
...
Fixes #16639
2017-07-07 16:33:40 -07:00
Chuck Jazdzewski
c1474f33be
feat(compiler-cli): add parameters to ngc main needed by bazel rules ( #17885 )
2017-07-07 16:29:39 -07:00
Victor Berchet
9c3386b1b7
fix(compiler): remove i18n markup even if no translations ( #17999 )
...
Fixes #11042
2017-07-07 16:16:49 -07:00
Abhimanyu Deora
2ba3ada27f
revert: "refactor(compiler-cli): remove the dependency on fs in codegen.ts ( #17738 )"
...
This reverts commit b116901400 .
2017-07-07 16:16:25 -07:00
Chuck Jazdzewski
227dbbcfba
fix(language-service): ignore hover of symbols not in the TypeScript program ( #17969 )
...
Fixes : #17965
2017-07-07 08:47:28 -07:00
Abhimanyu Deora
b116901400
refactor(compiler-cli): remove the dependency on fs in codegen.ts ( #17738 )
2017-07-06 12:11:21 -07:00
Chuck Jazdzewski
3097083277
feat(compiler-cli): new compiler api and command-line using TypeScript transformers
2017-06-23 16:18:44 -07:00
Chuck Jazdzewski
4352dd27c4
fix(compiler): avoid emitting self importing factories
...
Fixes : #17389
2017-06-21 16:19:43 -07:00
Chuck Jazdzewski
8c89cc4fc5
fix(compiler-cli): find lazy routes in nested module import arrays
...
Fixes : #17531
2017-06-20 14:21:14 -07:00
Chuck Jazdzewski
f194f18dbd
fix(language-service): infer any ngForOf of type any
...
Fixes : #17611
2017-06-20 12:04:51 -07:00
Tobias Bosch
90b0713e32
refactor(compiler): don’t write summaries for jit by default
...
The default is false externally but true internally at Google.
2017-06-09 15:58:53 -07:00