Skip to content

Gulp plugin. Concatenate json files to specified file containing a key with a path to each json file.

License

Notifications You must be signed in to change notification settings

krutkowski86/gulp-json-concat-with-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-json-concat-with-path

Concatenate json files to specified file containing a key with a path to each json file. The key (path) is build with a POSIX separator.

Usage

npm install --save-dev gulp-json-concat-with-path
var jsonConcat = require('gulp-json-concat-with-path');

gulp.src('*.json')
	.pipe(jsonConcat('output.json')
	.pipe(gulp.dest('outputFolder'));

Example

/app/component1/data.json

{
	"header": "component1"
}

/app/component2/data.json

{
	"header": "component2"
}

output

{
	"app/component1/data.json": {
		"header": "component1"
	},
	"app/component2/data.json": {
		"header": "component1"
	}
}

License

MIT License

About

Gulp plugin. Concatenate json files to specified file containing a key with a path to each json file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published