watchman/watchman

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

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.