Extract TAR, TAR.BZ2, TAR.GZ and ZIP archives using decompress
$ npm install gulp-decompress
const decompress = require('gulp-decompress');
const gulp = require('gulp');
gulp.task('default', () =>
gulp.src('*.{tar,tar.bz2,tar.gz,zip}')
.pipe(decompress({strip: 1}))
.pipe(gulp.dest('dist'))
);
See the decompress options.