1.0.4 • Published 6 years ago

gulp-json-concat-with-path v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago