Create tarball from files
$ npm install --save-dev gulp-tar
var gulp = require('gulp');
var tar = require('gulp-tar');
var gzip = require('gulp-gzip');
gulp.task('default', function () {
return gulp.src('src/*')
.pipe(tar('archive.tar'))
.pipe(gzip())
.pipe(gulp.dest('dist'));
});
Type: string
filename for the output tar archive
Type: object
Default file headers passed to tar-stream.
MIT © Sindre Sorhus