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

Npm run wildcard #140

Merged
merged 17 commits into from
May 21, 2018
Merged

Conversation

pgraham
Copy link
Contributor

@pgraham pgraham commented Apr 26, 2018

Allow wildcards for npm run command shortcut.

Given a package.json with the following scripts:

{
    "scripts": {
        "watch:js": "...",
        "watch:css": "...",
        "watch:node": "...",
        ...
    }
}
$ concurrently "npm:watch:*"

# Equivalent to:
$ concurrently -n js,css,node "npm run watch:js" "npm run watch:css" "npm run watch:node"

# Any name provided for the wildcard command will be applied as a prefix:
$ concurrently -n w: "npm:watch:*"

# Equivalent to:
$ concurrently -n w:js,w:css,w:node "npm run watch:js" "npm run watch:css" "npm run watch:node"

@gustavohenke gustavohenke self-requested a review May 2, 2018 14:50
Copy link
Member

@gustavohenke gustavohenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ As usual, another great PR -- thanks, @pgraham!

...and sorry for the delay reviewing it!

@gustavohenke gustavohenke merged commit 7cc977b into open-cli-tools:master May 21, 2018
@gustavohenke
Copy link
Member

Released, finally 🙌 install v3.6.0 now to get this and other goodness!

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 this pull request may close these issues.

None yet

2 participants