This package has been deprecated

Author message:

renamed to watch-network

gulp-watch-network

0.1.7 • Public • Published

Build Status

Information

Packagegulp-watch-network
Description Watch File Events received over the Network using net.connect

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.

Package Sidebar

Install

npm i gulp-watch-network

Weekly Downloads

5

Version

0.1.7

License

MIT

Last publish

Collaborators

  • medialwerk
  • efacilitation