 gulp.task "watch", ->
   reloadServer.listen 35729
 
-  gulp.watch "src/jade/*.jade", ["jade"]
-  gulp.watch "src/stylus/*.styl", ["stylus"]
-  gulp.watch "src/assets/**/*.*", ["assets"]
+  gulp.watch 'src/jade/*.jade', ['templates']
+  gulp.watch 'src/stylus/*.styl', ['styles']
+  gulp.watch 'src/assets/**/*.*', ['assets']
 
   bundle = watchify('./src/coffee/main.coffee')
 


production = process.env.NODE_ENV is 'production'

gulp.task 'coffee', ->

  bundle = browserify('./src/coffee/main.coffee')


  build
    .pipe(gulp.dest('./public/js/'))

gulp.task 'templates', ->
  gulp
    .src('src/jade/*.jade')
    .pipe(jade(pretty: not production))
    .pipe(gulp.dest('public/'))
    .pipe livereload(reloadServer)

gulp.task 'styles', ->
  styles = gulp
    .src('src/stylus/style.styl')
    .pipe(stylus({set: ['include css']}))
