Skip to content

Commit d5014e4

Browse files
committed
Update: Replace del devDependency with rimraf
1 parent 9bf2927 commit d5014e4

File tree

10 files changed

+18
-14
lines changed

10 files changed

+18
-14
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"vinyl-sourcemap": "^0.4.0"
4646
},
4747
"devDependencies": {
48-
"del": "^2.2.0",
4948
"eslint": "^1.10.3",
5049
"eslint-config-gulp": "^2.0.0",
5150
"expect": "^1.19.0",
@@ -54,7 +53,8 @@
5453
"jscs": "^2.4.0",
5554
"jscs-preset-gulp": "^1.0.0",
5655
"mississippi": "^1.2.0",
57-
"mocha": "^2.4.5"
56+
"mocha": "^2.4.5",
57+
"rimraf": "^2.6.1"
5858
},
5959
"keywords": [
6060
"gulp",

test/dest-modes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var inputNestedPath = testConstants.inputNestedPath;
2929
var outputNestedPath = testConstants.outputNestedPath;
3030
var contents = testConstants.contents;
3131

32-
var clean = cleanup([outputBase]);
32+
var clean = cleanup(outputBase);
3333

3434
describe('.dest() with custom modes', function() {
3535

test/dest-owner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var outputBase = testConstants.outputBase;
2020
var inputPath = testConstants.inputPath;
2121
var contents = testConstants.contents;
2222

23-
var clean = cleanup([outputBase]);
23+
var clean = cleanup(outputBase);
2424

2525
describe('.dest() with custom owner', function() {
2626

test/dest-times.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var inputPath = testConstants.inputPath;
2121
var outputPath = testConstants.outputPath;
2222
var contents = testConstants.contents;
2323

24-
var clean = cleanup([outputBase]);
24+
var clean = cleanup(outputBase);
2525

2626
describe('.dest() with custom times', function() {
2727

test/dest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function makeSourceMap() {
5252
};
5353
}
5454

55-
var clean = cleanup([outputBase]);
55+
var clean = cleanup(outputBase);
5656

5757
describe('.dest()', function() {
5858

test/file-operations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var inputPath = testConstants.inputPath;
4444
var outputPath = testConstants.outputPath;
4545
var contents = testConstants.contents;
4646

47-
var clean = cleanup([outputBase]);
47+
var clean = cleanup(outputBase);
4848

4949
function noop() {}
5050

test/integration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var inputGlob = path.join(inputBase, './*.txt');
2121
var outputBase = path.join(base, './out/');
2222
var content = testConstants.content;
2323

24-
var clean = cleanup([base]);
24+
var clean = cleanup(base);
2525

2626
describe('integrations', function() {
2727

test/src-symlinks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var symlinkMultiDirpathSecond = testConstants.symlinkMultiDirpathSecond;
2424
var symlinkNestedFirst = testConstants.symlinkNestedFirst;
2525
var symlinkNestedSecond = testConstants.symlinkNestedSecond;
2626

27-
var clean = cleanup([outputBase]);
27+
var clean = cleanup(outputBase);
2828

2929
describe('.src() with symlinks', function() {
3030

test/symlink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var inputDirpath = testConstants.inputDirpath;
3535
var outputDirpath = testConstants.outputDirpath;
3636
var contents = testConstants.contents;
3737

38-
var clean = cleanup([outputBase]);
38+
var clean = cleanup(outputBase);
3939

4040
describe('symlink stream', function() {
4141

test/utils/cleanup.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
'use strict';
22

3-
var del = require('del');
3+
var rimraf = require('rimraf');
44
var expect = require('expect');
55

6-
function cleanup(globs) {
7-
return function() {
6+
function cleanup(glob) {
7+
return function(cb) {
88
this.timeout(20000);
99

1010
expect.restoreSpies();
1111

12+
if (!glob) {
13+
return cb();
14+
}
15+
1216
// Async del to get sort-of-fix for https://github.com/isaacs/rimraf/issues/72
13-
return del(globs);
17+
rimraf(glob, cb);
1418
};
1519
}
1620

0 commit comments

Comments
 (0)