Skip to content

Instantly share code, notes, and snippets.

@leb2
Created September 28, 2015 04:04
Show Gist options
  • Save leb2/67725baa020a548955a0 to your computer and use it in GitHub Desktop.
Save leb2/67725baa020a548955a0 to your computer and use it in GitHub Desktop.
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