@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
29 lines (28 loc) • 810 B
TypeScript
import AbstractFeature from '../AbstractFeature';
import { FeatureCode } from '../features.types';
export default class WatchFeature extends AbstractFeature {
description: string;
code: FeatureCode;
nameReadable: string;
private _isWatching;
private watcher?;
private timeoutId?;
private changesSinceLastChange;
isWatching(): Promise<boolean>;
startWatching(options?: {
delay?: number;
sourceDir?: string;
}): Promise<void>;
private mapChokidarActionToSchemaId;
private mapChokidarActionToGeneratedAction;
private fireChange;
stopWatching(): Promise<void>;
}
declare module '../../features/features.types' {
interface FeatureMap {
watch: WatchFeature;
}
interface FeatureOptionsMap {
watch: undefined;
}
}