var gulp = require('gulp');
var mocha = require('gulp-mocha');
var coffee = require('gulp-coffee');
var concat = require('gulp-concat');
require('coffee-script/register');



gulp.task('test', function(){
  return gulp.src('./test/**/*.coffee')
             .pipe(mocha());
});

gulp.task('bundle', function(done) {
  gulp.src('./src/**/*.coffee')
    .pipe(coffee({bare: true}))
    .pipe(gulp.dest('lib'));
  done();
});

gulp.task('watch', function() {
  gulp.watch([ '**/*.coffee' ], [ 'bundle', 'test' ]);
});

gulp.task('default', ['watch']);

@@ -185,16 +185,28 @@
 ('test',
+ %5B'bundle'%5D,
  functio
@@ -317,18 +317,21 @@
 ion(
-done
 ) %7B%0A  
+return 
 gulp
@@ -421,18 +421,8 @@
 ));%0A
-  done();%0A
 %7D);%0A

Set 'bundle' as a dependency to 'test'