build(npm): remove `del` devDependency - use `fs-extra` instead

This commit is contained in:
Igor Minar 2016-01-02 21:49:10 -08:00 committed by Igor Minar
parent a0d25db4a5
commit 0bdcb5c1e0
4 changed files with 8 additions and 122 deletions

View File

@ -6,7 +6,7 @@ require('./tools/check-environment')(
{requiredNpmVersion: '>=3.5.2 <4.0.0', requiredNodeVersion: '>=4.2.1 <5.0.0'});
var del = require('del');
var fse = require('fs-extra');
var gulp = require('gulp');
var gulpPlugins = require('gulp-load-plugins')();
var merge = require('merge');
@ -185,21 +185,20 @@ var PAYLOAD_TESTS_CONFIG = {
// ------------
// clean
gulp.task('build/clean.tools', function() { del(path.join('dist', 'tools')); });
gulp.task('build/clean.tools', (done) => fse.remove(path.join('dist', 'tools'), done));
gulp.task('build/clean.js', function(done) { del(CONFIG.dest.js.all, done); });
gulp.task('build/clean.js', (done) => fse.remove(CONFIG.dest.js.all, done));
gulp.task('build/clean.dart', function(done) { del(CONFIG.dest.dart, done); });
gulp.task('build/clean.dart', (done) => fse.remove(CONFIG.dest.dart, done));
gulp.task('build/clean.docs', function(done) { del(CONFIG.dest.docs, done); });
gulp.task('build/clean.docs', (done) => fse.remove(CONFIG.dest.docs, done));
gulp.task('build/clean.docs_angular_io',
function(done) { del(CONFIG.dest.docs_angular_io, done); });
gulp.task('build/clean.docs_angular_io', (done) => fse.remove(CONFIG.dest.docs_angular_io, done));
gulp.task('build/clean.bundles', function(done) { del(CONFIG.dest.bundles.all, done); });
gulp.task('build/clean.bundles', (done) => fse.remove(CONFIG.dest.bundles.all, done));
gulp.task('build/clean.bundles.benchpress',
function(done) { del(CONFIG.dest.bundles.benchpress, done); });
(done) => fse.remove(CONFIG.dest.bundles.benchpress, done));
// ------------
// transpile

View File

@ -1911,14 +1911,6 @@
"definition-header": {
"version": "0.1.0"
},
"del": {
"version": "1.2.1",
"dependencies": {
"object-assign": {
"version": "3.0.0"
}
}
},
"delayed-stream": {
"version": "1.0.0"
},
@ -1988,9 +1980,6 @@
}
}
},
"each-async": {
"version": "1.1.1"
},
"ecc-jsbn": {
"version": "0.1.1"
},
@ -2821,20 +2810,6 @@
"global": {
"version": "2.0.1"
},
"globby": {
"version": "2.1.0",
"dependencies": {
"async": {
"version": "1.5.0"
},
"glob": {
"version": "5.0.15"
},
"object-assign": {
"version": "3.0.0"
}
}
},
"globule": {
"version": "0.1.0",
"dependencies": {
@ -3448,15 +3423,6 @@
"is-number": {
"version": "2.1.0"
},
"is-path-cwd": {
"version": "1.0.0"
},
"is-path-in-cwd": {
"version": "1.0.0"
},
"is-path-inside": {
"version": "1.0.0"
},
"is-primitive": {
"version": "2.0.0"
},
@ -4407,9 +4373,6 @@
"once": {
"version": "1.3.3"
},
"onetime": {
"version": "1.1.0"
},
"open": {
"version": "0.0.4"
},
@ -4504,9 +4467,6 @@
"path-is-absolute": {
"version": "1.0.0"
},
"path-is-inside": {
"version": "1.0.1"
},
"path-platform": {
"version": "0.11.15"
},
@ -5040,9 +5000,6 @@
}
}
},
"set-immediate-shim": {
"version": "1.0.1"
},
"setimmediate": {
"version": "1.0.4"
},

69
npm-shrinkwrap.json generated
View File

@ -3003,18 +3003,6 @@
"from": "definition-header@>=0.1.0 <0.2.0",
"resolved": "https://registry.npmjs.org/definition-header/-/definition-header-0.1.0.tgz"
},
"del": {
"version": "1.2.1",
"from": "del@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/del/-/del-1.2.1.tgz",
"dependencies": {
"object-assign": {
"version": "3.0.0",
"from": "object-assign@>=3.0.0 <4.0.0",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz"
}
}
},
"delayed-stream": {
"version": "1.0.0",
"from": "delayed-stream@>=1.0.0 <1.1.0",
@ -3126,11 +3114,6 @@
}
}
},
"each-async": {
"version": "1.1.1",
"from": "each-async@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/each-async/-/each-async-1.1.1.tgz"
},
"ecc-jsbn": {
"version": "0.1.1",
"from": "ecc-jsbn@>=0.0.1 <1.0.0",
@ -4465,28 +4448,6 @@
"from": "https://github.com/component/global/archive/v2.0.1.tar.gz",
"resolved": "https://github.com/component/global/archive/v2.0.1.tar.gz"
},
"globby": {
"version": "2.1.0",
"from": "globby@>=2.0.0 <3.0.0",
"resolved": "https://registry.npmjs.org/globby/-/globby-2.1.0.tgz",
"dependencies": {
"async": {
"version": "1.5.0",
"from": "async@>=1.2.1 <2.0.0",
"resolved": "https://registry.npmjs.org/async/-/async-1.5.0.tgz"
},
"glob": {
"version": "5.0.15",
"from": "glob@>=5.0.3 <6.0.0",
"resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz"
},
"object-assign": {
"version": "3.0.0",
"from": "object-assign@>=3.0.0 <4.0.0",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz"
}
}
},
"globule": {
"version": "0.1.0",
"from": "globule@>=0.1.0 <0.2.0",
@ -5474,21 +5435,6 @@
"from": "is-number@>=2.1.0 <3.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz"
},
"is-path-cwd": {
"version": "1.0.0",
"from": "is-path-cwd@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz"
},
"is-path-in-cwd": {
"version": "1.0.0",
"from": "is-path-in-cwd@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz"
},
"is-path-inside": {
"version": "1.0.0",
"from": "is-path-inside@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz"
},
"is-primitive": {
"version": "2.0.0",
"from": "is-primitive@>=2.0.0 <3.0.0",
@ -7019,11 +6965,6 @@
"from": "once@>=1.3.0 <2.0.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz"
},
"onetime": {
"version": "1.1.0",
"from": "onetime@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz"
},
"open": {
"version": "0.0.4",
"from": "open@0.0.4",
@ -7178,11 +7119,6 @@
"from": "path-is-absolute@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.0.tgz"
},
"path-is-inside": {
"version": "1.0.1",
"from": "path-is-inside@>=1.0.1 <2.0.0",
"resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz"
},
"path-platform": {
"version": "0.11.15",
"from": "path-platform@>=0.11.15 <0.12.0",
@ -8042,11 +7978,6 @@
}
}
},
"set-immediate-shim": {
"version": "1.0.1",
"from": "set-immediate-shim@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz"
},
"setimmediate": {
"version": "1.0.4",
"from": "setimmediate@>=1.0.1 <2.0.0",

View File

@ -55,7 +55,6 @@
"chokidar": "^1.1.0",
"clang-format": "^1.0.32",
"conventional-changelog": "^0.2.1",
"del": "~1",
"firefox-profile": "^0.3.4",
"fs-extra": "^0.26.3",
"glob": "^4.0.6",