Override Existing Grunt Tasks
You can override an existing task by registering your own task under the same name.
To override an existing Grunt task:
-
Open
Gruntfile.js. -
Edit the file to redefine the task you want to override.
For example, if you want to do a custom deployment of the application runtime artifact, you can override the
vb-deploytask. To redefine the taskvb-deploy, your editedGruntfile.jsmight be similar to the following:module.exports = (grunt) => { require('load-grunt-tasks')(grunt); grunt.registerTask('vb-deploy', () => { // do my own deployment of built "build/processed.zip" runtime application archive }); };