Socket
Socket
Sign inDemoInstall

grunt-parallel

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-parallel - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "grunt-parallel",
"description": "Run tasks or commands in child processes.",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/iammerrick/grunt-parallel",

@@ -6,0 +6,0 @@ "author": {

@@ -6,3 +6,3 @@ # grunt-parallel

## Getting Started
Install this grunt plugin next to your project's [Gruntfile.js gruntfile][getting_started] with: `npm install grunt-parallel`
Install this grunt plugin next to your project's [Gruntfile.js gruntfile][getting_started] with: `npm install grunt-parallel --save-dev`

@@ -40,3 +40,3 @@ Then add this line to your project's `Gruntfile.js` gruntfile:

One might target the task using `grunt parallel:assets`
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.

@@ -43,0 +43,0 @@ ## License

@@ -17,3 +17,6 @@ /*

if (error || code !== 0) {
grunt.log.error(result, error.message);
grunt.log.error(result.stderr || result.stdout);
if (error.message) {
grunt.log(error.message);
}
return deferred.reject();

@@ -30,21 +33,5 @@ }

// Please see the grunt documentation for more information regarding task and
// helper creation: https://github.com/gruntjs/grunt/blob/master/docs/toc.md
// ==========================================================================
// TASKS
// ==========================================================================
grunt.registerMultiTask('parallel', 'Run sub-tasks in parallel.', function() {
var done = this.async();
var tasks = [];
this.data.forEach(function(task) {
tasks.push(spawn(task));
});
Q.all(tasks).then(function() {
done();
});
Q.all(this.data.map(spawn)).then(this.async());
});
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc