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 could i use these controllers? #218

Closed
yanguoyu opened this issue Mar 25, 2020 · 1 comment
Closed

How could i use these controllers? #218

yanguoyu opened this issue Mar 25, 2020 · 1 comment

Comments

@yanguoyu
Copy link

https://github.com/kimmobrunfeldt/concurrently/blob/af501f3d3ed1771e0933ceaab9b157481c3868b3/index.js#L50
before these Export you has use module.exports, How could i import these controllers?

@gustavohenke
Copy link
Member

Hello!
Those can be used just like in the main concurrently function:

https://github.com/kimmobrunfeldt/concurrently/blob/af501f3d3ed1771e0933ceaab9b157481c3868b3/index.js#L12-L46

The idea is that you can build your own concurrently with each piece.
Let's say you'd rather have logging to a file, instead of to stdout -- that's fine, just instantiate your own Logger instance and pass it to the other controllers that add the features (logging command output, restarting, killing on signal, etc).

gustavohenke added a commit that referenced this issue Apr 1, 2020
Should cater for use case described in #218
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

2 participants