0.0.1 • Published 9 years ago

watchx v0.0.1

Weekly downloads
2
License
WTFPL
Repository
-
Last release
9 years ago

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
0.0.1

9 years ago