gulp-watch-network

Watch File Events received over the Network using Listen and execute Gulp Tasks based on it

renamed to watch-network
Last updated 6 years ago by efacilitation .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-watch-network 
SYNC missed versions from official npm registry.

Build Status

Information

Package gulp-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.

Current Tags

  • 0.1.7                                ...           latest (6 years ago)

12 Versions

  • 0.1.7 [deprecated]           ...           6 years ago
  • 0.1.6 [deprecated]           ...           6 years ago
  • 0.1.5 [deprecated]           ...           6 years ago
  • 0.1.4 [deprecated]           ...           6 years ago
  • 0.1.3 [deprecated]           ...           6 years ago
  • 0.1.2 [deprecated]           ...           6 years ago
  • 0.1.1 [deprecated]           ...           6 years ago
  • 0.1.0 [deprecated]           ...           6 years ago
  • 0.0.3 [deprecated]           ...           6 years ago
  • 0.0.2 [deprecated]           ...           6 years ago
  • 0.0.1 [deprecated]           ...           6 years ago
  • 0.0.0 [deprecated]           ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |