Extract release preparation stuff from default gulp task

Fixes #62
This commit is contained in:
Dmitriy Simushev 2014-08-28 08:38:07 +00:00
parent da54de32b9
commit ee492a0c23

View File

@ -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