title: npm scripts nodemon - watching js and scss files for changes
body: <p>I'm experimenting with setting up a dev environment to use NPM only, without the use of grunt.js or bower.js.</p>
  
  <p>I followed this tutorial: <a href="http://beletsky.net/2015/04/npm-for-everything.html" rel="noreferrer">http://beletsky.net/2015/04/npm-for-everything.html</a></p>
  
  <p>I'm using nodemon to watch my .js and .scss files for changes which restarts the node server.  So in my package.json file, under scripts I have</p>
  
  <p>scripts:</p>
  
  <p><code>"watch-js": "nodemon -e js --watch public/js -x \"npm run build-js\"",</code></p>
  
  <p><code>"watch-sass": "nodemon -e scss --watch public/sass -x \"npm run build-sass\"",</code></p>
  
  <p><code>"watch": "npm run watch-js &amp; npm run watch-sass"</code></p>
  
  <p>But when I run <code>npm run watch</code> it only watches for the public/js files to change.  And it triggers a build accordingly.</p>
  
  <p>But it won't watch for the sass files.</p>
  
  <p>Versions:
  <code>node v0.10.36</code> <code>nodemon v1.4.1</code></p>
  
  <p>I also include a build script which if I run compiles the sass to css, so my build-sass script should be ok</p>
  
  <pre><code>"build": "npm run build-js &amp; npm run build-sass",
  "watch": "npm run watch-js &amp; npm run watch-sass"
  </code></pre>