fruit/watchkit

There is no license information available for the latest version (dev-master) of this package.

file watcher of fruit framework

dev-master 2016-09-11 14:06 UTC

This package is auto-updated.

Last update: 2024-12-19 01:39:39 UTC


README

I'm watching you

This package is part of Fruit Framework.

WatchKit is a tool helping you develope your web application with Fruit framework or any other which needs to generate php code dynamically.

It is still under developement, anything could be changed later.

Build Status

Usage

Create a watcher.json in project directory.

{
  // pattern => shell script
  "src/**/*.php": "make test",
  "test": "make test"
}

and run bin/watcher (or vendor/bin/watcher when installed via composer).

More detail

WatchKit parses your pattern, use inotify to watch the changes made to it, and execute shell script when changed.

If the pattern resolves to some directory, WatchKit will also watch for child directories recursively. All changes does to decent files will trigger an execution. So newly created files are under monitoring.

Known bug

When pattern resolves to files, newly created files will not be watched.

License

Any version of MIT, GPL or LGPL.