File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,16 @@ var deps = require('module-deps');
4
4
var pack = require ( 'browser-pack' ) ;
5
5
6
6
var pipeline = splicer . obj ( [
7
- 'deps' , [ deps ( __dirname + '/browser/main.js' ) ] ,
8
- 'pack' , [ pack ( { raw : true } ) ] ,
9
- process . stdout
7
+ 'deps' , [ deps ( ) ] ,
8
+ 'pack' , [ pack ( { raw : true } ) ]
10
9
] ) ;
11
10
12
11
pipeline . get ( 'deps' ) . push ( through . obj ( function ( row , enc , next ) {
13
12
row . source = row . source . toUpperCase ( ) ;
14
13
this . push ( row ) ;
15
14
next ( ) ;
16
15
} ) ) ;
16
+
17
+ pipeline . pipe ( process . stdout ) ;
18
+
19
+ pipeline . end ( __dirname + '/browser/main.js' ) ;
Original file line number Diff line number Diff line change 9
9
"stream-splicer" : " ^2.0.0"
10
10
},
11
11
"devDependencies" : {
12
- "tape" : " ^2.12.1" ,
13
- "browser-pack" : " ^2.0.1" ,
12
+ "browser-pack" : " ^6.0.4" ,
14
13
"concat-stream" : " ^1.4.6" ,
15
- "module-deps" : " ^2.1.2" ,
14
+ "module-deps" : " ^6.0.0" ,
15
+ "tape" : " ^2.12.1" ,
16
16
"through2" : " ^1.0.0"
17
17
},
18
18
"scripts" : {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ test('bundle', function (t) {
9
9
t . plan ( 1 ) ;
10
10
11
11
var pipeline = splicer . obj ( [
12
- 'deps' , [ deps ( __dirname + '/bundle/main.js' ) ] ,
12
+ 'deps' , [ deps ( ) ] ,
13
13
'pack' , [ pack ( { raw : true } ) ]
14
14
] ) ;
15
15
pipeline . pipe ( concat ( function ( body ) {
@@ -24,4 +24,6 @@ test('bundle', function (t) {
24
24
this . push ( row ) ;
25
25
next ( ) ;
26
26
} ) ) ;
27
+
28
+ pipeline . end ( __dirname + '/bundle/main.js' ) ;
27
29
} ) ;
You can’t perform that action at this time.
0 commit comments