title: Concat all js files inside a folder using NPM concat using CLI
body: <p>I am trying to concatenate all my <code>js</code> files inside a folder using NPM package called <code>concat</code> in command line.</p>
  <p>The code That I have came up with is:
  <code>concat -o js/scripts.js js/inc/*.js</code> but it doesn't work, however after changing it to the individual filenames like: <code>concat -o js/scripts.js js/inc/nav.js js/inc/ads.js</code> it works.</p>
  <p>This is a part of <code>package.json</code></p>
  <pre><code>&quot;js&quot;: &quot;concat -o js/scripts.js js/inc/_nav.js&quot;,
  &quot;html&quot;: &quot;pug templates/pages -o . -E html --pretty&quot;,
  &quot;build&quot;: &quot;npm-run-all js css html&quot;
  </code></pre>
  <p>If it doesn't work the ways in this way and I am required to utilize a new package using <code>cli</code> I appreciate it if you could introduce that with a sample.</p>
  <p>Many thanks.</p>