grunt-parallelize
Version:
Parallelize your task.
46 lines (41 loc) • 827 B
JavaScript
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
echofilesrc: {
test_src: {
src: '../fixtures/*.txt',
},
test_filesArray: {
files: [
{src: ['../fixtures/*.txt']},
]
}
},
echofilesrc2: {
test_src: {
src: '../fixtures/*.txt',
},
test_filesArray: {
files: [
{src: ['../fixtures/*.txt']},
]
}
},
parallelize: {
echofilesrc: {
test_src: 2,
test_filesArray: 2
},
echofilesrc2: {
test_src: 2,
test_filesArray: 2
}
}
});
// Load this tasks.
grunt.loadTasks('../../tasks');
// Load tasks for testing.
grunt.loadTasks('../tasks');
// Set defaut task.
grunt.registerTask('default', ['parallelize']);
};