diff --git a/src/gulpfile.js b/src/gulpfile.js index 46e2f2a2..b31a2b81 100644 --- a/src/gulpfile.js +++ b/src/gulpfile.js @@ -216,8 +216,8 @@ gulp.task('pack-sources', ['composer-install'], function() { .pipe(gulp.dest('release')); }); -// Builds all the sources -gulp.task('default', function(callback) { +// Performs all tasks in the correct order. +gulp.task('prepare-release', function(callback) { runSequence( ['phpcs', 'js', 'chat-styles', 'page-styles', 'generate-pot'], 'pack-sources', @@ -225,6 +225,15 @@ gulp.task('default', function(callback) { ); }); +// Builds the sources +gulp.task('default', function(callback) { + runSequence( + ['js', 'chat-styles', 'page-styles'], + 'pack-sources', + callback + ); +}); + /** * Loads and prepare js file for a client side application with the specified