Jason Aden
3a6d270bb8
Revert "feat(compiler-cli): add watch mode to ngc
( #18818 )"
...
This reverts commit 06d01b22878c489025931c863c1f8129adb0195c.
2017-08-30 19:02:03 -07:00
Chuck Jazdzewski
06d01b2287
feat(compiler-cli): add watch mode to ngc
( #18818 )
...
With this change ngc now accepts a `-w` or a `--watch`
command-line option that will automatically perform a
recompile whenever any source files change on disk.
PR Close #18818
2017-08-30 18:00:52 -07: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
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
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
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