 port = 3000
 
 
+# Direct errors to notification center
+handleError = ->
+   plumber errorHandler: notify.onError "Error: <%= error.message %>"
+
 
 
 #--------------------------------------------------------


gulp.task "browserify-dev", ->
   gulp.src "#{sources}/scripts/app.coffee", read: false
      .pipe plumber()
      .pipe browserify
         transform:  ["handleify", "coffeeify"]
         extensions: [".coffee", ".js"]

   gulp.start "browserify-dev", "browserify-test", "concat"

   gulp.src "#{test}/html/index.html"
      .pipe handleError()
      .pipe mochaPhantom()


