fix(gulp): add default task · yeoman/generator-angular@5af573c

This repository was archived by the owner on Mar 26, 2018. It is now read-only.

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -164,12 +164,6 @@ gulp.task('bower', function () {

164164

// Build //

165165

///////////

166166
167-

gulp.task('build', function (callback) {

168-

runSequence('clean:dist',

169-

['images', 'copy:extras', 'copy:fonts', 'client:build'],

170-

callback);

171-

});

172-
173167

gulp.task('clean:dist', function () {

174168

rimraf('./dist', cb);

175169

});

@@ -218,3 +212,9 @@ gulp.task('copy:fonts', function () {

218212

return gulp.src(yeoman.app + '/fonts/**/*')

219213

.pipe(gulp.dest(yeoman.dist + '/fonts'));

220214

});

215+
216+

gulp.task('build', ['clean:dist'], function () {

217+

runSequence(['images', 'copy:extras', 'copy:fonts', 'client:build');

218+

});

219+
220+

gulp.task('default', ['build']);