Skip to content

jaireina/gulp-nosubfolders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#gulp-nosubfolders

Information

Packagegulp-nosubfolders
Description Remove all the subfolders structure from the files on the pipe so you can save all of them in one location
Node Version >= 0.10

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'));
});

About

Remove all the subfolder structure of the files in the gulp pipe.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published