1 | import { BuildContext, ChangedFile } from './util/interfaces';
|
2 | export declare function watch(context?: BuildContext, configFile?: string): Promise<void>;
|
3 | export declare function prepareWatcher(context: BuildContext, watcher: Watcher): void;
|
4 | export declare function buildUpdate(event: string, filePath: string, context: BuildContext): Promise<void>;
|
5 | export declare function queueWatchUpdatesForBuild(event: string, filePath: string, context: BuildContext): Promise<void>;
|
6 | export declare let buildUpdatePromise: Promise<any>;
|
7 | export declare let queuedChangedFileMap: Map<string, ChangedFile>;
|
8 | export declare function queueOrRunBuildUpdate(changedFiles: ChangedFile[], context: BuildContext): Promise<any>;
|
9 | export declare function copyUpdate(event: string, filePath: string, context: BuildContext): Promise<void>;
|
10 | export declare function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[]): ChangedFile[];
|
11 | export interface WatchConfig {
|
12 | [index: string]: Watcher;
|
13 | }
|
14 | export interface Watcher {
|
15 | paths?: string[] | string;
|
16 | options?: {
|
17 | ignored?: string | string[] | Function;
|
18 | ignoreInitial?: boolean;
|
19 | followSymlinks?: boolean;
|
20 | cwd?: string;
|
21 | };
|
22 | eventName?: string;
|
23 | callback?: {
|
24 | (event: string, filePath: string, context: BuildContext): Promise<any>;
|
25 | };
|
26 | }
|