refactor(compiler-cli): expose ngtools api separately (#18952)

PR Close #18952
This commit is contained in:
Filipe Silva
2017-08-30 14:37:21 +01:00
committed by Jason Aden
parent 06d01b2287
commit 1953e2af7a
5 changed files with 137 additions and 9 deletions

View File

@ -250,13 +250,6 @@ export interface Program {
*/
loadNgStructureAsync(): Promise<void>;
/**
* Retrieve the lazy route references in the program.
*
* Angular structural information is required to produce these routes.
*/
getLazyRoutes(cancellationToken?: ts.CancellationToken): {[route: string]: string};
/**
* Emit the files requested by emitFlags implied by the program.
*

View File

@ -134,8 +134,6 @@ class AngularCompilerProgram implements Program {
});
}
getLazyRoutes(cancellationToken?: ts.CancellationToken): {[route: string]: string} { return {}; }
emit({emitFlags = EmitFlags.Default, cancellationToken, customTransformers,
emitCallback = defaultEmitCallback}: {
emitFlags?: EmitFlags,