 gulp    = require 'gulp'
 argv    = require('minimist') process.argv
-nodemon = require 'gulp-nodemon'
 req     = (module) -> require "./gulptasks/#{module}"
 
 # CONSTANTS


watchersArray = [ 'watch-styles', 'watch-coffee', 'watch-index' ]

gulp.task 'watch-server', -> watchLogger 'cyan', gulp.watch SERVER_PATH, ['serve']

gulp.task 'watch-styles', -> watchLogger 'cyan', gulp.watch STYLES_PATH, ['styles-only']

gulp.task 'watch-coffee', -> watchLogger 'cyan', gulp.watch COFFEE_PATH, ['coffee']


gulp.task 'build', ['build-kd', 'sprites', 'styles', 'coffee', 'index']

gulp.task 'watch', ['build'].concat watchersArray

gulp.task 'default', ['watch']
