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

Feature Suggestion with wildcards #453

Open sdwvit opened 9 months ago

sdwvit commented 9 months ago

First of all, I love wildcard feature. It reduced my package.json size 3x.

Can we get the same behaviour to match all files, not only npm scripts?

Consider following project structure:

I would like to be able to run a command conc webpack --config webpack.config.*(!base).js

The result should be the same as with following bash command: conc 'webpack --config webpack.config.prod.js' 'webpack --config webpack.config.dev.js' 'webpack --config webpack.config.staging.js' 'webpack --config webpack.config.qa.js' 'webpack --config webpack.config.etc.js'

or for arbitrary number of configs:

find webpack.config.*.js | grep -v config.base | xargs node -e 'console.log(process.argv.slice(1).map(_ => `"webpack --config ${_}"`).join(` `))' | xargs conc

gustavohenke commented 9 months ago

Thanks for the suggestion, I think this is a fair ask.