gulp-tar

Create tarball from files

gulp-tar

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

filename filename for the output tar archive
options default file headers passed to tar-stream

MIT © Sindre Sorhus