cowboy/grunt — pull request #198 by alextucker (2012-05-23 12:33:14+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.