Sha256: 4d5d3d574cf1521e8df341328b471e314b7e2da9c4c37b656517afcf92018359

Contents?: true

Size: 845 Bytes

Versions: 9

Compression:

Stored size: 845 Bytes

Contents

var fs, watch, watch_original;
watch = require('../main');
watch_original = require('watch');
fs = require('fs');

watch.createMonitor(__dirname, function (monitor) {
    monitor.on("created", function (f, stat) {
        console.log(f + " created");
    });
    monitor.on("changed", function (f, curr, prev) {
        console.log(f + " changed");
    });
    monitor.on("removed", function (f, stat) {
        console.log(f + " removed");
    });
});

watch_original.createMonitor(__dirname, function (monitor) {
    monitor.on("created", function (f, stat) {
        console.log("ORIGINAL: " + f + " created");
    });
    monitor.on("changed", function (f, curr, prev) {
        console.log("ORIGINAL: " + f + " changed");
    });
    monitor.on("removed", function (f, stat) {
        console.log("ORIGINAL: " + f + " removed");
    });
});

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/watch/test/test_monitorRootDirectory.js
locomotivecms-3.4.0 app/javascript/node_modules/watch/test/test_monitorRootDirectory.js
lanes-0.8.0 node_modules/watch/test/test_monitorRootDirectory.js
batman-rails-flo-0.1.0 vendor/assets/javascripts/batman/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitorRootDirectory.js
batman-rails-flo-0.0.5 vendor/assets/javascripts/batman/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitorRootDirectory.js
batman-rails-flo-0.0.4 vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitorRootDirectory.js
batman-rails-flo-0.0.3 vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitorRootDirectory.js
batman-rails-flo-0.0.2 vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitorRootDirectory.js
batman-rails-flo-0.0.1 vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitorRootDirectory.js