concurrently 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +1 -3
- package/README.md +2 -2
- package/appveyor.yml +1 -2
- package/package.json +1 -1
- package/src/main.js +17 -13
- package/.npmignore +0 -31
package/.travis.yml
CHANGED
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Like `npm run watch-js & npm run watch-less` but better.
|
|
|
11
11
|
|
|
12
12
|
**Features:**
|
|
13
13
|
|
|
14
|
-
* Cross platform
|
|
14
|
+
* Cross platform (including Windows)
|
|
15
15
|
* Output is easy to follow with prefixes
|
|
16
16
|
* With `--kill-others` switch, all commands are killed if one dies
|
|
17
17
|
* Spawns commands with [spawn-command](https://github.com/mmalecki/spawn-command)
|
|
@@ -32,7 +32,7 @@ npm install concurrently --save
|
|
|
32
32
|
|
|
33
33
|
## Usage
|
|
34
34
|
|
|
35
|
-
Remember to surround separate commands with quotes
|
|
35
|
+
Remember to surround separate commands with quotes:
|
|
36
36
|
```bash
|
|
37
37
|
concurrently "command1 arg" "command2 arg"
|
|
38
38
|
```
|
package/appveyor.yml
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
environment:
|
|
2
2
|
matrix:
|
|
3
|
-
- nodejs_version: '
|
|
3
|
+
- nodejs_version: '8'
|
|
4
4
|
- nodejs_version: '6'
|
|
5
5
|
- nodejs_version: '4'
|
|
6
6
|
install:
|
|
7
7
|
- ps: Install-Product node $env:nodejs_version
|
|
8
8
|
- set CI=true
|
|
9
9
|
- npm -g install npm@latest
|
|
10
|
-
- npm install -g mocha
|
|
11
10
|
- set PATH=%APPDATA%\npm;%PATH%
|
|
12
11
|
- npm install
|
|
13
12
|
build: off
|
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -469,7 +469,7 @@ function log(prefix, prefixColor, text) {
|
|
|
469
469
|
function logEvent(prefix, prefixColor, text) {
|
|
470
470
|
if (config.raw) return;
|
|
471
471
|
|
|
472
|
-
logWithPrefix(prefix, prefixColor, text, chalk.gray.dim);
|
|
472
|
+
logWithPrefix(prefix, prefixColor, text + '\n', chalk.gray.dim);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
function logError(prefix, prefixColor, text) {
|
|
@@ -478,31 +478,35 @@ function logError(prefix, prefixColor, text) {
|
|
|
478
478
|
logWithPrefix(prefix, prefixColor, text, chalk.red.bold);
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
+
var lastChar;
|
|
482
|
+
|
|
481
483
|
function logWithPrefix(prefix, prefixColor, text, color) {
|
|
482
|
-
var lastChar = text[text.length - 1];
|
|
483
|
-
if (config.raw) {
|
|
484
|
-
if (lastChar !== '\n') {
|
|
485
|
-
text += '\n';
|
|
486
|
-
}
|
|
487
484
|
|
|
485
|
+
if (config.raw) {
|
|
488
486
|
process.stdout.write(text);
|
|
489
487
|
return;
|
|
490
488
|
}
|
|
491
489
|
|
|
492
|
-
|
|
493
|
-
// Remove extra newline from the end to prevent extra newlines in input
|
|
494
|
-
text = text.slice(0, text.length - 1);
|
|
495
|
-
}
|
|
490
|
+
text = text.replace(/\u2026/g,'...'); // Ellipsis
|
|
496
491
|
|
|
497
492
|
var lines = text.split('\n');
|
|
498
493
|
// Do not bgColor trailing space
|
|
499
494
|
var coloredPrefix = colorText(prefix.replace(/ $/, ''), prefixColor) + ' ';
|
|
500
|
-
var paddedLines = _.map(lines, function(line,
|
|
495
|
+
var paddedLines = _.map(lines, function(line, index) {
|
|
501
496
|
var coloredLine = color ? colorText(line, color) : line;
|
|
502
|
-
|
|
497
|
+
if (index !== 0 && index !== (lines.length - 1)) {
|
|
498
|
+
coloredLine = coloredPrefix + coloredLine;
|
|
499
|
+
}
|
|
500
|
+
return coloredLine;
|
|
503
501
|
});
|
|
504
502
|
|
|
505
|
-
|
|
503
|
+
if (!lastChar || lastChar == '\n' ){
|
|
504
|
+
process.stdout.write(coloredPrefix);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
lastChar = text[text.length - 1];
|
|
508
|
+
|
|
509
|
+
process.stdout.write(paddedLines.join('\n'));
|
|
506
510
|
}
|
|
507
511
|
|
|
508
512
|
main();
|
package/.npmignore
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Logs
|
|
2
|
-
logs
|
|
3
|
-
*.log
|
|
4
|
-
|
|
5
|
-
# Runtime data
|
|
6
|
-
pids
|
|
7
|
-
*.pid
|
|
8
|
-
*.seed
|
|
9
|
-
|
|
10
|
-
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
11
|
-
lib-cov
|
|
12
|
-
|
|
13
|
-
# Coverage directory used by tools like istanbul
|
|
14
|
-
coverage
|
|
15
|
-
|
|
16
|
-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
17
|
-
.grunt
|
|
18
|
-
|
|
19
|
-
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
|
20
|
-
build/Release
|
|
21
|
-
|
|
22
|
-
# Dependency directory
|
|
23
|
-
# Deployed apps should consider commenting this line out:
|
|
24
|
-
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
|
|
25
|
-
node_modules
|
|
26
|
-
|
|
27
|
-
# OS X
|
|
28
|
-
.DS_Store
|
|
29
|
-
|
|
30
|
-
# Vagrant directory
|
|
31
|
-
.vagrant
|