Refactor code

This commit is contained in:
Tyler Long
2017-04-16 18:27:48 +08:00
parent b9b991c5fe
commit 3d500800f1
3 changed files with 2 additions and 29 deletions

View File

@@ -1,26 +0,0 @@
'use strict'
var Stream = require('stream')
// var Path = require('path')
function gulpRename (obj) {
var stream = new Stream.Transform({objectMode: true})
// function parsePath (path) {
// var extname = Path.extname(path)
// return {
// dirname: Path.dirname(path),
// basename: Path.basename(path, extname),
// extname: extname
// }
// }
stream._transform = function (file, unused, callback) {
console.log('a file')
callback(null, file)
}
return stream
}
module.exports = gulpRename