grunt-task-hooker
Add pre-execution and post-execution "hooks" to grunt task, see issues/542.
Install
npm install grunt-task-hooker --save-dev
Usage
// Gruntfile.jsmodule { // Don't forget to pass "grunt" object into the function!!! grunt; grunt; grunt; // pre hook without description grunt; // pre hook multi task grunt; // post hook with description grunt; // hook multi-type task grunt; // hook replace task grunt; // grunt.hookTask(taskName, desc, task, where); // where: // undefined/false => pre // true => post // pre/post/replace // unhook all hooks grunt; // unhook multi hooks grunt; // unhook all pre hooks grunt; // unhook all post hooks grunt;};
License
The MIT License (MIT)