0.1.7 • Published 9 years ago
gulp-watch-network v0.1.7
Information
Based on the Listen Feature "Forwarding file events over TCP", this plugin will connect to a Listen broadcaster as a receiver and watch for File Events. Upon receiving a File Event it will execute tasks
based on patterns
. This can be useful for virtualized development environments when file events are unavailable, as is the case with Vagrant / VirtualBox.
Usage
gulp = require('gulp');
gulp.task('something:important', function() {
// ..
});
WatchNetwork = require("gulp-watch-network");
watch = WatchNetWork({
gulp: gulp,
host: '127.0.0.1',
configs: [
{
tasks: 'something:important'
onLoad: true
}, {
patterns: 'lib/*.coffee'
tasks: 'something:important'
}
]
});
watch.on('changed', function(files) {
// .. files changed..
});
watch.on('initialized', function(files) {
// .. watcher finished initializing..
});
watch.initialize();
License
Licensed under the MIT license.