jade -w index.jade
// JADE
function log(error) {
console.log([
'',
"----------ERROR MESSAGE START----------",
("[" + error.name + " in " + error.plugin + "]"),
error.message,
"----------ERROR MESSAGE END----------",
''
].join('\n'));
this.end();
}
gulp.task('jade', function() {
return gulp.src(paths.src.jade)
.pipe(jade({
pretty: true,
})).on('error', log)
.pipe(gulp.dest('src/'))
.pipe(reload({
stream: true
}));
});
gulp.task('jade', function() {
gulp.src(['./source/**/*.jade', '!./source/partials/*.jade'])
.pipe(jade({
pretty: true
}))
.on('error', console.log)
.pipe(prettify({
indent_char: ' ',
indent_size: 1,
indent_with_tabs: true
}))
.pipe(gulp.dest('./public/'))
.pipe(livereload(server));
});