1 | import { WatchOptions } from "chokidar";
|
2 | import { WatchTaskError } from "./watch.errors";
|
3 | import { CrossbowInput } from "./index";
|
4 | import { Tasks } from "./task.resolve";
|
5 | import { SequenceItem } from "./task.sequence.factories";
|
6 | import { Runner } from "./task.runner";
|
7 | import { CommandTrigger } from "./command.run";
|
8 | import { TaskCollection } from "./task.resolve";
|
9 | export declare const defaultWatchOptions: CBWatchOptions;
|
10 | export interface CBWatchOptions extends WatchOptions {
|
11 | throttle: number;
|
12 | debounce: number;
|
13 | delay: number;
|
14 | block: boolean;
|
15 | }
|
16 | export interface WatchTask {
|
17 | before: string[];
|
18 | options: CBWatchOptions;
|
19 | watchers: Watcher[];
|
20 | name: string;
|
21 | errors: WatchTaskError[];
|
22 | patterns?: string[];
|
23 | tasks?: string[];
|
24 | }
|
25 | export interface Watcher {
|
26 | patterns: string[];
|
27 | tasks: TaskCollection;
|
28 | options: any;
|
29 | watcherUID: string;
|
30 | _tasks?: Tasks;
|
31 | _sequence?: SequenceItem[];
|
32 | _runner?: Runner;
|
33 | parent?: string;
|
34 | }
|
35 | export interface WatchTasks {
|
36 | valid: WatchTask[];
|
37 | invalid: WatchTask[];
|
38 | all: WatchTask[];
|
39 | }
|
40 | export declare function resolveWatchTasks(taskNames: string[], trigger: CommandTrigger): WatchTasks;
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export declare function resolveBeforeTasks(beforeFlagsFromCliOrConfig: string[], input: CrossbowInput, watchTasks: WatchTask[]): string[];
|