grunt-queue

1.0.1 • Public • Published

grunt-queue NPM version

Queue up tasks for use with config.merge

$ npm install grunt-queue

Example Use

grunt-queue is designed for very large projects with many modules - each having their own Grunt config files.

// my-component.task.js
module.exports = function (grunt) {
    grunt.config.merge({
        queue: {
            'my-component': {
                tasks: [
                    'first:task',
                    'second:task'
                ]
            }
        }
    });
};

// main-gruntfile.js
grunt.registerTask('build', 'Build all components', [
    'queue'
]);

Task Configuration

The queue task only takes a single array of task names:

'queue': {
    'my-component': {
        tasks: [
            'first:task',
            'second:task'
        ]
    }
}

The task can be loaded like any other grunt contrib:

grunt.loadNpmTasks('grunt-queue');

Package Sidebar

Install

npm i grunt-queue

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • cobbdb