Skip to content

fobos/gulp-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-archiver

Archive anything through gulp

Usage

var gulp = require('gulp');
var archiver = require('gulp-archiver');

gulp.task('default', function () {
	return gulp.src('src/**')
		.pipe(archiver('archive.zip'))
		.pipe(gulp.dest('./dist'));
});

Plugin uses archiver npm package to make archive.

API

archiver(filename[, options])

filename

Required Type: String

Result archive file name.

File extension is used to define archive type. Plugin supports only zip and tar archives.

options

Type: Object

Described in original archiver repository