Socket
Book a DemoInstallSign in
Socket

gulp-semiflat

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-semiflat

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

latest
Source
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

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.

Keywords

gulp

FAQs

Package last updated on 13 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts