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 to execute multiple commands? #6

Open
ihengshuai opened this issue Aug 16, 2023 · 1 comment
Open

How to execute multiple commands? #6

ihengshuai opened this issue Aug 16, 2023 · 1 comment

Comments

@ihengshuai
Copy link

Hi, I want to run two commands at the same time with one command. What should I do?

{
  "test:e2e": {
    "alias": "Test Components",
    "command": "pnpm --filter ui test:e2e && pnpm example"
  },
}
@ghost
Copy link

ghost commented Nov 10, 2023

I recommend taking a look at the concurrently package.

npm install concurrently --dev
{
  "test:e2e": {
    "alias": "Test Components",
    "command": "conc \"npm run --filter ui test:e2e\" \"npm run example"
  },
}

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

No branches or pull requests

1 participant