concurrently 8.2.1 → 8.2.2
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/README.md
CHANGED
|
@@ -335,7 +335,7 @@ For more details, visit https://github.com/open-cli-tools/concurrently
|
|
|
335
335
|
- `prefix`: the prefix type to use when logging processes output.
|
|
336
336
|
Possible values: `index`, `pid`, `time`, `command`, `name`, `none`, or a template (eg `[{time} process: {pid}]`).
|
|
337
337
|
Default: the name of the process, or its index if no name is set.
|
|
338
|
-
- `prefixColors`: a list of colors as supported by [chalk](https://www.npmjs.com/package/chalk)
|
|
338
|
+
- `prefixColors`: a list of colors or a string as supported by [chalk](https://www.npmjs.com/package/chalk) and additional style `auto` for an automatically picked color.
|
|
339
339
|
If concurrently would run more commands than there are colors, the last color is repeated, unless if the last color value is `auto` which means following colors are automatically picked to vary.
|
|
340
340
|
Prefix colors specified per-command take precedence over this list.
|
|
341
341
|
- `prefixLength`: how many characters to show when prefixing with `command`. Default: `10`
|
|
@@ -36,9 +36,22 @@ export type ConcurrentlyOptions = {
|
|
|
36
36
|
*/
|
|
37
37
|
group?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* A comma-separated list of chalk colors or a string for available styles listed below to use on prefixes.
|
|
40
|
+
* If there are more commands than colors, the last color will be repeated.
|
|
41
|
+
*
|
|
42
|
+
* Available modifiers:
|
|
43
|
+
* - `reset`, `bold`, `dim`, `italic`, `underline`, `inverse`, `hidden`, `strikethrough`
|
|
44
|
+
*
|
|
45
|
+
* Available colors:
|
|
46
|
+
* - `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`, `gray`,
|
|
47
|
+
* any hex values for colors (e.g. `#23de43`) or `auto` for an automatically picked color
|
|
48
|
+
*
|
|
49
|
+
* Available background colors:
|
|
50
|
+
* - `bgBlack`, `bgRed`, `bgGreen`, `bgYellow`, `bgBlue`, `bgMagenta`, `bgCyan`, `bgWhite`
|
|
51
|
+
*
|
|
52
|
+
* @see {@link https://www.npmjs.com/package/chalk} for more information.
|
|
40
53
|
*/
|
|
41
|
-
prefixColors?: string[];
|
|
54
|
+
prefixColors?: string | string[];
|
|
42
55
|
/**
|
|
43
56
|
* Maximum number of commands to run at once.
|
|
44
57
|
* Exact number or a percent of CPUs available (for example "50%").
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
export declare class PrefixColorSelector {
|
|
3
3
|
private colorGenerator;
|
|
4
|
-
constructor(customColors?: string[]);
|
|
4
|
+
constructor(customColors?: string | string[]);
|
|
5
5
|
/** A list of colors that are readable in a terminal. */
|
|
6
6
|
static get ACCEPTABLE_CONSOLE_COLORS(): ("stderr" | keyof chalk.Chalk | "supportsColor" | "Level" | "Color" | "ForegroundColor" | "BackgroundColor" | "Modifiers")[];
|
|
7
7
|
/**
|
|
@@ -53,7 +53,8 @@ function* createColorGenerator(customColors) {
|
|
|
53
53
|
}
|
|
54
54
|
class PrefixColorSelector {
|
|
55
55
|
constructor(customColors = []) {
|
|
56
|
-
|
|
56
|
+
const normalizedColors = typeof customColors === 'string' ? [customColors] : customColors;
|
|
57
|
+
this.colorGenerator = createColorGenerator(normalizedColors);
|
|
57
58
|
}
|
|
58
59
|
/** A list of colors that are readable in a terminal. */
|
|
59
60
|
static get ACCEPTABLE_CONSOLE_COLORS() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "concurrently",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"description": "Run commands concurrently",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -49,33 +49,33 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@hirez_io/observer-spy": "^2.2.0",
|
|
52
|
-
"@swc/core": "^1.3.
|
|
52
|
+
"@swc/core": "^1.3.93",
|
|
53
53
|
"@swc/jest": "^0.2.29",
|
|
54
|
-
"@types/jest": "^29.5.
|
|
55
|
-
"@types/lodash": "^4.14.
|
|
56
|
-
"@types/node": "^14.18.
|
|
57
|
-
"@types/shell-quote": "^1.7.
|
|
58
|
-
"@types/supports-color": "^8.1.
|
|
59
|
-
"@types/yargs": "^17.0.
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
61
|
-
"@typescript-eslint/parser": "^6.
|
|
54
|
+
"@types/jest": "^29.5.6",
|
|
55
|
+
"@types/lodash": "^4.14.200",
|
|
56
|
+
"@types/node": "^14.18.62",
|
|
57
|
+
"@types/shell-quote": "^1.7.3",
|
|
58
|
+
"@types/supports-color": "^8.1.2",
|
|
59
|
+
"@types/yargs": "^17.0.29",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
61
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
62
62
|
"coveralls-next": "^4.2.0",
|
|
63
63
|
"ctrlc-wrapper": "^0.0.4",
|
|
64
|
-
"esbuild": "~0.19.
|
|
65
|
-
"eslint": "^8.
|
|
64
|
+
"esbuild": "~0.19.5",
|
|
65
|
+
"eslint": "^8.51.0",
|
|
66
66
|
"eslint-config-prettier": "^9.0.0",
|
|
67
67
|
"eslint-plugin-import": "^2.28.1",
|
|
68
|
-
"eslint-plugin-jest": "^27.2
|
|
69
|
-
"eslint-plugin-prettier": "^5.0.
|
|
68
|
+
"eslint-plugin-jest": "^27.4.2",
|
|
69
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
70
70
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
71
71
|
"husky": "^8.0.3",
|
|
72
|
-
"jest": "^29.
|
|
72
|
+
"jest": "^29.7.0",
|
|
73
73
|
"jest-create-mock-instance": "^2.0.0",
|
|
74
74
|
"lint-staged": "^13.3.0",
|
|
75
|
-
"prettier": "^3.0.
|
|
75
|
+
"prettier": "^3.0.3",
|
|
76
76
|
"safe-publish-latest": "^2.0.0",
|
|
77
77
|
"string-argv": "^0.3.2",
|
|
78
|
-
"typescript": "~5.
|
|
78
|
+
"typescript": "~5.2.2"
|
|
79
79
|
},
|
|
80
80
|
"files": [
|
|
81
81
|
"dist",
|