Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 806 Bytes

readme.md

File metadata and controls

48 lines (28 loc) · 806 Bytes

gulp-tar Build Status

Create tarball from files

Install

$ npm install --save-dev gulp-tar

Usage

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

API

tar(filename, options)

filename

Type: string

filename for the output tar archive

options

Type: object

Default file headers passed to tar-stream.

License

MIT © Sindre Sorhus