0.0.9 • Published 10 years ago

gulp-semiflat v0.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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.

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago