Fix all code style issues

This commit is contained in:
Tyler Long
2017-04-13 21:53:23 +08:00
parent f04d415b0a
commit df8085bee0
7 changed files with 56 additions and 49 deletions

View File

@@ -1,19 +1,19 @@
'use strict'
var Stream = require('stream')
var Path = require('path')
// 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
}
}
// 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')