sindresorhus / gulp-zip

ZIP compress files
MIT License
270 stars 47 forks source link

FEATURE REQUEST: zip files recursively #96

Closed operapreneur closed 7 years ago

operapreneur commented 7 years ago

Is it possible to have an option that recursively zips a directory?

For example, from the command line, you can run zip -r

Thanks!

kevva commented 7 years ago

It will zip the files that matches your glob. The following will zip all files inside src:

gulp.task('default', () =>
    gulp.src('src/**/*')
        .pipe(zip('archive.zip'))
        .pipe(gulp.dest('dist'))
);