           .pipe notify message: 'SERVER reloaded'
         ), 1000
 
-  gulp.watch 'client/*.coffee', gulpsync.sync ['recompile', 'reload']
-  gulp.watch 'css/main.css', gulpsync.sync ['css', 'reload']
-  gulp.watch 'views/*', ['reload']
-
 gulp.task 'recompile', gulpsync.sync [ ['lint', 'coffee'], 'js']
 gulp.task 'default', ['recompile', 'css', 'watch']

autoprefixer = require 'gulp-autoprefixer'
coffee = require 'gulp-coffee'
coffeelint = require 'gulp-coffeelint'
concat = require 'gulp-concat'
gulp = require 'gulp'
gulpsync = require('gulp-sync')(gulp)
gutil = require 'gulp-util'
minifyCSS = require 'gulp-minify-css'
notify = require 'gulp-notify'
plumber = require 'gulp-plumber'
uglify = require 'gulp-uglify'
nodemon = require 'gulp-nodemon'
livereload = require 'gulp-livereload'

gulp.task 'lint', ->
  gulp.src ['*.coffee', 'client/*.coffee']


gulp.task 'watch', ->
  livereload.listen()
  gulp.watch 'client/*.coffee', gulpsync.sync ['recompile', 'reload']
  gulp.watch 'css/main.css', gulpsync.sync ['css', 'reload']
  gulp.watch 'views/*', ['reload']
  nodemon script: 'server.node.coffee', ext: 'node.coffee', tasks: ['lint']
    .on 'restart', ->
      setTimeout (->
        gulp.src 'server.node.coffee'
