concat-glob-cli
v0.1.0
Published
Command line implementation of concat module with glob support
Downloads
2,662
Readme
concat-cli
Just a simple wrapper around the concat module, to concatenate files via the command line, and support ** glob.
Install
$ npm install -g concat-cli
Usage
Pass the files to concatenate (-f or --files parameter) to the tool, and optionally and destination file (-o or --output parameter):
Uses the argument after -f flag to make a path to pass into the glob module. If passed in through the command line, the path should be passed in as a string:
$ concat-cli -f 'path/to/js/**/*.js' -o bundle.js
If registering as an npm script (the main reason this module was created), it is not necessary to include the path a string.