1 | import { CommandTrigger } from "./command.run";
|
2 | import { CrossbowConfiguration } from "./config";
|
3 | import { CrossbowInput, CLI, CrossbowReporter } from "./index";
|
4 | import { WatchRunners } from "./watch.runner";
|
5 | import { WatchTasks } from "./watch.resolve";
|
6 | import { BeforeTasks } from "./watch.before";
|
7 | import Rx = require("rx");
|
8 | import { WatchTaskReport, WatchRunnerComplete } from "./watch.file-watcher";
|
9 | import { ReportTypes } from "./reporter.resolve";
|
10 | export interface CrossbowError extends Error {
|
11 | _cb: boolean;
|
12 | }
|
13 | export interface WatchCommandSetupErrors {
|
14 | type: ReportTypes;
|
15 | }
|
16 | export interface WatchCommandOutput {
|
17 | setup: WatchCommandSetup;
|
18 | update$: Rx.Observable<WatchReport>;
|
19 | }
|
20 | export interface WatchCommandSetup {
|
21 | beforeTasks?: BeforeTasks;
|
22 | watchTasks?: WatchTasks;
|
23 | watchRunners?: WatchRunners;
|
24 | errors: WatchCommandSetupErrors[];
|
25 | }
|
26 | export declare type WatchCommmandComplete = Rx.Observable<WatchCommandOutput>;
|
27 | export interface WatchReport {
|
28 | type: WatchCommandEventTypes;
|
29 | data: WatchTaskReport | WatchRunnerComplete;
|
30 | }
|
31 | export declare enum WatchCommandEventTypes {
|
32 | SetupError,
|
33 | FileEvent,
|
34 | WatchTaskReport,
|
35 | WatchRunnerComplete,
|
36 | BeforeTasksComplete,
|
37 | }
|
38 | export default function handleIncomingWatchCommand(cli: CLI, input: CrossbowInput, config: CrossbowConfiguration, reporter: CrossbowReporter): WatchCommmandComplete;
|
39 | export declare function getWatchCommandSetup(trigger: CommandTrigger): WatchCommandSetup;
|