bcomnes / npm-run-all2

A CLI tool to run multiple npm-scripts in parallel or sequential. (Maintenance fork)
MIT License
250 stars 12 forks source link

Add support for `--workspaces` to run on all npm workspaces #60

Open voxpelli opened 3 years ago

voxpelli commented 3 years ago

I'm thinking it would be neat to be able to do:

run-p --workspaces check:*

Related issues:

Interesting modules:

bcomnes commented 3 years ago

Makes sense now that npm supports workspaces.

voxpelli commented 1 year ago

When --max-parallel is set, should it try to spread out the executions across the workspaces or just assemble a long list of all tasks to be run and execute them from top to bottom?

The latter would be more a 1:1 between run-s --workspaces and run-p --workspaces but I kind of like the idea of balancing it across the different workspaces. Probably overengineering to do though, right?

bcomnes commented 1 year ago

Probably do what ever is simplest to implement and maintain.

voxpelli commented 1 year ago

I'm going to give it a stab now

bcomnes commented 1 year ago

If you do take a stab at this, feel free to refactor ancient promise callbacks to async await etc. Whatever cleans it up.

voxpelli commented 6 months ago

Created a helper for reading all packages from a workspace, with similar filtering as npm itself has: https://github.com/voxpelli/read-workspaces

Started using it in list-installed and as such also in installed-check / installed-check-core now