Usage

import * as denon from "https://deno.land/x/denon@2.5.0/mod.ts";

§Classes

Denon

Denon instance. Holds loaded configuration and handles creation of daemons with the start(script) method.

Runner

Handle all the things related to process management. Scripts are built into executable commands that are executed by Deno.run() and managed in an Executable object to make available process events.

Watcher

Watches for file changes in paths path yielding an array of all of the changes each time one or more changes are detected. It is debounced by interval, recursive, exts, match and skip are filtering the files which will yield a change

§Variables

DEFAULT_DENON_CONFIG

The default denon configuration

§Interfaces

Command
DenonCrashEvent
DenonExitEvent
DenonReloadEvent
DenonStartEvent
DenonSuccessEvent
FileEvent

A file that was changed, created or removed

RunnerConfig

Runner configuration. This configuration is, in contrast to other, extended by Denon config as scripts has to be a top level parameter.

WatcherConfig

All of the options for the watch generator

§Type Aliases

DenonConfig
DenonEvent
DenonEventType

Events you can listen to when creating a denon instance as module:

const denon = new Denon(config);
for await (const event of denon.run(script)) {
  // event handling here
}