gulp-tar

Create tarball from files

gulp-tar

Create tarball from files

$ npm install --save-dev gulp-tar
const gulp = require('gulp');
const tar = require('gulp-tar');
const gzip = require('gulp-gzip');
 
gulp.task('default', () => {
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