gcj

gulp-concat-json2js

Concat JS files from a JSON array

Showing:

Popularity

Downloads/wk

77

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

Type Definitions

Tree-Shakeable

No?

Categories

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100