Created
October 21, 2014 13:04
-
-
Save Plou/7cc85d33f40a5f00a086 to your computer and use it in GitHub Desktop.
Use gulp to compile a coffee file
This file contains hidden or 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 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