From 899933101c181f79d3798b59d0a74a74a86093f1 Mon Sep 17 00:00:00 2001 From: Maira Bello Date: Mon, 16 Feb 2015 09:39:57 -0300 Subject: [PATCH] Replaces rimraf with del --- gulpfile.js | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 90ee3190..9d0a0a87 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,6 @@ 'use strict'; +var del = require('del'); var GlobalsFormatter = require('es6-module-transpiler-globals-formatter'); var gulp = require('gulp'); var gutil = require('gulp-util'); @@ -44,8 +45,8 @@ gulp.task('build-min', ['build-raw'], function() { .pipe(gulp.dest('build')); }); -gulp.task('clean', function() { - return gulp.src('build').pipe(plugins.rimraf()); +gulp.task('clean', function(done) { + del(['build'], done); }); gulp.task('jspm', function(done) { diff --git a/package.json b/package.json index 61e05492..73cbc62f 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ }, "keywords": [], "devDependencies": { + "del": "^1.1.1", "es6-module-transpiler-globals-formatter": "^0.1.1", "gulp": "^3.8.10", "gulp-6to5": "^3.0.0", @@ -27,7 +28,6 @@ "gulp-jshint": "^1.6.3", "gulp-load-plugins": "^0.8.0", "gulp-rename": "^1.2.0", - "gulp-rimraf": "^0.1.0", "gulp-sourcemaps": "^1.3.0", "gulp-uglify": "^1.1.0", "gulp-util": "^3.0.3",