watchman/watchman

A file watcher daemon, implemented in PHP, with only common PHP dependencies.

Installs: 14

Dependents: 0

Stars: 8

Watchers: 2

Forks: 0

Open Issues: 0

v0.1.5 2015-10-07 15:21 UTC

README

A file watcher daemon, implemented in PHP and designed to use minimal dependencies.

Setup

$ composer global require 'watchman/watchman=0.1.*'

How to Use

Define a watchlist.json in the root of your project directory. Here's an example for Bootstrap:

[{
    "src": [
        "bootstrap-3.1.1/less",
        "bootstrap-3.1.1/js"
    ],
    "exclude": [
        "bootstrap-3.1.1/js/tests"
    ],
    "run": "script.sh"  
}]

Run watchman

$ watchman.php watch

Examples

See the bootstrap example.