denosaurs/denon

Events

Open

#22 opened on Apr 14, 2020

 (1 comment) (1 reaction) (0 assignees)TypeScript (43 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (1,109 stars)
PR merge metrics
 (PR metrics pending)

Description

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"
}

Contributor guide