Create tarball from files
npm install --save-dev gulp-tar
import gulp from 'gulp';
import tar from 'gulp-tar';
import gzip from 'gulp-gzip';
export default () => (
gulp.src('src/*')
.pipe(tar('archive.tar'))
.pipe(gzip())
.pipe(gulp.dest('dist'))
);
Type: string
The filename for the output tar archive.
Type: object
Default options passed to Archiver's constructor and merged into the data passed to its append
method.