mysticatea / npm-run-all

A CLI tool to run multiple npm-scripts in parallel or sequential.
MIT License
5.71k stars 240 forks source link

Stops executing when a command includes a server to start #123

Open Davinci-Leonardo opened 6 years ago

Davinci-Leonardo commented 6 years ago

Hello, i would like to know if there is a way to run some scripts sequential and one of them starts a server. For example, i would like to do: 1) ng serve (starts a localhost server ), 2) webdriver-manager update , 3)webdriver-manager start (starts another server), 4)run protractor tests. But when ng serve(1) finishes and the server is running, the others commands are not executed. Is there any other work around for this?

mysticatea commented 6 years ago

Thank you for this issue.

To run a server then run tests, I recommend a use of wait-on command. This example may help you: https://github.com/mysticatea/npm-run-all/issues/72#issuecomment-272430044

Davinci-Leonardo commented 6 years ago

Thank you for your help!!!