title: Running bash scripts with npm
body: <p>I want to try using npm to run my various build tasks for a web application.  I know I can do this by adding a <code>scripts</code> field to my <code>package.json</code> like so:</p>
  
  <pre><code>"scripts": {
     "build": "some build command"
  },
  </code></pre>
  
  <p>This gets unwieldy when you have more complex commands with a bunch of options.  Is it possible to move these commands to a bash script or something along those lines?  Something like:</p>
  
  <pre><code>"scripts": {
     "build": "build.sh"
  },
  </code></pre>
  
  <p>where <code>npm run build</code> would execute the commands in the <code>build.sh</code> file?</p>
  
  <p>Reading through <a href="http://substack.net/task_automation_with_npm_run" rel="noreferrer">this</a> post it seems like it is, but I'm not clear on exactly where I'm supposed to drop my <code>build.sh</code> file or if I'm missing something.</p>