denon
denon copied to clipboard
Events
Emit events that trigger certain scripts or commands, this would allow for live-reload of websites, linting, formatting etc. A good inspiration for events would be nodemon events. The events would also not block the normal function or executors of denon and should probably be called before the executors are called.
I propose that the bare minimum events would be:
- start
- restart
- exit
And would be specified in the config like the following:
"events": {
"start": "deno run ./setup.ts",
"restart": "deno fmt",
"exit": "deno run ./finish.ts"
}
FYI I came here looking for livereload functionality 🤞