JSPM

  • Created
  • Published
  • Downloads 73498
  • Score
    100M100P100Q146993F
  • License MIT

executes commands on packages in parallel, but is aware of the dependencies between them

Package Exports

  • wsrun

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wsrun) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Workspace command runner

Run commands in a yarn workspace, like a boss.

Usage:

wsrun cmd [<package>] [options]

Options:
  Mode (choose one):
    --parallel                      fully parallel mode (default)
    --stages                        run in stages; start with packages that have no deps.
    --serial                        same as "stages", but with no parallelism at the stage level

  Individual package opts:
    -r, --recursive                 execute the same cmd on all of its dependencies, too

  Misc:
    --fast-exit                     if at least one command exits with code > 0, abort
    --collect-output                collect per-package stdout, print everything at the end, grouped
    --no-prefix                     don't prefix output with "package_name |"
    --bin=yarn                      which program should we pass the cmd to
    --done-criteria=regex           consider the process "done" when output line matches regex
    --exclude pkgname               skip actually running the command for that package

Examples:

yarn wsrun watch will run yarn watch on every individual package, in parallel.

yarn wsrun build --stages will build all packages, in stages, starting from those that don't depend on other packages.

yarn wsrun watch planc -r will watch planc and all of its dependencies.

yarn wsrun watch planc -r --exclude planc will watch all of planc's dependencies but not planc

yarn wsrun build h4zip -r --stages will build all the deps. in order, then build h4zip

yarn wsrun watch planc -r --stages --done-criteria='Compilation complete' will watch planc deps, in order, continuing when command outputs "Compilation complete"

yarn wsrun clean will remove "build" folders in every package.

yarn wsrun test will test every package.