From e469c04e0784ad955e259a1e25ce3d274eb4f3e5 Mon Sep 17 00:00:00 2001 From: Percy Ma Date: Mon, 22 Aug 2022 16:47:27 +0800 Subject: [PATCH] feat: add shorthand `conc` (#358) Co-authored-by: Pascal Jufer --- README.md | 7 +++++-- bin/concurrently.ts | 2 +- package-lock.json | 1 + package.json | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 45a6ddb4..e6a94db8 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,9 @@ npm install concurrently --save ## Usage +> **Note** +> The `concurrently` command is now also available under the shorthand alias `conc`. + Remember to surround separate commands with quotes: ```bash @@ -149,8 +152,8 @@ General template. Example names: "main,browser,server" [string] --name-separator The character to split on. Example usage: - concurrently -n "styles|scripts|server" - --name-separator "|" [default: ","] + -n "styles|scripts|server" --name-separator "|" + [default: ","] -s, --success Which command(s) must exit with code 0 in order for concurrently exit with code 0 too. Options are: diff --git a/bin/concurrently.ts b/bin/concurrently.ts index 17c3da3b..23d0e4cd 100755 --- a/bin/concurrently.ts +++ b/bin/concurrently.ts @@ -43,7 +43,7 @@ const args = yargs(argsBeforeSep) 'name-separator': { describe: 'The character to split on. Example usage:\n' + - 'concurrently -n "styles|scripts|server" --name-separator "|"', + '-n "styles|scripts|server" --name-separator "|"', default: defaults.nameSeparator, }, success: { diff --git a/package-lock.json b/package-lock.json index 1d016063..03634809 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "yargs": "^17.3.1" }, "bin": { + "conc": "dist/bin/concurrently.js", "concurrently": "dist/bin/concurrently.js" }, "devDependencies": { diff --git a/package.json b/package.json index c7368f87..8c60ce2b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "types": "dist/src/index.d.ts", "type": "commonjs", "bin": { - "concurrently": "./dist/bin/concurrently.js" + "concurrently": "./dist/bin/concurrently.js", + "conc": "./dist/bin/concurrently.js" }, "engines": { "node": "^12.20.0 || ^14.13.0 || >=16.0.0"