UNPKG

1.73 kBTypeScriptView Raw
1/// <reference types="minimist" />
2import * as minimist from 'minimist';
3import { ParsedDiagnostics } from './util';
4/**
5 * Run `ngc-webpack` in library mode (i.e. run `ngc`) using `@angular/cli` (ng) configuration.
6 * The cli is used to create a live instance of the webpack configuration, from there it is the same process as [[runCli]]
7 *
8 * `tsconfig` json path is taken from the options of AngularCompilerPlugin
9 *
10 * > This is not recommended, you would normally want to provide your own tsconfig with proper `angularCompilerOptions`.
11 */
12export declare function runNgCli(): Promise<ParsedDiagnostics>;
13/**
14 * Run `ngc-webpack` in library mode (i.e. run `ngc`) using `@angular/cli` (ng) configuration.
15 * The cli is used to create a live instance of the webpack configuration, from there it is the same process as [[runCli]]
16 *
17 * `tsconfig` json path is taken from cli parameters (-p or --project) or, if not exists the options of
18 * AngularCompilerPlugin
19 *
20 * @param cliParams cli Parameters, parsedArgs is not mandatory
21 */
22export declare function runNgCli(cliParams: {
23 args: string[];
24 parsedArgs?: minimist.ParsedArgs;
25}): Promise<ParsedDiagnostics>;
26/**
27 * Run `ngc-webpack` in library mode (i.e. run `ngc`) using `@angular/cli` (ng) configuration.
28 * The cli is used to create a live instance of the webpack configuration, from there it is the same process as [[runCli]]
29 *
30 * `tsconfig` json path is taken from the supplied tsConfigPath parameter.
31 *
32 * @param {string} tsConfigPath
33 * @param cliParams cli Parameters, parsedArgs is not mandatory
34 */
35export declare function runNgCli(tsConfigPath: string, cliParams?: {
36 args: string[];
37 parsedArgs?: minimist.ParsedArgs;
38}): Promise<ParsedDiagnostics>;