0.1.2 • Published 10 years ago

concat-from-list v0.1.2

Weekly downloads
12
License
MIT
Repository
github
Last release
10 years ago

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