watchman/watchman

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

Installs: 13

Dependents: 0

Stars: 7

Watches: 1

Forks: 1

Language: CSS

v0.1.4 2014-03-22 12:35 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.