add gulp task of cleaning cache

This commit is contained in:
printempw 2016-12-30 16:18:13 +08:00
parent 6a8b1df491
commit 866ce9a04f

View File

@ -2,7 +2,7 @@
* @Author: prpr
* @Date: 2016-07-21 13:38:26
* @Last Modified by: printempw
* @Last Modified time: 2016-12-17 20:36:36
* @Last Modified time: 2016-12-30 16:15:43
*/
var gulp = require('gulp'),
@ -94,10 +94,8 @@ gulp.task('uglify', function() {
.pipe(gulp.dest('./resources/assets/dist/js'));
});
// release
gulp.task('zip', function() {
// delete cache files
del([
function clearCache() {
return del([
'storage/logs/*',
'storage/debugbar/*',
'storage/update_cache/*',
@ -106,6 +104,16 @@ gulp.task('zip', function() {
'storage/framework/sessions/*',
'storage/framework/views/*'
]);
}
// delete cache files
gulp.task('clear', function() {
clearCache();
});
// release
gulp.task('zip', function() {
clearCache();
return gulp.src([
'**/*.*',