Created
September 28, 2015 04:04
-
-
Save leb2/67725baa020a548955a0 to your computer and use it in GitHub Desktop.
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 shell = require('gulp-shell'); | |
gulp.task('latex', function() { | |
return gulp.src('*.tex') | |
.pipe(shell(["pdflatex -interaction=nonstopmode <%= file.path %>"]).on('error', function(){})) | |
.pipe(gulp.dest('./')) | |
}); | |
gulp.task('watch', function() { | |
gulp.watch('*.tex', ['latex']); | |
}); | |
gulp.task('default', ['latex']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment