gulp-semiflat

    0.0.9 • Public • Published

    gulp-semiflat

    Amend the base path of gulp vinyl files based on a glob to produce a somewhat flatter file tree at the destination.

    Install

    Install with npm.

    npm install --save-dev gulp-semiflat
    

    Usage

    var gulp = require('gulp');
    var gulpSemiFlat = require('gulp-semiflat');
     
    gulp.task('default', function () {
      return gulp.src('js/**/lib/**/*.js')  // base will be '/js'
        .pipe(gulpSemiFlat('js/**/lib'))    // base is now '/js/.../lib'
        .pipe(gulp.dest('build/js');
    });

    Note that trailing ** in the glob will match the full path to the file. This will give the limiting case of gulp-flatten.

    Install

    npm i gulp-semiflat

    DownloadsWeekly Downloads

    1

    Version

    0.0.9

    License

    MIT

    Last publish

    Collaborators

    • bholloway