         .on 'end', cb
     # return null so that cb fires correctly
     null
-        
+
 gulp.task 'coveralls', [ 'test' ], ->
   gulp.src './coverage/lcov.info'
     .pipe coveralls()


handleCompileError = (e) ->
  if e.name is 'SyntaxError'
    gutil.log e.stack 
  else 
    gutil.log e.message
  @emit 'end'


    .pipe gulp.dest LIBDIR

gulp.task 'standalone', ->
  browserify ENTRY, { extensions: [ '.coffee' ], standalone: NAME }
    .transform 'coffeeify'
    .bundle().on 'error', gutil.log
    .pipe source DIST+'.js'
    .pipe gulp.dest DISTDIR
    .pipe rename DIST+'.min.js'
