1 | import { TaskRunModes } from "./task.resolve";
|
2 | import { LogLevel } from "./reporters/defaultReporter";
|
3 | import { OutgoingReport } from "./reporter.resolve";
|
4 | import { InitConfigFileTypes } from "./command.init";
|
5 | import { WatchEvent } from "./watch.file-watcher";
|
6 | import { ExternalFile } from "./file.utils";
|
7 | import Rx = require("rx");
|
8 | export declare enum SignalTypes {
|
9 | Exit,
|
10 | FileWrite,
|
11 | }
|
12 | export interface CBSignal<T> {
|
13 | type: SignalTypes;
|
14 | data?: T;
|
15 | }
|
16 | export declare type OutgoingSignals = Rx.Subject<CBSignal<ExitSignal | FileWriteSignal>>;
|
17 | export interface ExitSignal {
|
18 | code: number;
|
19 | }
|
20 | export interface FileWriteSignal {
|
21 | file: ExternalFile;
|
22 | content: string;
|
23 | }
|
24 | export interface CrossbowConfiguration {
|
25 | cwd: string;
|
26 | runMode: TaskRunModes;
|
27 | verbose: LogLevel;
|
28 | parallel: boolean;
|
29 | fail: boolean;
|
30 | force: boolean;
|
31 | reporter: string;
|
32 | handoff: boolean;
|
33 | input: string[];
|
34 | interactive: boolean;
|
35 | outputOnly: boolean;
|
36 | suppressOutput: boolean;
|
37 | progress: boolean;
|
38 | cbfile?: string;
|
39 | dump: boolean;
|
40 | envPrefix: string;
|
41 | env: any;
|
42 | before: string[];
|
43 | type?: InitConfigFileTypes;
|
44 | debug: boolean;
|
45 | reporters: Array<string | Function>;
|
46 | skip: string[];
|
47 | tasksDir: string[];
|
48 | nodeModulesPaths: string[];
|
49 | block?: boolean;
|
50 | debounce?: boolean;
|
51 | throttle?: boolean;
|
52 | fromJson?: string;
|
53 | file?: string;
|
54 | output?: string;
|
55 | dryRun?: boolean;
|
56 | dryRunDuration?: number;
|
57 | outputObserver?: Rx.Observable<OutgoingReport>;
|
58 | fileChangeObserver?: Rx.Observable<WatchEvent>;
|
59 | signalObserver?: OutgoingSignals;
|
60 | scheduler?: Rx.IScheduler;
|
61 | }
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 | export declare function merge(opts: CrossbowConfiguration | any): CrossbowConfiguration;
|