Created
May 21, 2014 03:09
-
-
Save teamrun/56452c1fd6b9904f60ff to your computer and use it in GitHub Desktop.
gulp-changd make coffee compile more efficient
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 changed = require('gulp-changed') | |
| var coffee = require('gulp-coffee') | |
| gulp.task( 'coffee', function(){ | |
| gulp.src( 'coffee/src/*.coffee' ) | |
| // pass dest path and file extention for gulp-changed to check if changed | |
| .pipe( changed('compiled/js/dest', {extention: '.js'}) ) | |
| .pipe( coffee( {bare:true} )) | |
| .pipe( gulp.dest( 'compiled/js/dest' ) ) | |
| } ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment