Skip to content

Commit 58094fb

Browse files
committed
Update test and example to new module-deps, fixes #7
1 parent 1efcc05 commit 58094fb

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

example/bundle.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ var deps = require('module-deps');
44
var pack = require('browser-pack');
55

66
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 }) ]
109
]);
1110

1211
pipeline.get('deps').push(through.obj(function (row, enc, next) {
1312
row.source = row.source.toUpperCase();
1413
this.push(row);
1514
next();
1615
}));
16+
17+
pipeline.pipe(process.stdout);
18+
19+
pipeline.end(__dirname + '/browser/main.js');

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"stream-splicer": "^2.0.0"
1010
},
1111
"devDependencies": {
12-
"tape": "^2.12.1",
13-
"browser-pack": "^2.0.1",
12+
"browser-pack": "^6.0.4",
1413
"concat-stream": "^1.4.6",
15-
"module-deps": "^2.1.2",
14+
"module-deps": "^6.0.0",
15+
"tape": "^2.12.1",
1616
"through2": "^1.0.0"
1717
},
1818
"scripts": {

test/bundle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('bundle', function (t) {
99
t.plan(1);
1010

1111
var pipeline = splicer.obj([
12-
'deps', [ deps(__dirname + '/bundle/main.js') ],
12+
'deps', [ deps() ],
1313
'pack', [ pack({ raw: true }) ]
1414
]);
1515
pipeline.pipe(concat(function (body) {
@@ -24,4 +24,6 @@ test('bundle', function (t) {
2424
this.push(row);
2525
next();
2626
}));
27+
28+
pipeline.end(__dirname + '/bundle/main.js');
2729
});

0 commit comments

Comments
 (0)