@karmaniverous/jeeves-watcher
    Preparing search index...

    Class FileSystemWatcher

    Filesystem watcher that maps chokidar events to the processing queue.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Create a new FileSystemWatcher.

      Parameters

      • config: {
            debounceMs?: number;
            ignored?: string[];
            paths: string[];
            pollIntervalMs?: number;
            respectGitignore?: boolean;
            stabilityThresholdMs?: number;
            usePolling?: boolean;
        }

        Watch configuration.

        • OptionaldebounceMs?: number

          Debounce delay in milliseconds for file change events.

        • Optionalignored?: string[]

          Glob patterns to ignore.

        • paths: string[]

          Glob patterns to watch.

        • OptionalpollIntervalMs?: number

          Polling interval in milliseconds.

        • OptionalrespectGitignore?: boolean

          Whether to respect .gitignore files when processing.

        • OptionalstabilityThresholdMs?: number

          Time in milliseconds a file must be stable before processing.

        • OptionalusePolling?: boolean

          Whether to use polling instead of native watchers.

      • queue: EventQueue

        The event queue.

      • processor: DocumentProcessorInterface

        The document processor.

      • logger: Logger

        The logger instance.

      • options: FileSystemWatcherOptions = {}

        Optional health/fatal error options.

      Returns FileSystemWatcher

    Accessors

    Methods

    • Start watching the filesystem and processing events.

      Returns void