Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Suggestion with wildcards #453

Open
sdwvit opened this issue Dec 6, 2023 · 1 comment
Open

Feature Suggestion with wildcards #453

sdwvit opened this issue Dec 6, 2023 · 1 comment

Comments

@sdwvit
Copy link

sdwvit commented Dec 6, 2023

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

@gustavohenke
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants