Releases: mysticatea/npm-run-all
Releases · mysticatea/npm-run-all
v3.1.0
Features
-
09507bc added supporting
$npm_config_xxx
(fixes #60)npm run-script
command has supported--name=value
style options. This style options make environment variables$npm_config_name
(%npm_config_name%
on Windows), then we can use those environment variables in npm-scripts. Nownpm-run-all
also got supports of the--name=value
style options and$npm_config_name
variables.
For examples:{ "scripts": { "echo": "echo $npm_config_foo" } }
$ npm run echo --foo=777 777 $ npm-run-all echo --foo=888 888
v3.0.0
Breaking Changes (and new features):
- 6d46ed9
- If arguments are omitted, it came to remove argument placeholders (e.g.,
run-s "foo {1}"
is evaluated torun-s "foo "
). Until v2.3.0, the{1}
is remained. - Argument placeholders came to support default values
(e.g.,run-s "start -- --port={1:=3000}"
). This notation is similar to Shell Parameters. Currently,npm-run-all
is supporting{parameter:-word}
and{parameter:=word}
.
- If arguments are omitted, it came to remove argument placeholders (e.g.,
v2.3.0
v2.2.2
Upgrade Dependencies:
v2.2.1
Upgrade dependencies:
v2.2.0
v2.1.2
Upgrade:
- Upgraded cross-spawn package to
4.0.0
.
v2.1.1
v2.1.0
Features:
-
Node API came to give results of child processes. See also: https://github.com/mysticatea/npm-run-all/blob/master/docs/node-api.md
runAll(["clean", "lint", "build"]) .then(results => { console.log(`${results[0].name}: ${results[0].code}`); // clean: 0 console.log(`${results[1].name}: ${results[1].code}`); // lint: 0 console.log(`${results[2].name}: ${results[2].code}`); // build: 0 });
v2.0.0
Features:
- New shorthand commands: run-s and run-p. Those are more simple commands than
npm-run-all
to cover most use cases.
Breaking Changes:
--continue-on-error
option has been changed the behavior. On 1.x, if the option was specified,npm-run-all
command exited with0
. But on 2.0.0, even if the option was specified,npm-run-all
command will exit with a non-zero code if a npm-script exited with a non-zero code.--print-label
,--print-name
, and--continue-on-error
options have been changed the behavior. On 1.x, the effect of those options was applied to only one script group. But on 2.0.0, the effect of those options will be applied to whole a command.
For example,npm-run-all -s aaa bbb -p ccc ddd --print-label
, in this case the command has 2 script group,aaa bbb
andccc ddd
. Then, on 1.x,--print-label
will effect to onlyccc ddd
. On the other hand, on 2.0.0,--print-label
will effect to all ofaaa
,bbb
,ccc
, andddd
.-S
and-P
shorthand options have been removed. Please use originating options:-c
and-c -p
.