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:

  1. Open Gruntfile.js.
  2. 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-deploy task. To redefine the task vb-deploy, your edited Gruntfile.js might 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
        });
    };