Add Custom Functionality to Existing Tasks
The public tasks exposed by the grunt-vb-build
package have
pre- and post- task hooks that you can redefine to add custom functionality.
For example, you can define hook tasks in Gruntfile.js
to add some custom application tests
before staging the application (vb-pre-stage
) and some
special application processing before the optimization step
(vb-pre-optimize
) by performing the following steps: