Skip to content

v2.0.0

Compare
Choose a tag to compare
@mysticatea mysticatea released this 11 May 12:00
· 119 commits to master since this release
v2.0.0
3020572

Features:

  • New shorthand commands: run-s and run-p. Those are more simple commands than npm-run-all to cover most use cases.
    • run-s runs given npm-scripts sequencially. This is the shorthand of npm-run-all -s.
      e.g. run-s clean lint build:*
    • run-p runs given npm-scripts in parallel. This is the shorthand of npm-run-all -p.
      e.g. run-p "build:* -- --watch"

Breaking Changes:

  • --continue-on-error option has been changed the behavior. On 1.x, if the option was specified, npm-run-all command exited with 0. 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 and ccc ddd. Then, on 1.x, --print-label will effect to only ccc ddd. On the other hand, on 2.0.0, --print-label will effect to all of aaa, bbb, ccc, and ddd.
  • -S and -P shorthand options have been removed. Please use originating options: -c and -c -p.