Skip to content

cobbdb/grunt-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

Queue up tasks for use with config.merge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published