Skip to content

wolfflow/watchx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watchx

Tool that watches files and executes scripts

Install

npm install --global watchx

Usage

Copy example config and edit to fit your needs, then execute:

watchx [config file]

Example config

{
  "DIR"     : "/directory/to/watch",
  "IGNORE"  : [".git/**", "node_modules"],
  "DEBOUNCE": 100,
  "ACTIONS" : {
    "SINGLE_CHANGE"  : "/scripts/single_change.sh",
    "MULTIPLE_CHANGE": "/scripts/multiple_change.sh"
  }
}

Actions

Each action has corresponding script for execution. Here is a list of actions:

  • SINGLE_CHANGE – only one file was changed
  • MULTIPLE_CHANGE – multiple files were changed in period of debounce

About

Watch and execute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%