         .replace /([a-z]*).coffee/, 'test/$1_test.coffee'
       test src
 
-gulp.task 'server', ['samples:watch'], ->
+gulp.task 'server', ['watch'], ->
   app = require './samples/server'
   app.set 'port', process.env.PORT || 3000
 

  gulp.watch 'test/*.coffee', (e)->
    test e.path unless e.type == 'deleted'

gulp.task 'samples:watch', ['watch', 'samples:test'], ->
  gulp.watch 'lib/*.coffee', ['samples:test']
  gulp.watch 'samples/test/*.coffee', (e)->
    unless e.type == 'deleted'
      src = e.path.replace /\\/g, '/'

    @emit 'end'

gulp.task 'test', ->
  test [
    'test/**/*.coffee'
    'samples/test/**/*.coffee'
  ]

browserify = require 'browserify'
exorcist = require 'exorcist'
