folke / ultra-runner

🏃⛰ Ultra fast monorepo script runner and build tool
https://www.npmjs.com/package/ultra-runner
Apache License 2.0
1.2k stars 32 forks source link

feat: allow multiple filters #244

Open axelhzf opened 3 years ago

axelhzf commented 3 years ago

My first approach was trying to use minimatch instead of globrex. Minimatch allow patterns like */+(lib1|lib2). The problem with this syntax is that it could conflict with the syntax to include the dependencies.

Finally, I decided to update the options parser to accept an array of filters.

Example:

ultra -r --filter "*/lib1" --filter "*/lib2" build

This feature was already requested on https://github.com/folke/ultra-runner/issues/182