grunt-queue
v1.0.1
Published
Queue up tasks for use with config.merge
Downloads
1
Maintainers
Readme
grunt-queue
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');
- See: https://www.npmjs.org/package/grunt-queue
- See: http://github.com/cobbdb/grunt-queue
- License: MIT