remove gulp-cache on jade

stable
Juanfran 2015-02-18 16:53:48 +01:00
parent 323342e013
commit e7280686ac
1 changed files with 8 additions and 6 deletions

View File

@ -32,13 +32,13 @@ paths.tmp = "tmp/";
paths.extras = "extras/";
paths.jade = [
paths.app + "**/*.jade",
"!" + paths.app + "partial/includes/**",
paths.app + "**/*.jade"
];
paths.htmlPartials = [
paths.tmp + "partials/**/*.html",
paths.tmp + "plugins/**/*.html"
paths.tmp + "plugins/**/*.html",
"!" + paths.tmp + "partials/includes/**/*.html"
];
paths.images = paths.app + "images/**/*";
@ -115,20 +115,22 @@ var isDeploy = process.argv[process.argv.length - 1] == "deploy";
##############################################################################
*/
var jadeIncludes = paths.app +'partials/includes/**/*';
gulp.task("jade", function() {
return gulp.src(paths.jade)
.pipe(plumber())
.pipe(cached("jade"))
.pipe(cache(jade({pretty: true, locals:{v:(new Date()).getTime()}})))
.pipe(jade({pretty: true, locals:{v:(new Date()).getTime()}}))
.pipe(gulp.dest(paths.tmp));
});
gulp.task("jade-inheritance", function() {
return gulp.src(paths.jade)
.pipe(plumber())
.pipe(cached('jade'))
.pipe(cached("jade"))
.pipe(jadeInheritance({basedir: "./app/"}))
.pipe(cache(jade({pretty: true, locals:{v:(new Date()).getTime()}})))
.pipe(jade({pretty: true, locals:{v:(new Date()).getTime()}}))
.pipe(gulp.dest(paths.tmp));
});