Skip to content

Commit 39cfe1f

Browse files
committed
refactor(gulp): refactor callbacks
1 parent 7cb111d commit 39cfe1f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/templates/gulpfile.babel.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ gulp.task('lint:scripts:server', () => gulp.src(paths.server.scripts).pipe(lintS
176176

177177
gulp.task('clean:tmp', () => gulp.src('.tmp', {read: false}).pipe(plugins.clean()));
178178

179-
gulp.task('start:client', [<% if(filters.coffee) { %>'coffee', <% } %>'styles'], (callback) => {
179+
gulp.task('start:client', [<% if(filters.coffee) { %>'coffee', <% } %>'styles'], cb => {
180180
whenServerReady(() => {
181181
open('http://localhost:' + config.port);
182-
callback();
182+
cb();
183183
});
184184
});
185185

@@ -216,15 +216,15 @@ gulp.task('watch', () => {
216216
gulp.watch('bower.json', ['bower']);
217217
});
218218

219-
gulp.task('serve', (callback) => {
219+
gulp.task('serve', cb => {
220220
runSequence('clean:tmp',
221221
['lint:scripts'],
222222
'inject:js',
223223
'inject:css',
224224
'bower',
225225
['start:server', 'start:client'],
226226
'watch',
227-
callback);
227+
cb);
228228
});
229229

230230
gulp.task('test:server', () => {
@@ -255,10 +255,10 @@ gulp.task('bower', () => {
255255
* Build
256256
********************/
257257

258-
gulp.task('build', (callback) => {
258+
gulp.task('build', cb => {
259259
runSequence('clean:dist',
260260
['images', 'copy:extras', 'copy:fonts', 'copy:server', 'client:build'],
261-
callback);
261+
cb);
262262
});
263263

264264
gulp.task('clean:dist', () => gulp.src('dist', {read: false}).pipe(plugins.clean()));

0 commit comments

Comments
 (0)