npm quit all parallel running processes
<p>i am new to the topic of npm and i try to build automatic test-process with npm scripts. The only issue i have is that i don't see any possibility to quit all parallel running processes when one special task ends</p>

<p>My Process:</p>

<ol>
<li>build application</li>
<li>start local web server</li>
<li>start json-api mock server</li>
<li>execute test</li>
</ol>

<p>my script call in package.json looks like this:</p>

<pre><code>"test": "npm run build-dev 
   &amp;&amp; parallelshell \"npm run start-testproxy\" 
                     \"npm run json-server\" 
                     \"npm run e2e\""
</code></pre>

<p><strong>How can i exit all other processes after "e2e" finished?</strong></p>

<p>( the process remains running, if i cancel it with ctrl+c on windows, 'parallelshell' will kill all sub processes, but i dont know how to realize that with a npm script )</p>

<p>thanks a lot</p>