Last active
October 31, 2016 13:03
-
-
Save 5alamander/20ef6dac7ca257e408d65585edd13d96 to your computer and use it in GitHub Desktop.
customize gulp file
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
through = require('through2') | |
gulp.task 'src', -> | |
gulp.src './src/*.coffee' | |
.pipe coffee({bare: true}) | |
.pipe gulp.dest('./dest/') | |
.pipe through.obj((file, encoding, callback) -> | |
callback(null, doSomethingWithTheFile(file)) | |
) | |
.on 'error', gutil.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment