Split some main gulpfile calls for better readability

This commit is contained in:
Dan Mindru 2017-07-14 14:11:31 +02:00 committed by GitHub
parent 9f22e6d4f4
commit a6c2561d1e
1 changed files with 15 additions and 2 deletions

View File

@ -9,7 +9,10 @@ var options = {
dist: 'dist',
workingDir: 'tmp',
src: function plumbedSrc(){
return gulp.src.apply(gulp, arguments).pipe(plumber());
return gulp
.src
.apply(gulp, arguments)
.pipe(plumber());
}
};
@ -27,4 +30,14 @@ fs
});
/** By default templates will be built into '/dist', then gulp will watch for changes in '/src'. */
gulp.task('default', ['dupe', 'less', 'sass', 'postcss', 'lint', 'build']);
gulp.task(
'default',
[
'dupe',
'less',
'sass',
'postcss',
'lint',
'build'
]
);