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

Support running NPM scripts #2

Open
tommy-mitchell opened this issue Mar 22, 2023 · 4 comments
Open

Support running NPM scripts #2

tommy-mitchell opened this issue Mar 22, 2023 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@tommy-mitchell
Copy link
Owner

tommy-mitchell commented Mar 22, 2023

It would be convenient to have a shorthand for npm run my-script, like concurrently has:

concurrently "npm:watch-js" "npm:watch-css" "npm:watch-node"

I think the npm:script syntax is good as-is.

concurrently also supports wild cards and negations. matcher could possibly be used for this:

concurrently "npm:lint:*(!fix)"
@tommy-mitchell tommy-mitchell added the enhancement New feature or request label Mar 22, 2023
@tommy-mitchell
Copy link
Owner Author

tommy-mitchell commented Mar 28, 2023

This should also support resolving pre- and post- scripts.

Ideally, this would parse all commands in order and make a task for each of them.

@tommy-mitchell tommy-mitchell mentioned this issue Jul 14, 2023
11 tasks
@tommy-mitchell tommy-mitchell changed the title Support Running NPM Scripts Support running NPM scripts Jul 17, 2023
@tommy-mitchell tommy-mitchell added this to the v1.0.0 milestone Jul 17, 2023
@tommy-mitchell
Copy link
Owner Author

tommy-mitchell commented Aug 3, 2023

If the task is unnamed, the name should come from the script:

> listr yarn:lint tests::pnpm:test 'npm:build-*'
⠼ lint
◼ tests
◼ build-ts
◼ build-scss
◼ postbuild

The documentation should also mention quoting globs to escape them.

@tommy-mitchell
Copy link
Owner Author

concurrently references: expand-npm-shortcut, expand-npm-wildcard

@tommy-mitchell
Copy link
Owner Author

Potential matcher blocker: sindresorhus/matcher#35

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

No branches or pull requests

1 participant