UNPKG

1.01 kBTypeScriptView Raw
1#!/usr/bin/env node
2/// <amd-module name="@angular/compiler-cli/src/main" />
3import 'reflect-metadata';
4import * as ts from 'typescript';
5import * as api from './transformers/api';
6import { ParsedConfiguration } from './perform_compile';
7export declare function main(args: string[], consoleError?: (s: string) => void, config?: NgcParsedConfiguration): number;
8export declare function mainDiagnosticsForTest(args: string[], config?: NgcParsedConfiguration): ReadonlyArray<ts.Diagnostic | api.Diagnostic>;
9export interface NgcParsedConfiguration extends ParsedConfiguration {
10 watch?: boolean;
11}
12export declare function readCommandLineAndConfiguration(args: string[], existingOptions?: api.CompilerOptions, ngCmdLineOptions?: string[]): ParsedConfiguration;
13export declare function watchMode(project: string, options: api.CompilerOptions, consoleError: (s: string) => void): {
14 close: () => void;
15 ready: (cb: () => void) => void;
16 firstCompileResult: ReadonlyArray<api.Diagnostic | ts.Diagnostic>;
17};