Uh oh!
There was an error while loading. Please reload this page.
npm run scripts: wait for the spawned process to finish - #15
Conversation
T4rk1n
commented
Oct 11, 2018
It doesn't change anything for the commands you changed, the |
Using `wait` is beneficial as (1) it shows the clear intention of running programs in parallel to the reader and (2) the CLI actually waits for the processes to finish and not suddenly dumps texts after a few seconds. See also: http://tldp.org/LDP/abs/html/x9644.html
wilzbach
commented
Oct 11, 2018
Yep, I'm aware of it, but whiletrue;do
npm run build:all;
inotifywait --event modify,create,delete,delete_self,close_write,move,move_self -q **/*.js ;doneThe problem is that after the I rebased the PR with proposal (2) (using |
T4rk1n
commented
Oct 16, 2018
Merged #14, if you want to add a watch in a new PR it would have to support windows. |
&causes the command to be run in the background. whereas&&waits for the command to exit successfully.As far as I can tell, it could have been intended to use
&. If that's the cause usingwaitmight be beneficial as (1) it shows the clear intention of running programs in parallel to the reader and (2) the CLI actually waits for the processes to finish and not suddenly dumps texts after a few seconds.Though I'm not sure whether
waitwill work on Windows.A better alternative might be concurrently.
See also: