From dca0dda6c1c9207016dfdf83b2cef7ca2cdf604f Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 16 Feb 2016 10:30:20 -0800 Subject: [PATCH] Update to gulp-eslint v2 Also update del and lazypipe modules --- .eslintrc.json | 7 ++++--- gulpfile.js | 8 ++++---- package.json | 6 +++--- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 94a41a64..cc13518e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,8 +10,9 @@ "html" ], "globals": { - "CustomElements": true, - "HTMLImports": true, - "Polymer": true + "CustomElements": false, + "HTMLImports": false, + "Polymer": false, + "WeakMap": false } } diff --git a/gulpfile.js b/gulpfile.js index a3cf4e68..afeed0bd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -68,8 +68,8 @@ gulp.task('micro', vulcanizeWithExcludes(micro)); gulp.task('mini', vulcanizeWithExcludes(mini, [micro])); gulp.task('max', vulcanizeWithExcludes(max, [mini, micro])); -gulp.task('clean', function(cb) { - del(workdir, cb); +gulp.task('clean', function() { + return del(workdir); }); // copy bower.json into dist folder @@ -99,8 +99,8 @@ gulp.task('restore-src', function() { .pipe(gulp.dest('.')); }); -gulp.task('cleanup-switch', function(cb) { - del([mini + '.bak', micro + '.bak', max + '.bak'], cb); +gulp.task('cleanup-switch', function() { + return del([mini + '.bak', micro + '.bak', max + '.bak']); }); gulp.task('switch-build', function() { diff --git a/package.json b/package.json index 58036b0e..764ce449 100644 --- a/package.json +++ b/package.json @@ -8,15 +8,15 @@ "test": "test" }, "devDependencies": { - "del": "^1.1.1", + "del": "^2.2.0", "eslint-plugin-html": "^1.3.0", "gulp": "^3.8.11", "gulp-audit": "^1.0.0", - "gulp-eslint": "^1.1.1", + "gulp-eslint": "^2.0.0", "gulp-rename": "^1.2.2", "gulp-replace": "^0.5.3", "gulp-vulcanize": "^6.0.1", - "lazypipe": "^0.2.3", + "lazypipe": "^1.0.1", "polyclean": "^1.2.0", "run-sequence": "^1.1.0", "web-component-tester": "^4"