1 | import { Task } from "./task.resolve";
|
2 | import { CommandTrigger } from "./command.run";
|
3 | import { Runner } from "./task.runner";
|
4 | import { SequenceItem } from "./task.sequence.factories";
|
5 | import { TaskReport } from "./task.runner";
|
6 | export declare function createFlattenedSequence(tasks: Task[], trigger: CommandTrigger): SequenceItem[];
|
7 | /**
|
8 | * If the current TaskType is an InlineFunction or
|
9 | * module to be run,
|
10 | */
|
11 | export interface ITaskOptions {
|
12 | _default?: any;
|
13 | [index: string]: any;
|
14 | }
|
15 | /**
|
16 | * ******************
|
17 | * Where the **--~~Magic~~--** happens!!!
|
18 | * ******************
|
19 | *
|
20 | * Creating a task runner in crossbow is really about
|
21 | * wrapping the process of running the tasks in a way
|
22 | * that allows comprehensive logging/reporting
|
23 | *
|
24 | * Series & Parallel have different semantics and are
|
25 | * therefor handled separately.
|
26 | *
|
27 | * Note that everything here is completely lazy and
|
28 | * nothing will be executed until a user calls subscribe
|
29 | */
|
30 | export declare function createRunner(items: SequenceItem[], trigger: CommandTrigger): Runner;
|
31 | /**
|
32 | * After a bunch of tasks have run, we need to link up task-ended reports
|
33 | * with their original position in the sequence. This will allow us to
|
34 | * reconstruct the task render-tree but also show any tasks that errored
|
35 | * or did not complete
|
36 | * @param sequence
|
37 | * @param reports
|
38 | * @returns {*}
|
39 | */
|
40 | export declare function decorateSequenceWithReports(sequence: SequenceItem[], reports: TaskReport[]): any;
|
41 | /**
|
42 | * Look at every item in the sequence tree and count how many
|
43 | * error have occured
|
44 | */
|
45 | export declare function countSequenceErrors(items: SequenceItem[]): number;
|
46 | export declare function collectSkippedTasks(items: SequenceItem[], initial: any): SequenceItem[];
|
47 | export declare function collectRunnableTasks(items: SequenceItem[], initial: SequenceItem[]): SequenceItem[];
|