concat-from-list

0.1.2 • Public • Published

Build Status

Concatenate files listed in JSON/CSON file.

Install

$ npm install -g concat-from-list

Usage

You can first store a list of all files you want to be concatenated in app.json for example:

[
  "a.js",
  "dir/b.js",
  "./dir/c.js",
  "../bower_components/jquery/jquery.js"
]

Paths are relative to the directory the JSON file is stored in.

Now you can run this command to concatenate all the files listed in your JSON file:

$ concat-from-list app.json dist/app.js

If you wish not to install the module globally, you can do this:

$ npm install --save-dev concat-from-list
$ ./node_modules/.bin/concat-from-list path/to/app.json dist/app.js

License

MIT © Fahad Ibnay Heylaal

Package Sidebar

Install

npm i concat-from-list

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • fahad19