cowboy/grunt — pull request #399 by shama (2012-09-04 00:21:40+00:00)
Title: Modify watch task to use chokidar

Fixes #318

The `unlink` event doesn't fire with chokidar on OSX and Windows 7: paulmillr/chokidar#9. This will poll if the file exists on those platforms as a backup for now.

Some additional features/improvements to this I think would be useful are:
* Add an option to spawn upon files being added to folders.
* Fire `grunt.event` events.
* Use `grunt.util.spawn` to spawn tasks as child processes (will let us test this easier as well).