mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-24 02:37:05 +02:00
Auto fix standard style voilations
This commit is contained in:
@@ -1,27 +1,26 @@
|
||||
'use strict';
|
||||
'use strict'
|
||||
|
||||
var Stream = require('stream');
|
||||
var Path = require('path');
|
||||
var Stream = require('stream')
|
||||
var Path = require('path')
|
||||
|
||||
function gulpRename(obj) {
|
||||
function gulpRename (obj) {
|
||||
var stream = new Stream.Transform({objectMode: true})
|
||||
|
||||
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');
|
||||
callback(null, file);
|
||||
};
|
||||
stream._transform = function (file, unused, callback) {
|
||||
console.log('a file')
|
||||
callback(null, file)
|
||||
}
|
||||
|
||||
return stream;
|
||||
return stream
|
||||
}
|
||||
|
||||
module.exports = gulpRename;
|
||||
module.exports = gulpRename
|
||||
|
Reference in New Issue
Block a user