shama/gaze — pull request #20 by jamie-stackhouse (2013-01-31 03:41:22+00:00)
Title: Fix exclusions

After a minor change to grunt-contrib-watch, this would allow passing exclusions through via that task, which in turn gets added events to pop on the right files, not on every file in a directory that initially was added. Test case is included in this pull request which showcases a textfile being included on a rule that was **/*.js. I'll remove the other pull-request that only contained the test.

I ran the local npm test and had 42 passes on Win7, and I also tested in manually using my project and I was getting added events working as expected etc. The code will need to be reviewed and cleaned up. I'm not sure if it's entirely ready to go into Gaze, but it does what it needs to now, so I figure I might as well let you review / suggest changes. Tomorrow I'll mark up the commit using Github to mark the ideas behind each modification in the hope of cleaning it up some. I'll also remove the console.logs.