Skip to content

onedesert/concat-js-from-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Concat JS files from JSON Arrays

Simple tool to convert a JSON file with an array of JS file names onto a single concatenated JS file.

Multiple JSON files will result in multiple js files.

var concatenator = require('concat-js-from-json');

gulp.src('path/to/js/*.json')
	.pipe(concatenator())
	.pipe(gulp.dest('public/js/'));

main.json

[
	"file1.js",
	"file2.js",
	"file3.js"
]

This will generate a main.js file containing the file1.js, file2.js and file3.js content, following the order.

License

concat-js-from-json is open-sourced software licensed under the MIT license

About

Concat JS files from a JSON array

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published