From e7280686ac9b68477ca96831645fc77675e8d0b8 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 18 Feb 2015 16:53:48 +0100 Subject: [PATCH] remove gulp-cache on jade --- gulpfile.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 252cb353..6d0756d5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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)); });