 
 production = process.env.NODE_ENV is 'production'
 
-gulp.task 'coffee', ->
+gulp.task 'scripts', ->
 
   bundle = browserify('./src/coffee/main.coffee')
 

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

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

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

gulp.task "watch", ->
  reloadServer.listen 35729

  gulp.watch 'src/jade/*.jade', ['templates']
  gulp.watch 'src/stylus/*.styl', ['styles']
  gulp.watch 'src/assets/**/*.*', ['assets']

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

