Last active
November 19, 2015 00:07
-
-
Save mathewmariani/19c0342c0c0fac921b4d 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 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