title: How to start Gulp watch task when I type npm start
body: <p>I have a gulp.js file that includes:</p>
  
  <pre><code>gulp.task('default', ['watch']);
  </code></pre>
  
  <p>Which starts up the watch task</p>
  
  <pre><code>gulp.task('watch', function(){
    gulp.watch(productionScripts, ['autoConcat']);
  });
  </code></pre>
  
  <p>Then on any saved changes to files in productionScripts, the watch task will concat the files.</p>
  
  <p>What I would like to do, is in my package.json, I would like to spool up this watch when I type npm start (this already starts my node server).</p>
  
  <p>package.json</p>
  
  <pre><code>    "start": "node server.js",
  </code></pre>
  
  <p><strong>UPDATE</strong>--------</p>
  
  <p>Ben(b3nj4m.com), I tried what you stated. The watch and server start up. However, everything runs twice (probably due to the editor, not related), but I do lose my server log when I start it up with gulp.</p>
  
  <pre><code>[15:31:18] Starting 'autoConcat'...
  [15:31:18] Finished 'autoConcat' after 147 ms
  [15:31:19] Starting 'autoConcat'...
  [15:31:19] Finished 'autoConcat' after 138 ms
  [15:31:20] Starting 'autoConcat'...
  [15:31:20] Finished 'autoConcat' after 127 ms
  [15:31:23] Starting 'autoConcat'...
  </code></pre>
  
  <p>It's like there is a loop between the server restarting on a change, and the concatenated file changing.</p>