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
Filipe Silva
e228f2caa6
fix(compiler-cli): use forward slashes for ts.resolveModuleName ( #18784 )
...
Windows paths have back slashes, but TypeScript expects to always have forward slashes.
In other places where this call happens (like `src/compiler_host.ts`) the same fix is present.
PR Close #18784
2017-08-18 22:28:08 -05:00
Tobias Bosch
ffb1553282
refactor(compiler): make the new ngc API independent of tsickle ( #18739 )
...
This changes `performCompile` / `program.emit` to not tsickle automatically,
but allows to pass in an `emitCallback` in which tsickle can be executed.
2017-08-17 18:00:52 -05:00
Tobias Bosch
0cc77b4a69
refactor(compiler): split compiler and core ( #18683 )
...
After this, neither @angular/compiler nor @angular/comnpiler-cli depend
on @angular/core.
This add a duplication of some interfaces and enums which is stored
in @angular/compiler/src/core.ts
BREAKING CHANGE:
- `@angular/platform-server` now additionally depends on
`@angular/platform-browser-dynamic` as a peer dependency.
PR Close #18683
2017-08-16 17:58:53 -05:00
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
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
Victor Berchet
ca695e0632
fix(compiler-cli): disable buggy expression lowering ( #18513 )
2017-08-03 14:31:23 -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
Alex Eagle
6fc5940959
build: Bazel builds ngfactories for packages/core ( #18289 )
...
PR Close #18289
2017-07-21 18:09:47 -05: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
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
18bf77204e
feat(compiler): emit typescript nodes from an output ast ( #16823 )
2017-05-30 10:43:13 -07:00