title: How can I write multiline scripts in npm scripts?
body: <p>My package.json looks like the following:</p>
  
  <pre><code>{
    "name": "project",
    "version": "1.0.0",
    "description": "",
    "main": "server.js",
    "scripts": {
      "lint": "./node_modules/eslint/bin/eslint.js --format \"./node_modules/eslint-friendly-formatter/index.js\" .",
      "build:server": "./node_modules/babel-cli/bin/babel.js . -d dist/server --ignore node_modules,dist,client,public,webpack*"
    }
  }
  </code></pre>
  
  <p>As you can see, the <code>lint</code> and <code>build:server</code> command are hard to read, so I want to break them into multiple lines.</p>
  
  <p>I've tried to use <code>\</code>, but it throws errors like:</p>
  
  <pre><code>npm ERR! Failed to parse json
  npm ERR! Unexpected token ' ' at 11:80
  npm ERR! :server": "./node_modules/babel-cli/bin/babel.js . -d dist/server \
  npm ERR!                                                                   ^
  </code></pre>
  
  <p>How can I do this?</p>
  
  <p>Only to write another bash file like <code>build.sh</code> and use it in npm scripts like <code>./build.sh server</code> ?</p>