Skip to main content
Module

x/frugal/core.ts>FrugalWatcher

A frugal web framework
Go to Latest
class FrugalWatcher
import { FrugalWatcher } from "https://deno.land/x/frugal@0.5.0/core.ts";

Wrap a FrugalBuilder in a watcher instance. Internally, this class will spawn a child deno process in watch mode actually running the FrugalBuilder and the produced instance.

Constructors

new
FrugalWatcher(builder: FrugalBuilder)

Methods

watch(paths?: string[])

start the watch process. By default all modules in the dependency graph are watched (see https://deno.land/manual/getting_started/command_line_interface#watch-mode). If you want to watch additionnal files/folders, pass them to the paths option.