/grunt-parallel

Run commands and tasks as child processes!

Primary LanguageJavaScriptMIT LicenseMIT

grunt-parallel

Run commands and tasks in parallel.

Getting Started

Install this grunt plugin next to your project's Gruntfile.js gruntfile with: npm install grunt-parallel

Then add this line to your project's Gruntfile.js gruntfile:

grunt.loadNpmTasks('grunt-parallel');

Documentation

Settings

grunt.initConfig({
  parallel: {
    assets: [{
      grunt: true,
      args: ['requirejs']
    }, {
      grunt: true,
      args: ['compass']
    },{
      command: 'some-custom-shell-script.sh'
    }]
  }
});

One might target the task using grunt parallel:assets. This would run compass, requirejs, and a custom shell script at the same time, each logging to your console when they are done.

License

Copyright (c) 2013 Merrick Christensen Licensed under the MIT license.