Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

thefrontside/watch

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@frontside/watch

Watch is a very simple tool that does one thing: run a command, and every time source files change in a directory, shutdown the current invocation gracefully and restart it.

deno -A jsr:@frontside/watch --command "npm start"

Graceful Shutdown

Watch will send SIGINT and SIGTERM to your command, and then wait until its stdout stream is closed, indicating that it has no further output. It will not attempt to start your command again until that has happened. This is important, because your process might be holding onto any number of resources that have to be safely released before exiting.

Git aware

If you are running this command inside a git repository, it will only perform restarts on files that are under source control, or could be candidates for source control (not ignored).

About

A process monitor that respects graceful shutdown

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.