gulp-by-path
v1.0.0
Published
Transform files grouped by file.relative
Downloads
1
Readme
Gulp By Path
Transform file grouped in streams by path.
Installation
npm i gulp-by-path --save
Usage
var gulp = require('gulp');
var gulpByPath = require('gulp-by-path');
var gulpExtend = require('gulp-extend');
gulp.task('build', function () {
return gulp.src(['./src/folder1/*.json', './src/folder2/*.json'])
.pipe(gulpByPath(function (filename) {
return gulpExtend(filename); // return simple transform stream.
}))
.pipe(gulp.dest('./dist');
});
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
23.06.2016 Init
Credits
Alexey Bondarenko ([email protected])
License
MIT