remove gulp-cache on jade
parent
323342e013
commit
e7280686ac
14
gulpfile.js
14
gulpfile.js
|
@ -32,13 +32,13 @@ paths.tmp = "tmp/";
|
||||||
paths.extras = "extras/";
|
paths.extras = "extras/";
|
||||||
|
|
||||||
paths.jade = [
|
paths.jade = [
|
||||||
paths.app + "**/*.jade",
|
paths.app + "**/*.jade"
|
||||||
"!" + paths.app + "partial/includes/**",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
paths.htmlPartials = [
|
paths.htmlPartials = [
|
||||||
paths.tmp + "partials/**/*.html",
|
paths.tmp + "partials/**/*.html",
|
||||||
paths.tmp + "plugins/**/*.html"
|
paths.tmp + "plugins/**/*.html",
|
||||||
|
"!" + paths.tmp + "partials/includes/**/*.html"
|
||||||
];
|
];
|
||||||
|
|
||||||
paths.images = paths.app + "images/**/*";
|
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() {
|
gulp.task("jade", function() {
|
||||||
return gulp.src(paths.jade)
|
return gulp.src(paths.jade)
|
||||||
.pipe(plumber())
|
.pipe(plumber())
|
||||||
.pipe(cached("jade"))
|
.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));
|
.pipe(gulp.dest(paths.tmp));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("jade-inheritance", function() {
|
gulp.task("jade-inheritance", function() {
|
||||||
return gulp.src(paths.jade)
|
return gulp.src(paths.jade)
|
||||||
.pipe(plumber())
|
.pipe(plumber())
|
||||||
.pipe(cached('jade'))
|
.pipe(cached("jade"))
|
||||||
.pipe(jadeInheritance({basedir: "./app/"}))
|
.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));
|
.pipe(gulp.dest(paths.tmp));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue