Skip to content

Commit

Permalink
Docs: Update syntax in readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Dec 31, 2017
1 parent 9fda7b4 commit f787ba5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ gulp.task('clean', function() {
return del(['build']);
});

gulp.task('scripts', ['clean'], function() {
gulp.task('scripts', function() {
// Minify and copy all JavaScript (except vendor scripts)
// with sourcemaps all the way down
return gulp.src(paths.scripts)
Expand All @@ -60,7 +60,7 @@ gulp.task('scripts', ['clean'], function() {
});

// Copy all static images
gulp.task('images', ['clean'], function() {
gulp.task('images', function() {
return gulp.src(paths.images)
// Pass in options to the task
.pipe(imagemin({optimizationLevel: 5}))
Expand All @@ -69,12 +69,13 @@ gulp.task('images', ['clean'], function() {

// Rerun the task when a file changes
gulp.task('watch', function() {
gulp.watch(paths.scripts, ['scripts']);
gulp.watch(paths.images, ['images']);
gulp.watch(paths.scripts, 'scripts');
gulp.watch(paths.images, 'images');
});

gulp.task('all', gulp.parallel('watch', 'scripts', 'images'));
// The default task (called when you run `gulp` from cli)
gulp.task('default', ['watch', 'scripts', 'images']);
gulp.task('default', gulp.series('clean', 'all'));
```

## Incremental Builds
Expand Down

0 comments on commit f787ba5

Please sign in to comment.