Skip to content

Instantly share code, notes, and snippets.

@teamrun
Created May 21, 2014 03:09
Show Gist options
  • Select an option

  • Save teamrun/56452c1fd6b9904f60ff to your computer and use it in GitHub Desktop.

Select an option

Save teamrun/56452c1fd6b9904f60ff to your computer and use it in GitHub Desktop.
gulp-changd make coffee compile more efficient
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