delete tmp only in deploy and default
parent
9d11dd407d
commit
9f2a8a1cad
28
gulpfile.js
28
gulpfile.js
|
@ -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("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() {
|
gulp.task("express", function() {
|
||||||
var express = require("express");
|
var express = require("express");
|
||||||
var app = express();
|
var app = express();
|
||||||
|
@ -470,10 +474,8 @@ gulp.task("watch", function() {
|
||||||
gulp.watch(paths.fonts, ["copy-fonts"]);
|
gulp.watch(paths.fonts, ["copy-fonts"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
del.sync(paths.tmp);
|
|
||||||
|
|
||||||
gulp.task("deploy", function(cb) {
|
gulp.task("deploy", function(cb) {
|
||||||
runSequence("clear", [
|
runSequence("clear", "delete-tmp", [
|
||||||
"copy",
|
"copy",
|
||||||
"jade-deploy",
|
"jade-deploy",
|
||||||
"app-deploy",
|
"app-deploy",
|
||||||
|
@ -482,12 +484,14 @@ gulp.task("deploy", function(cb) {
|
||||||
], cb);
|
], cb);
|
||||||
});
|
});
|
||||||
//The default task (called when you run gulp from cli)
|
//The default task (called when you run gulp from cli)
|
||||||
gulp.task("default", [
|
gulp.task("default", function(cb) {
|
||||||
"copy",
|
runSequence("clear", "delete-tmp", [
|
||||||
"styles",
|
"copy",
|
||||||
"app-watch",
|
"styles",
|
||||||
"jslibs-watch",
|
"app-watch",
|
||||||
"jade-deploy",
|
"jslibs-watch",
|
||||||
"express",
|
"jade-deploy",
|
||||||
"watch"
|
"express",
|
||||||
]);
|
"watch"
|
||||||
|
], cb);
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue