Skip to content

Instantly share code, notes, and snippets.

@floatdrop
Created June 24, 2014 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floatdrop/0af82264539b785fa9c3 to your computer and use it in GitHub Desktop.
Save floatdrop/0af82264539b785fa9c3 to your computer and use it in GitHub Desktop.
Gaze test
// Do `npm i gaze` before running this
var gaze = require('gaze');
// Watch all .js files/dirs in process.cwd()
gaze('src/images/**/*', function(err, watcher) {
this.on('all', function(event, filepath) {
console.log(filepath + ' was ' + event);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment