glob-watcher
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -24,2 +24,3 @@ var gaze = require('gaze'); | ||
watcher.on('ready', out.emit.bind(out, 'ready')); | ||
watcher.on('nomatch', out.emit.bind(out, 'nomatch')); | ||
@@ -26,0 +27,0 @@ out.end = function(){ |
{ | ||
"name": "glob-watcher", | ||
"description": "Watch globs", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"homepage": "http://github.com/wearefractal/glob-watcher", | ||
@@ -10,12 +10,12 @@ "repository": "git://github.com/wearefractal/glob-watcher.git", | ||
"dependencies": { | ||
"gaze": "~0.4.3" | ||
"gaze": "^0.5.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.17.0", | ||
"should": "~2.1.1", | ||
"mocha": "^1.17.0", | ||
"should": "^2.1.1", | ||
"mocha-lcov-reporter": "0.0.1", | ||
"coveralls": "~2.6.1", | ||
"istanbul": "~0.2.3", | ||
"rimraf": "~2.2.5", | ||
"jshint": "~2.4.1" | ||
"coveralls": "^2.6.1", | ||
"istanbul": "^0.2.3", | ||
"rimraf": "^2.2.5", | ||
"jshint": "^2.4.1" | ||
}, | ||
@@ -22,0 +22,0 @@ "scripts": { |
@@ -31,3 +31,3 @@ # glob-watcher [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url] | ||
var watcher = watch(["./*.js", "!./something.js"]); | ||
watcher.on('changed', function(evt) { | ||
watcher.on('change', function(evt) { | ||
// evt has what file changed and all that jazz | ||
@@ -34,0 +34,0 @@ }); |
@@ -33,2 +33,11 @@ var watch = require('../'); | ||
it('should emit nomatch via EE', function(done) { | ||
var fname = join(__dirname, "./doesnt_exist_lol/temp.coffee"); | ||
var watcher = watch(fname); | ||
watcher.on('nomatch', function() { | ||
done(); | ||
}); | ||
}); | ||
it('should return a valid file struct via callback', function(done) { | ||
@@ -35,0 +44,0 @@ var expectedName = join(__dirname, "./fixtures/stuff/test.coffee"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7041
105
+ Addedgaze@0.5.2(transitive)
- Removedgaze@0.4.3(transitive)
Updatedgaze@^0.5.0