Skip to content

Instantly share code, notes, and snippets.

@stoeffel
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save stoeffel/9007f68c2a63f0c42e42 to your computer and use it in GitHub Desktop.

Select an option

Save stoeffel/9007f68c2a63f0c42e42 to your computer and use it in GitHub Desktop.
reactive-gulp
var gulp = require('reactive-gulp')(require('gulp'));
gulp.task('default', '**/*.js')
.pipe(mocha())
.pipe(uglify())
.dest('./dist/');
// is the same as
var gulp = require('gulp');
gulp.task('default', function() {
gulp.src('**/*.js')
.pipe(mocha())
.pipe(uglify())
.pipe(gulp.dest('./dist/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment