class ZipTask extends BalmJS . BalmTask { constructor ( ) { super ( 'zip' ) ; this . defaultInput = BalmJS . file . matchAllFiles ( BalmJS . config . roots . target ) ; this . defaultOutput = '.' ; } recipe ( input ? , output ? , filename = 'archive.zip' ) { const balmZip = ( ) : any => { this . init ( input , output ) ; return this . src . pipe ( $ . zip ( filename ) ) . pipe ( gulp . dest ( this . output ) ) ; } ; return balmZip ; } fn ( callback ) { callback ( ) ; } } export default ZipTask ;