delete tmp only in deploy and default

stable
Juanfran 2015-06-01 14:28:37 +02:00
parent 9d11dd407d
commit 9f2a8a1cad
1 changed files with 16 additions and 12 deletions

View File

@ -435,6 +435,10 @@ gulp.task("copy-extras", function() {
gulp.task("copy", ["copy-fonts", "copy-images", "copy-images-plugins", "copy-plugin-templates", "copy-svg", "copy-extras"]);
gulp.task("delete-tmp", function() {
del.sync(paths.tmp);
});
gulp.task("express", function() {
var express = require("express");
var app = express();
@ -470,10 +474,8 @@ gulp.task("watch", function() {
gulp.watch(paths.fonts, ["copy-fonts"]);
});
del.sync(paths.tmp);
gulp.task("deploy", function(cb) {
runSequence("clear", [
runSequence("clear", "delete-tmp", [
"copy",
"jade-deploy",
"app-deploy",
@ -482,7 +484,8 @@ gulp.task("deploy", function(cb) {
], cb);
});
//The default task (called when you run gulp from cli)
gulp.task("default", [
gulp.task("default", function(cb) {
runSequence("clear", "delete-tmp", [
"copy",
"styles",
"app-watch",
@ -490,4 +493,5 @@ gulp.task("default", [
"jade-deploy",
"express",
"watch"
]);
], cb);
});