grunt-notify icon indicating copy to clipboard operation
grunt-notify copied to clipboard

Docs about hooks

Open OliverJAsh opened this issue 11 years ago • 4 comments

It would be nice to provide a brief summary of how grunt-notify uses the two hooks it is provided with: fail and jshint. How are developers to know how to make grunt-notify work with their own tasks?

OliverJAsh avatar Jul 12 '13 19:07 OliverJAsh

Great idea.

Do you have an example you would like it to work with?

dylang avatar Jul 12 '13 20:07 dylang

I'm trying to fork the JSHint hook to create one for Karma. Trying to write some regular expression to pass the information here:

I figured it out in the end by looking at the code, but some docs would be good. If I can't do this I might need some of your help :wink:

OliverJAsh avatar Jul 12 '13 20:07 OliverJAsh

Great idea, I'd like that too, I'm also using Karma.

dylang avatar Jul 12 '13 20:07 dylang

The implementation of the hook for JSHint is kinda hacky because Grunt doesn't have hooks for the output of tasks. If you have any idea how to get that this would be a lot easier.

dylang avatar Jul 12 '13 20:07 dylang