-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Wildcard option doesn't seem to follow README #312
Comments
Getting the same behaviour with 7.1.0 It seems that naming got broken. |
#212 actually caused this bug, from what I can see. It made the current command name the prefix for expanded commands, but it so happens that when you use the shortcut In the docs case, the |
Might be one way of fixing this. To make the problem more apparent, you can try running the command line
Any thoughts? |
@gustavohenke I would love not to be the only one answering 😊 .... But i think I could use it that way! |
That's exactly what I've suggested 👍 Mind you, this change will be a breaking change as it turns |
I'm having the same issue here. I ended up just manually inputing the commands with no wildcards. |
If you don't mind a little jank, you can use this as a workaround:
There is a zero-width space character being passed as the argument to |
Hi, trying out concurrently and came across this issue rather immediately because I happen to use wildcards liberally (currently using npm-run-all which also supports wildcards). passing Unless the readme has changed recently I don't see anything in it that indicates it should behave the way as described in #211 so my preferred fix is to simply revert #212. The example in the readme includes the |
Since this annoys me as well, I'm going to fix it! I think the way it is described in the README really makes sense, therefore my suggestion is to simply adjust the implementation to match this behavior: "scripts": {
"lint:js": "echo js",
"lint:ts": "echo ts",
} concurrently "npm:lint:*" Will result in: ...
[js] js
[ts] ts
... As an alternative, I think we could also just use the name of the matching script, which in that case will result in: ...
[lint:js] js
[lint:ts] ts
... (However, with this approach the "prefixing" as described in the README would no longer make sense) Please let me know, which solution you prefer! Thanks! |
You're right, the readme does stipulate that behavior here
Personally I don't think that's really any better than showing the full script name like so
However I will also say that it's easier to add the |
Thanks @patrickfatrick! I really appreciate your feedback on this! I agree that both solution do come with a few drawbacks and thus realized that it might be worth starting a discussion in a separate thread to find a better solution. |
@paescuj awesome, that was quick. Look forward to its release. |
Despite #212, it seems the wildcard option still (v7.x) doesn't get
name
right,but gives now:
concurrently -n watch-*js,watch-*css,watch-*node "npm run watch-js" "npm run watch-css" "npm run watch-node"
Something I understood wrong or a recurring bug?
The text was updated successfully, but these errors were encountered: