Nefariously Programmed Mecha
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

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

install

npm i gulp-recursive-concat

Downloadsweekly downloads

68

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability