Expand wildcards from command input
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
Thanks for the suggestion, I think this is a fair ask.