cowboy/grunt — pull request #199 by alextucker (2012-05-24 00:40:20+00:00)
Title: Events Module

I am added an events module to allow for inter-task communication and to facilitate better reporting of errors in some cases. Its simple, but it works.

The API is as such:

grunt.events.emit('event.name', msg);

grunt.events.on('event.name', function(msg) {} );

I have added a default event that is emitted whenever grunt.log.error is called as I believe it may be a useful event for tasks to listen to.

Note: Sorry for the initial pull request to the master branch :S