Skip to content

Commit

Permalink
#5 Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Voronov committed Apr 3, 2017
1 parent 4b579a0 commit 5ff6e1c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Here is our task in gulp file:

````javascript

var del = require('del');
var rimraf = require('rimraf');
var path = require('path');
var gulp = require('gulp');
var babel = require('gulp-babel');
Expand All @@ -54,7 +54,7 @@ Here is our task in gulp file:
repo.task('clean', function clean(pkg, done) {
gutil.log('Cleaning', pkg.name(), 'package');

del(path.join(pkg.location(), '/dist'), done);
rimraf(path.join(pkg.location(), '/dist'), done);
});

repo.task('build', ['clean'], function build(pkg) {
Expand Down Expand Up @@ -169,11 +169,8 @@ We can use [``gulp-tasks-registrator``](https://github.com/ziflex/gulp-tasks-reg
'gulp',
'gulp-*',
'gulp.*',
'del'
],
rename: {
del: 'delete'
}
'rimraf'
]
});

RegisterTasks({
Expand All @@ -196,7 +193,7 @@ We can use [``gulp-tasks-registrator``](https://github.com/ziflex/gulp-tasks-reg

module.exports = function factory($) {
return function task(pkg, done) {
$.del(path.join(pkg.location(), '/dist'), done);
$.rimraf(path.join(pkg.location(), '/dist'), done);
};
}

Expand Down

0 comments on commit 5ff6e1c

Please sign in to comment.