concurrently icon indicating copy to clipboard operation
concurrently copied to clipboard

Expand wildcards from command input

Open sdwvit opened this issue 2 years ago • 1 comments

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:

  • src/
  • other_files
  • package.json
  • webpack.config.base.js
  • webpack.config.prod.js
  • webpack.config.dev.js
  • webpack.config.staging.js
  • webpack.config.qa.js
  • webpack.config.etc.js

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

sdwvit avatar Dec 06 '23 19:12 sdwvit

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

gustavohenke avatar Dec 07 '23 08:12 gustavohenke