1.0.0 • Published 9 years ago

gulp-nosubfolders v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

#gulp-nosubfolders

Information

Install

npm install gulp-nosubfolders

Usage

By default gulp.dest keeps all the subfolder structure of the files coming through the pipe. So you can use this module to get a structure like this:

└── js
    ├── app.js
    ├── helper.js
    └── vendor
        ├── jquery.js
        └── bootstrap.js

and turn it into this:

├── app.js
├── helper.js
├── jquery.js
└── bootstrap.js

With this code:

var nosubfolders = require('gulp-nosubfolders');

gulp.task('default', function() {
  return gulp
  				.src('./js/**')
  				.pipe(nosubfolders())
  				.pipe(gulp.dest('./my/dest/path'));
});