Concatenate NPM Script Commands? : <p>I understand that it's possible to chain NPM scripts with <code>&amp;&amp;</code>, <code>pre-</code> and <code>post-</code> hooks, but is it possible to simply separate lengthy script lines into a single, concatenated line?</p>

<p>For example, I'd like to convert this:</p>

<pre><code>"script": {
  "build": "--many --commands --are --required --on --a --single --line"
}
</code></pre>

<p>into this:</p>

<pre><code>"script": {
  "part1": "--many --commands",
  "part2": "--are --required",
  "part3": "--on --a",
  "part4": "--single --line",
  "build": "part1 + part2 + part3 + part4"
}
</code></pre>

<p>So when I enter <code>npm run build</code> it will merge all the parts of the command on one line.</p>

<p>I'm also familiar with config variables, but they are not a cross platform solution so I will avoid using them.</p>
