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