UNPKG

@ionic/app-scripts

Version:
27 lines (26 loc) 1.33 kB
import { BuildContext, ChangedFile } from './util/interfaces'; export declare function watch(context?: BuildContext, configFile?: string): Promise<void>; export declare function prepareWatcher(context: BuildContext, watcher: Watcher): void; export declare function buildUpdate(event: string, filePath: string, context: BuildContext): Promise<void>; export declare function queueWatchUpdatesForBuild(event: string, filePath: string, context: BuildContext): Promise<void>; export declare let buildUpdatePromise: Promise<any>; export declare let queuedChangedFileMap: Map<string, ChangedFile>; export declare function queueOrRunBuildUpdate(changedFiles: ChangedFile[], context: BuildContext): Promise<any>; export declare function copyUpdate(event: string, filePath: string, context: BuildContext): Promise<void>; export declare function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[]): ChangedFile[]; export interface WatchConfig { [index: string]: Watcher; } export interface Watcher { paths?: string[] | string; options?: { ignored?: string | string[] | Function; ignoreInitial?: boolean; followSymlinks?: boolean; cwd?: string; }; eventName?: string; callback?: { (event: string, filePath: string, context: BuildContext): Promise<any>; }; }