index.d.ts 931 B

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