class VersionTask extends BalmJS . BalmTask { constructor ( ) { super ( 'version' ) ; this . defaultOutput = BalmJS . config . dest . base ; } get options ( ) : object { return Object . assign ( { } , BalmJS . config . assets . options , this . customOptions ) ; } recipe ( input ? , output ? , assetsOptions ? ) { const balmVersion = ( ) : any => { this . init ( input , output , { version : assetsOptions } ) ; return this . src . pipe ( $ . revAll . revision ( this . options ) ) . pipe ( gulp . dest ( this . output ) ) . pipe ( $ . revAll . versionFile ( ) ) . pipe ( gulp . dest ( this . output ) ) ; } ; return balmVersion ; } fn ( callback ) { callback ( ) ; } } export default VersionTask ;