UNPKG

1.42 kBTypeScriptView Raw
1#!/usr/bin/env node
2/**
3 * @license
4 * Copyright Google Inc. 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" />
10import 'reflect-metadata';
11import * as ts from 'typescript';
12import * as api from './transformers/api';
13import { ParsedConfiguration } from './perform_compile';
14export declare function main(args: string[], consoleError?: (s: string) => void, config?: NgcParsedConfiguration, customTransformers?: api.CustomTransformers, programReuse?: {
15 program: api.Program | undefined;
16}): number;
17export declare function mainDiagnosticsForTest(args: string[], config?: NgcParsedConfiguration): ReadonlyArray<ts.Diagnostic | api.Diagnostic>;
18export interface NgcParsedConfiguration extends ParsedConfiguration {
19 watch?: boolean;
20}
21export declare function readNgcCommandLineAndConfiguration(args: string[]): NgcParsedConfiguration;
22export declare function readCommandLineAndConfiguration(args: string[], existingOptions?: api.CompilerOptions, ngCmdLineOptions?: string[]): ParsedConfiguration;
23export 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};