mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-30 01:46:40 +03:00
Clean up before release preparation
This commit is contained in:
parent
0f8b5da18a
commit
a4ce7ffea7
@ -7,6 +7,7 @@ var fs = require('fs'),
|
|||||||
lodash = require('lodash'),
|
lodash = require('lodash'),
|
||||||
PoFile = require('pofile'),
|
PoFile = require('pofile'),
|
||||||
strftime = require('strftime'),
|
strftime = require('strftime'),
|
||||||
|
del = require('del'),
|
||||||
bower = require('bower'),
|
bower = require('bower'),
|
||||||
gulp = require('gulp'),
|
gulp = require('gulp'),
|
||||||
uglify = require('gulp-uglify'),
|
uglify = require('gulp-uglify'),
|
||||||
@ -44,6 +45,21 @@ var config = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Cleans all built files
|
||||||
|
gulp.task('clean', function(callback) {
|
||||||
|
del([
|
||||||
|
'release',
|
||||||
|
'composer.lock',
|
||||||
|
config.phpVendorPath,
|
||||||
|
config.jsVendorPath,
|
||||||
|
config.jsPath + '/compiled/**/*.*',
|
||||||
|
'!' + config.jsPath + '/compiled/.keep',
|
||||||
|
config.chatStylesPath + '/default/templates_compiled/client_side/*.js',
|
||||||
|
config.chatStylesPath + '/default/js/compiled/*.js',
|
||||||
|
config.pageStylesPath + '/default/templates_compiled/client_side/*.js'
|
||||||
|
], callback);
|
||||||
|
});
|
||||||
|
|
||||||
// Checks all PHP files with PHP Code Sniffer.
|
// Checks all PHP files with PHP Code Sniffer.
|
||||||
gulp.task('phpcs', ['composer-install-dev'], function() {
|
gulp.task('phpcs', ['composer-install-dev'], function() {
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
@ -323,6 +339,7 @@ gulp.task('pack-sources', ['composer-install', 'bower-install'], function() {
|
|||||||
// Performs all tasks in the correct order.
|
// Performs all tasks in the correct order.
|
||||||
gulp.task('prepare-release', function(callback) {
|
gulp.task('prepare-release', function(callback) {
|
||||||
runSequence(
|
runSequence(
|
||||||
|
'clean',
|
||||||
['phpcs', 'js', 'chat-styles', 'page-styles', 'generate-pot'],
|
['phpcs', 'js', 'chat-styles', 'page-styles', 'generate-pot'],
|
||||||
'pack-sources',
|
'pack-sources',
|
||||||
callback
|
callback
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
"pofile": "~0.2.12",
|
"pofile": "~0.2.12",
|
||||||
"lodash": "~2.4.1",
|
"lodash": "~2.4.1",
|
||||||
"strftime": "~0.8.2",
|
"strftime": "~0.8.2",
|
||||||
|
"del": "~1.1.1",
|
||||||
"event-stream": "~3.2.1"
|
"event-stream": "~3.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user