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

How do you exclude with patterns? #305

Closed
NullVoxPopuli opened this issue Jan 20, 2022 · 3 comments · Fixed by #306
Closed

How do you exclude with patterns? #305

NullVoxPopuli opened this issue Jan 20, 2022 · 3 comments · Fixed by #306

Comments

@NullVoxPopuli
Copy link
Contributor

for example, npm-run-all has the ability to do this:

    "lint": "npm-run-all --aggregate-output --continue-on-error --parallel 'lint:!(fix)'",

where it runs: lint:js, and lint:md but not lint:js:fix or lint:md:fix

can concurrently omit via pattern?

@gustavohenke
Copy link
Member

Nope, this isn't possible at the moment.
Best you can do is add some suffix to your scripts, e.g. lint:js:main, and then run concurrently "npm:lint:*:main"

@NullVoxPopuli
Copy link
Contributor Author

would a PR to support this be of interest?

@gustavohenke
Copy link
Member

I don't know if many people ever needed something like this, so I'm keen to see how complex it can get -- if it turns out being a simple solution to implement and document, sure!

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

Successfully merging a pull request may close this issue.

2 participants