title: Is it possible to use npm to run scripts in multiple subfolders?
body: <p>I have a folder (a project) with 3 subfolders (client, server, assets). Each subfolder has a different command to start and to work on the project I need to start the 3 apps. This is the folder layout and the commands I use to start each subproject:  </p>
  
  <blockquote>
    <ul>
    <li>project
    
    <ul>
    <li>client (ionic serve)</li>
    <li>server (node index)</li>
    <li>assets (http-server -p 8082)</li>
    </ul></li>
    </ul>
  </blockquote>
  
  <p>Currently, I go to each of the three folders and start each of the apps. To make the process more standard, each subproject has a package.json with a start script, so I just <code>cd subfolder &amp;&amp; npm start</code>.</p>
  
  <p><strong>My question:</strong> is it possible to use npm on the parent folder (i.e., write a <code>package.json</code> there) in such a way that I can just run the following command and have the same (or similar) effect?</p>
  
  <blockquote>
    <p>project> npm start</p>
  </blockquote>
  
  <p>I have tried using the package <code>parallelshell</code>, but it didnt work (probably because of the <code>cd</code>:</p>
  
  <pre><code>"scripts": {
    "start": "parallelshell 'cd app &amp;&amp; ionic serve' 'cd api &amp;&amp; npm start' 'cd assets &amp;&amp; npm start'",
  }
  </code></pre>