Last active
August 29, 2015 14:15
-
-
Save yukirin/2a85162da72cf1af426a to your computer and use it in GitHub Desktop.
gulpでpyjadeを使ったコンパイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var filelog = require('gulp-filelog'); | |
var pyjade = require('gulp-pyjade'); | |
//gulp-starter | |
//https://github.com/greypants/gulp-starter/blob/master/gulp/util/handleErrors.js | |
var handleErrors = require('handleErrors.js') | |
gulp.task('pyjade', function() { | |
return gulp.src('./hoge/**/*.jade') | |
.pipe(pyjade({engine: 'tornado'})) | |
.on('error', handleErrors) | |
.pipe(gulp.dest('./fuga')) | |
.pipe(filelog()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment