tasks/util/stream.js
function pipeLastFile (file) {
    testPipeFile();

    let readable = fs.createReadStream(file);

    readable.once('error', throwAsyncError);

    readable.pipe(writable);
}
function pipeLastFile (file) {
    testPipeFile();

    let readable = fs.createReadStream(file);

    readable.once('error', throwAsyncError);

    readable.pipe(writable);
}
function pipeLastFile ( file ) { testPipeFile ( ) ; let readable = fs . createReadStream ( file ) ; readable . once ( 'error' , throwAsyncError ) ; readable . pipe ( writable ) ; }
Pipe file contents and then end WriteStream.

@function pipeLastFile
@param {String} file
@api public
Pipe file contents and then end WriteStream .