Skip to content

Instantly share code, notes, and snippets.

@sh4869
Last active November 17, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sh4869/cfd92cd12e0e4f1accee to your computer and use it in GitHub Desktop.
Save sh4869/cfd92cd12e0e4f1accee to your computer and use it in GitHub Desktop.
Gulp file for haml in Windows; please see http://sh4869.hatenablog.com/entry/2015/11/17/200237
var gulp = require('gulp');
var haml = require('gulp-ruby-haml');
gulp.task('haml', function() {
gulp.src('./*.haml')
.pipe(haml({encodings: "UTF-8"}))
.pipe(gulp.dest('./'));
});
gulp.task('watch',function(){
gulp.watch('./*.haml',['haml']);
});
gulp.task('default',['haml','watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment