concurrently
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "concurrently", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Run commands concurrently", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -5,3 +5,3 @@ # Concurrently | ||
**Version: 2.1.0** ([*previous stable*](https://github.com/kimmobrunfeldt/concurrently/tree/2.0.0)) | ||
**Version: 2.2.0** ([*previous stable*](https://github.com/kimmobrunfeldt/concurrently/tree/2.1.0)) | ||
@@ -49,4 +49,5 @@ Run multiple commands concurrently. | ||
--no-color disable colors from logging | ||
--names names different processes, i.e --name "web,api,hot-server" to be used in the prefix switch | ||
-p, --prefix <prefix> prefix used in logging for each process. | ||
Possible values: index, pid, time, command, none or a template. Default: index. Example template "{time}-{pid}" | ||
Possible values: index, pid, time, command, name, none or a template. Default: index. Example template "{time}-{pid}" | ||
@@ -53,0 +54,0 @@ -tf, --timestamp-format <format> specify the timestamp in moment format. Default: YYYY-MM-DD HH:mm:ss.SSS |
@@ -11,2 +11,3 @@ #!/usr/bin/env node | ||
var spawn = Promise.promisifyAll(require('cross-spawn')); | ||
var isWindows = /^win/.test(process.platform); | ||
@@ -213,2 +214,5 @@ var config = { | ||
var spawnOpts = config.raw ? {stdio: 'inherit'} : {}; | ||
if (isWindows) { | ||
spawnOpts.detached = false; | ||
} | ||
var child; | ||
@@ -311,3 +315,7 @@ try { | ||
_.each(aliveChildren, function(child) { | ||
child.kill(); | ||
if (isWindows) { | ||
spawn('taskkill', ["/pid", child.pid, '/f', '/t']); | ||
} else { | ||
child.kill('SIGINT'); | ||
} | ||
}); | ||
@@ -314,0 +322,0 @@ }); |
@@ -44,3 +44,3 @@ // Test basic usage of cli | ||
it('at least one unsuccessful commands should exit non-zero', function(done) { | ||
run('node ./src/main.js "echo" "exit 1" "echo"', {pipe: DEBUG_TESTS}) | ||
run('node ./src/main.js "echo" "return 1" "echo"', {pipe: DEBUG_TESTS}) | ||
.then(function(exitCode) { | ||
@@ -47,0 +47,0 @@ assert.notStrictEqual(exitCode, 0); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134056
710
123