open-cli-tools / concurrently

Run commands concurrently. Like `npm run watch-js & npm run watch-less` but better.
https://www.npmjs.com/package/concurrently
MIT License
6.98k stars 227 forks source link

Parallel-serial-parallel flow orchestration? #476

Open akx opened 3 months ago

akx commented 3 months ago

419 touches on being able to run two commands within a single parallel step in series, but is orchestrating something like the npm-run-all invocation

npm-run-all --parallel clean:* --serial build:fa --parallel build:css build:js

possible?

I.e.

gustavohenke commented 3 months ago

That's not possible today with a single concurrently run, but it's an interesting idea. The --parallel and --serial flag names SGTM too, if someone wants to look into this.

How do you see flags working in such a scenario? Should they apply to the next list of commands found, e.g.

conc -k --parallel "echo foo" "sleep 1 && echo bar" --prefix test --serial "echo baz"

should in this case -k apply only to the first set of commands, and --prefix test to the second set of commands, maybe?