UNPKG

vitepress-jsdoc

Version:

A bridge between Vitepress and JSDoc-style commented codebases for hassle-free documentation.

36 lines 1.24 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.WatcherManager = void 0; const file_watcher_js_1 = __importDefault(require("./file-watcher.js")); /** * The `WatcherManager` class provides functionalities to watch files or directories * for changes. It leverages the `FileWatcher` to set up and manage the watching process * based on the provided plugin options. */ class WatcherManager { options; /** * Creates an instance of the `WatcherManager` class. * * @param {PluginOptions} options - plugin options to guide the file watching process. */ constructor(options) { this.options = options; } /** * Initializes and starts the file watching process based on the provided arguments. * * @example * const watcherManager = new WatcherManager(cliArgs); * watcherManager.watch(); */ watch() { const watcher = new file_watcher_js_1.default(this.options); watcher.watch(); } } exports.WatcherManager = WatcherManager; //# sourceMappingURL=watcher-manager.js.map