Skip to content

Commit

Permalink
Name gulpfile callbacks consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller committed Jun 21, 2023
1 parent f3a59cb commit f187fea
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions nginx/public/node/frontend/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ gulp.task('bundle:js', function (cb)
getWebpackCompiler().run(onBundleComplete);
});

gulp.task('clean:js', function (done)
gulp.task('clean:js', function (cb)
{
del(['../static/js/', './.tmp'], {force: true}, function (err)
{
if (err)
done(err);
cb(err);
else
done();
cb();
});
});

Expand Down Expand Up @@ -148,28 +148,28 @@ gulp.task('bundle:css', function ()
.pipe(gulpif(isCssFile, livereload())); // Don't reload for sourcemaps
});

gulp.task('clean:css', function (done)
gulp.task('clean:css', function (cb)
{
del('../static/css/', {force: true}, function (err)
{
if (err)
done(err);
cb(err);
else
done();
cb();
});
});

gulp.task('rebuild:css', gulp.series('bundle:css'));

gulp.task('build:css', gulp.series('clean:css','bundle:css'), function (done)
gulp.task('build:css', gulp.series('clean:css','bundle:css'), function (cb)
{
done();
cb();
});
/*
* Watching
*/

gulp.task('watch', function (done) // eslint-disable-line no-unused-vars
gulp.task('watch', function (cb) // eslint-disable-line no-unused-vars
{
// Never call the callback: this runs forever

Expand Down

0 comments on commit f187fea

Please sign in to comment.