Description
I would like to add a third success condition that would allow you to spin up a service, complete a list of tasks in parallel, capture their exit status. Assuming all tasks exited successfully, exit application with success status.
Use case
I currently use concurrently to spin up storybook and complete cypress tests against a component library. I would like to be able to also perform jest visual regression tests.
Proposed Use Case
const concurrently = require('concurrently');
const waitForStorybook = 'npx wait-on http://localhost:6006/';
concurrently(
[
{ name: 'Storybook', command: 'npm:sb', prefixColor: 'bgMagenta.bold' },
{ name: 'Cypress', command: `${waitForStorybook} && npm run test:cypress:run`, prefixColor: 'bgGreen.bold' },
{ name: 'Jest', command: `${waitForStorybook} && npm run test:unit`, prefixColor: 'bgBlue.bold' },
],
{
prefix: 'name',
successCondition: 'all-but-first',
},
)
.catch(console.error);
I am currently nesting concurrently calls to achieve this behavior and it doesn't provide the best logs.
Proposed Acceptance Criteria
- run 3 tasks concurrently
- once task 2 and 3 complete with success, exit app with success
Description
I would like to add a third success condition that would allow you to spin up a service, complete a list of tasks in parallel, capture their exit status. Assuming all tasks exited successfully, exit application with success status.
Use case
I currently use concurrently to spin up storybook and complete cypress tests against a component library. I would like to be able to also perform jest visual regression tests.
Proposed Use Case
I am currently nesting concurrently calls to achieve this behavior and it doesn't provide the best logs.
Proposed Acceptance Criteria