index.d.ts 1.0 KB

12345678910111213141516171819
  1. import type { CliInitOptions, Config, Logger, TaskCommand } from '../internal/index';
  2. import type { ConfigFlags } from './config-flags';
  3. /**
  4. * Runs the CLI with the given options. This is used by Stencil's default `bin/stencil` file,
  5. * but can be used externally too.
  6. * @param init a set of initialization options needed to run Stencil from its CLI
  7. * @returns an empty promise
  8. */
  9. export declare function run(init: CliInitOptions): Promise<void>;
  10. /**
  11. * Run individual CLI tasks.
  12. * @param coreCompiler The core Stencil compiler to be used. The `run()` method handles loading the core compiler, however, `runTask()` must be passed it.
  13. * @param config Assumes the config has already been validated and has the "sys" and "logger" properties.
  14. * @param task The task command to run, such as `build`.
  15. * @returns an empty promise
  16. */
  17. export declare function runTask(coreCompiler: any, config: Config, task: TaskCommand): Promise<void>;
  18. export declare function parseFlags(args: string[]): ConfigFlags;
  19. export { Config, ConfigFlags, Logger, TaskCommand };