Skip to content

Instantly share code, notes, and snippets.

@Plou
Created October 21, 2014 13:04
Show Gist options
  • Select an option

  • Save Plou/7cc85d33f40a5f00a086 to your computer and use it in GitHub Desktop.

Select an option

Save Plou/7cc85d33f40a5f00a086 to your computer and use it in GitHub Desktop.
Use gulp to compile a coffee file
var gulp = require('gulp');
var gutil = require('gulp-util');
var coffee = require('gulp-coffee');
gulp.task('default', function() {
gulp.src('./src/*.coffee')
.pipe(coffee({bare: true})
.on('error', gutil.log))
.pipe(gulp.dest('./'))
});
gulp.watch('src/*.coffee', ['default']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment