Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xethron/gulp-concat-json2js
Concat JS files from a JSON array
https://github.com/xethron/gulp-concat-json2js
Last synced: about 1 month ago
JSON representation
Concat JS files from a JSON array
- Host: GitHub
- URL: https://github.com/xethron/gulp-concat-json2js
- Owner: Xethron
- License: mit
- Created: 2014-06-14T20:44:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-14T20:49:55.000Z (over 10 years ago)
- Last Synced: 2024-10-15T03:42:43.235Z (3 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Concat JavaScript files from JSON Arrays
========================================This is a simple tool for gulp that will convert a json file with an array of file names into a single concatinated file.
Multiple json files will result in multiple js files.
```
var concat = require('concat-json2js');gulp.src('path/to/js/**.json')
.pipe(concat-json2js())
.pipe(gulp.dest('public/js'));
```main.json
```
[
"file1.js",
"file2.js",
"file3.js"
]
```This will generate a main.js file containing file1.js, file2.js and file3.js in that order.
License
----------gulp-concat-json2js is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)