diff --git a/README.md b/README.md index b80d787..1726c06 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ A CLI tool to run multiple npm-scripts in parallel or sequential. - **Simplify.** The official `npm run-script` command cannot run multiple scripts, so if we want to run multiple scripts, it's redundant a bit. Let's shorten it by glob-like patterns.
Before: `npm run clean && npm run build:css && npm run build:js && npm run build:html`
- After: `npm-run-all clean build:*` + After: `npm-run-all clean 'build:*'` - **Cross platform.** We sometimes use `&` to run multiple command in parallel, but `cmd.exe` (`npm run-script` uses it by default) does not support the `&`. Half of Node.js users are using it on Windows, so the use of `&` might block contributions. `npm-run-all --parallel` works well on Windows as well. ## 💿 Installation diff --git a/bin/npm-run-all/help.js b/bin/npm-run-all/help.js index 0300bfe..81b30c2 100644 --- a/bin/npm-run-all/help.js +++ b/bin/npm-run-all/help.js @@ -58,8 +58,8 @@ Options: --silent - - - - - - - - Set 'silent' to the log level of npm. Examples: - $ npm-run-all --serial clean lint build:** - $ npm-run-all --parallel watch:** + $ npm-run-all --serial clean lint 'build:**' + $ npm-run-all --parallel 'watch:**' $ npm-run-all clean lint --parallel "build:** -- --watch" $ npm-run-all -l -p start-server start-browser start-electron diff --git a/bin/run-p/help.js b/bin/run-p/help.js index 873568f..348f076 100644 --- a/bin/run-p/help.js +++ b/bin/run-p/help.js @@ -53,7 +53,7 @@ Options: For example, '-clns' equals to '-c -l -n -s'. Examples: - $ run-p watch:** + $ run-p 'watch:**' $ run-p --print-label "build:** -- --watch" $ run-p -sl "build:** -- --watch" $ run-p start-server start-browser start-electron diff --git a/bin/run-s/help.js b/bin/run-s/help.js index 6dfa6a1..87985b5 100644 --- a/bin/run-s/help.js +++ b/bin/run-s/help.js @@ -47,10 +47,10 @@ Options: For example, '-clns' equals to '-c -l -n -s'. Examples: - $ run-s build:** - $ run-s lint clean build:** - $ run-s --silent --print-name lint clean build:** - $ run-s -sn lint clean build:** + $ run-s 'build:**' + $ run-s lint clean 'build:**' + $ run-s --silent --print-name lint clean 'build:**' + $ run-s -sn lint clean 'build:**' See Also: https://github.com/mysticatea/npm-run-all#readme diff --git a/docs/npm-run-all.md b/docs/npm-run-all.md index c6f1aaa..446e647 100644 --- a/docs/npm-run-all.md +++ b/docs/npm-run-all.md @@ -44,8 +44,8 @@ Options: --silent - - - - - - - - Set 'silent' to the log level of npm. Examples: - $ npm-run-all --serial clean lint build:** - $ npm-run-all --parallel watch:** + $ npm-run-all --serial clean lint 'build:**' + $ npm-run-all --parallel 'watch:**' $ npm-run-all clean lint --parallel "build:** -- --watch" $ npm-run-all -l -p start-server start-browser start-electron ``` @@ -121,14 +121,14 @@ We can use [glob]-like patterns to specify npm-scripts. The difference is one -- the separator is `:` instead of `/`. ``` -$ npm-run-all --parallel watch:* +$ npm-run-all --parallel 'watch:*' ``` In this case, runs sub scripts of `watch`. For example: `watch:html`, `watch:js`. But, doesn't run sub-sub scripts. For example: `watch:js:index`. ``` -$ npm-run-all --parallel watch:** +$ npm-run-all --parallel 'watch:**' ``` If we use a globstar `**`, runs both sub scripts and sub-sub scripts. diff --git a/docs/run-p.md b/docs/run-p.md index ce9d309..14a256a 100644 --- a/docs/run-p.md +++ b/docs/run-p.md @@ -42,7 +42,7 @@ Options: For example, '-clns' equals to '-c -l -n -s'. Examples: - $ run-p watch:** + $ run-p 'watch:**' $ run-p --print-label "build:** -- --watch" $ run-p -l "build:** -- --watch" $ run-p start-server start-browser start-electron @@ -85,14 +85,14 @@ We can use [glob]-like patterns to specify npm-scripts. The difference is one -- the separator is `:` instead of `/`. ``` -$ run-p watch:* +$ run-p 'watch:*' ``` In this case, runs sub scripts of `watch`. For example: `watch:html`, `watch:js`. But, doesn't run sub-sub scripts. For example: `watch:js:index`. ``` -$ run-p watch:** +$ run-p 'watch:**' ``` If we use a globstar `**`, runs both sub scripts and sub-sub scripts. diff --git a/docs/run-s.md b/docs/run-s.md index cf62681..77a0ca1 100644 --- a/docs/run-s.md +++ b/docs/run-s.md @@ -36,10 +36,10 @@ Options: For example, '-clns' equals to '-c -l -n -s'. Examples: - $ run-s build:** - $ run-s lint clean build:** - $ run-s --silent --print-name lint clean build:** - $ run-s -sn lint clean build:** + $ run-s 'build:**' + $ run-s lint clean 'build:**' + $ run-s --silent --print-name lint clean 'build:**' + $ run-s -sn lint clean 'build:**' ``` ### npm-scripts @@ -76,14 +76,14 @@ We can use [glob]-like patterns to specify npm-scripts. The difference is one -- the separator is `:` instead of `/`. ``` -$ run-s build:* +$ run-s 'build:*' ``` In this case, runs sub scripts of `build`. For example: `build:html`, `build:js`. But, doesn't run sub-sub scripts. For example: `build:js:index`. ``` -$ run-s build:** +$ run-s 'build:**' ``` If we use a globstar `**`, runs both sub scripts and sub-sub scripts.