forked from stenciljs/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublic.ts
More file actions
24 lines (19 loc) · 1.04 KB
/
Copy pathpublic.ts
File metadata and controls
24 lines (19 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { CliInitOptions, Config, Logger, TaskCommand } from '@stencil/core/internal';
import type { ConfigFlags } from './config-flags';
/**
* Runs the CLI with the given options. This is used by Stencil's default `bin/stencil` file,
* but can be used externally too.
* @param init a set of initialization options needed to run Stencil from its CLI
* @returns an empty promise
*/
export declare function run(init: CliInitOptions): Promise<void>;
/**
* Run individual CLI tasks.
* @param coreCompiler The core Stencil compiler to be used. The `run()` method handles loading the core compiler, however, `runTask()` must be passed it.
* @param config Assumes the config has already been validated and has the "sys" and "logger" properties.
* @param task The task command to run, such as `build`.
* @returns an empty promise
*/
export declare function runTask(coreCompiler: any, config: Config, task: TaskCommand): Promise<void>;
export declare function parseFlags(args: string[]): ConfigFlags;
export { Config, ConfigFlags, Logger, TaskCommand };