11'use strict' ;
22
3- var path = require ( 'path' ) ;
43var assign = require ( 'object-assign' ) ;
54var through2 = require ( 'through2' ) ;
65var gs = require ( 'glob-stream' ) ;
@@ -14,21 +13,6 @@ var isValidGlob = require('is-valid-glob');
1413var getContents = require ( './getContents' ) ;
1514var resolveSymlinks = require ( './resolveSymlinks' ) ;
1615
17- function normalizePath ( options ) {
18-
19- function normalize ( globFile , enc , cb ) {
20- // TODO: probably move this somewhere
21- // Ref https://github.com/gulpjs/vinyl/issues/80
22- var normalizedFile = assign ( { } , globFile , {
23- path : path . normalize ( globFile . path ) ,
24- } ) ;
25-
26- cb ( null , normalizedFile ) ;
27- }
28-
29- return through2 . obj ( options , normalize ) ;
30- }
31-
3216function createFile ( globFile , enc , cb ) {
3317 cb ( null , new File ( globFile ) ) ;
3418}
@@ -56,7 +40,6 @@ function src(glob, opt) {
5640 var globStream = gs . create ( glob , options ) ;
5741
5842 var outputStream = globStream
59- . pipe ( normalizePath ( options ) )
6043 . pipe ( resolveSymlinks ( options ) )
6144 . pipe ( through2 . obj ( options , createFile ) ) ;
6245
0 commit comments