npm-watch icon indicating copy to clipboard operation
npm-watch copied to clipboard

Couldn't find a way to run subset of scripts (but still more than one script)

Open wontheone1 opened this issue 3 years ago • 2 comments

First of all, thank you for maintaining useful open source project.

I am in a monorepo situation(fullstack in one repo) and using alt-JS(Rescript) so I should watch compile and also hot reloading.

To make long story short,

"watch:" {
  "a": "glob",
  "b": "glob",
  "c": "glob",
  "d": "glob"
}

I wanna watch a & b at a same time, and then c & d separately. I couldn't find a way to do this with this tool. Is it correct? If yes, would you please consider adding this feature?

wontheone1 avatar Mar 20 '21 16:03 wontheone1

Another thing it could be nice to have is the option to run scripts sequentially. like running "b" only after "a" etc... (in the example above)

wontheone1 avatar Mar 21 '21 03:03 wontheone1

This is something I will consider to a future release, but I cannot commit to a specific timeframe right now. I would be happy to review a PR though, if you up to making that contribution.

Another thing it could be nice to have is the option to run scripts sequentially. like running "b" only after "a" etc... (in the example above)

I am not sure how feasible this is, but either way, if it is still something you are interested in, please open a dedicated issue for it.

M-Zuber avatar Jun 13 '21 18:06 M-Zuber