gulp-recursive-concat
v0.2.0
Published
A gulp plugin for recursive concatenation
Downloads
83
Maintainers
Readme
Gulp Recursive Concatenation
A gulp plugin for Recursive Concatenation
Getting Started
Install:
npm install --save-dev gulp-recursive-concat
How to use:
var recursiveConcat = require('gulp-recursive-concat');
gulp.task('concatenation', function(){
return gulp.src('source/**/*.js')
.pipe(recursiveConcat({extname: ".js"}))
.pipe(gulp.dest('dist/'));
});
from
├── source
| └── modules
| | └── 1.js
| | └── 2.js
to
├── dist
| └── modules
| | └── modules.js
With outside options:
var recursiveConcat = require('gulp-recursive-concat');
gulp.task('concatenation', function(){
return gulp.src('source/**/*.js')
.pipe(recursiveConcat({extname: ".js", outside: true}))
.pipe(gulp.dest('dist/'));
});
from
├── source
| └── modules
| | └── 1.js
| | └── 2.js
to
├── dist
| └── modules.js