concurrently
Advanced tools
Comparing version 0.0.5 to 0.1.0
{ | ||
"name": "concurrently", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "Run commands concurrently", | ||
@@ -31,2 +31,3 @@ "main": "src/main.js", | ||
"commander": "2.6.0", | ||
"cross-spawn": "^0.2.9", | ||
"lodash": "3.1.0", | ||
@@ -33,0 +34,0 @@ "rx": "2.3.24" |
# Concurrently | ||
**Version: 0.0.5** ([*previous stable*](https://github.com/kimmobrunfeldt/concurrently/tree/0.0.4)) | ||
**Version: 0.1.0** ([*previous stable*](https://github.com/kimmobrunfeldt/concurrently/tree/0.0.5)) | ||
@@ -10,2 +10,10 @@ Run multiple commands concurrently. | ||
When running watch or serve tasks, I'd recommend to use `--kill-others` option: | ||
```bash | ||
concurrent --kill-others "npm run watch-js" "npm run watch-less" | ||
``` | ||
That way, if for some reason e.g. your `watch-less` died, you would notice it easier. | ||
## Install | ||
@@ -36,8 +44,15 @@ | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
-k, --kill-others kill other processes if one exits or dies | ||
--no-color disable colors from logging | ||
-p, --prefix [prefix] prefix used in logging for each process. Possible values: pid, none, command | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
-k, --kill-others kill other processes if one exits or dies | ||
--no-color disable colors from logging | ||
-p, --prefix <prefix> prefix used in logging for each process. | ||
Possible values: index, pid, command, none. Default: index | ||
-r, --raw output only raw output of processes, disables prettifying and colors | ||
-l, --prefix-length <length> limit how many characters of the command is displayed in prefix. | ||
The option can be used to shorten long commands. | ||
Works only if prefix is set to "command". Default: 10 | ||
Examples: | ||
@@ -49,2 +64,10 @@ | ||
- Output nothing more than stdout+stderr of child processes | ||
$ concurrent --raw "npm run watch-less" "npm run watch-js" | ||
- Normal output but without colors e.g. when logging to file | ||
$ concurrent --no-color "grunt watch" "http-server" > log | ||
For more details, visit https://github.com/kimmobrunfeldt/concurrently | ||
@@ -58,6 +81,9 @@ ``` | ||
From [Node child_process documentation](http://nodejs.org/api/child_process.html#child_process_event_exit), `exit` event: | ||
``` | ||
This event is emitted after the child process ends. If the process terminated normally, code is the final exit code of the process, otherwise null. If the process terminated due to receipt of a signal, signal is the string name of the signal, otherwise null. | ||
``` | ||
> This event is emitted after the child process ends. If the process | ||
> terminated normally, code is the final exit code of the process, | ||
> otherwise null. If the process terminated due to receipt of a signal, | ||
> signal is the string name of the signal, otherwise null. | ||
So *null* means the process didn't terminate normally. This will make **concurrent** | ||
@@ -64,0 +90,0 @@ to return non-zero exit code too. |
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
var chalk = require('chalk'); | ||
var childProcess = Promise.promisifyAll(require('child_process')); | ||
var spawn = Promise.promisifyAll(require('cross-spawn')); | ||
require('./lodash-mixins'); | ||
@@ -110,3 +110,3 @@ | ||
try { | ||
child = childProcess.spawn(_.head(parts), _.tail(parts)); | ||
child = spawn(_.head(parts), _.tail(parts)); | ||
} catch (e) { | ||
@@ -113,0 +113,0 @@ logError('', 'Error occured when executing command: ' + cmd); |
Sorry, the diff of this file is not supported yet
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
123403
100
0
6
+ Addedcross-spawn@^0.2.9
+ Addedcross-spawn@0.2.9(transitive)
+ Addedlru-cache@2.7.3(transitive)