Skip to content

Instantly share code, notes, and snippets.

@mathewmariani
Last active November 19, 2015 00:07
Show Gist options
  • Save mathewmariani/19c0342c0c0fac921b4d to your computer and use it in GitHub Desktop.
Save mathewmariani/19c0342c0c0fac921b4d to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var coffee = require('gulp-coffee');
// @NOTE compile coffeescript into javascript
gulp.task('coffee', function () {
gulp.src('./_coffee/**/*.coffee')
.pipe(coffee({bare: true}))
.pipe(gulp.dest('./js/'))
});
// @NOTE watch for changes in coffeescript files
gulp.task('watch', function () {
gulp.watch('_coffee/**/*.coffee', ['coffee']);
});
// @NOTE default gulp task
gulp.task('default', ['coffee']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment