Possible Duplicate:
How do you watch multiple files, but only run task on changed file, in Grunt.js?
Inside a task, say a coffeescript compiler, how do I retrieve the exact files which got changed so that I can only selectively compile only those files rather than having to compile my entire code-base.