gulp-recursive-concat

0.2.0 • Public • Published

Gulp Recursive Concatenation NPM version Build Status

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

Package Sidebar

Install

npm i gulp-recursive-concat

Weekly Downloads

44

Version

0.2.0

License

MIT

Last publish

Collaborators

  • jansanchez