1 | #!/usr/bin/env node
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | /// <amd-module name="@angular/compiler-cli/src/main" />
|
---|
10 | import 'reflect-metadata';
|
---|
11 | import * as ts from 'typescript';
|
---|
12 | import * as api from './transformers/api';
|
---|
13 | import { Diagnostics, 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 | }, modifiedResourceFiles?: Set<string> | null): number;
|
---|
17 | export declare function mainDiagnosticsForTest(args: string[], config?: NgcParsedConfiguration, programReuse?: {
|
---|
18 | program: api.Program | undefined;
|
---|
19 | }, modifiedResourceFiles?: Set<string> | null): ReadonlyArray<ts.Diagnostic | api.Diagnostic>;
|
---|
20 | export interface NgcParsedConfiguration extends ParsedConfiguration {
|
---|
21 | watch?: boolean;
|
---|
22 | }
|
---|
23 | export declare function readNgcCommandLineAndConfiguration(args: string[]): NgcParsedConfiguration;
|
---|
24 | export declare function readCommandLineAndConfiguration(args: string[], existingOptions?: api.CompilerOptions, ngCmdLineOptions?: string[]): ParsedConfiguration;
|
---|
25 | export declare function watchMode(project: string, options: api.CompilerOptions, consoleError: (s: string) => void): {
|
---|
26 | close: () => void;
|
---|
27 | ready: (cb: () => void) => void;
|
---|
28 | firstCompileResult: Diagnostics;
|
---|
29 | };
|
---|