var gulp  = require('gulp')
var shell = require('./')

var paths = {
  js: ['*.js', 'test/*.js']
}

gulp.task('test', shell.task('mocha -R spec -r should'))

gulp.task('coverage', ['test'], shell.task('istanbul cover _mocha -- -R spec'))

gulp.task('coveralls', ['coverage'], shell.task('cat coverage/lcov.info | coveralls'))

gulp.task('lint', shell.task([
  'jshint ' + paths.js.join(' '),
  'jscs '   + paths.js.join(' '),
]))

gulp.task('default', ['coverage', 'lint'])

gulp.task('watch', function () {
  // Keep watch running on errors.
  gulp.on('err', function () {})

  gulp.watch(paths.js, ['default'])
})

@@ -505,77 +505,8 @@
 ) %7B%0A
-  // Keep watch running on errors.%0A  gulp.on('err', function () %7B%7D)%0A%0A
   gu

Remove dirty hack for keeping watch running on errors