1 | #!/usr/bin/env node
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | import 'reflect-metadata';
|
11 | import * as ts from 'typescript';
|
12 | import * as api from './transformers/api';
|
13 | import { ParsedConfiguration } from './perform_compile';
|
14 | export declare function main(args: string[], consoleError?: (s: string) => void, config?: NgcParsedConfiguration, customTransformers?: api.CustomTransformers, programReuse?: {
|
15 | program: api.Program | undefined;
|
16 | }): number;
|
17 | export declare function mainDiagnosticsForTest(args: string[], config?: NgcParsedConfiguration): ReadonlyArray<ts.Diagnostic | api.Diagnostic>;
|
18 | export interface NgcParsedConfiguration extends ParsedConfiguration {
|
19 | watch?: boolean;
|
20 | }
|
21 | export declare function readNgcCommandLineAndConfiguration(args: string[]): NgcParsedConfiguration;
|
22 | export declare function readCommandLineAndConfiguration(args: string[], existingOptions?: api.CompilerOptions, ngCmdLineOptions?: string[]): ParsedConfiguration;
|
23 | export declare function watchMode(project: string, options: api.CompilerOptions, consoleError: (s: string) => void): {
|
24 | close: () => void;
|
25 | ready: (cb: () => void) => void;
|
26 | firstCompileResult: readonly (api.Diagnostic | ts.Diagnostic)[];
|
27 | };
|