 
 gulp.task 'coffeeify', ->
 
-  gulp
-    .src "#{paths.appScripts}/**/*.coffee"
-    .pipe plugins.coffeeify()
+  bundledStream = browserify.bundle()
+    entries    : "#{paths.appScripts}/game.coffee"
+    debug      : on
+    transform  : ['coffeeify']
+    extensions : ['.coffee']
+
+  bundledStream
+    .pipe source "#{paths.appScripts}/game.coffee"
+    .pipe buffer()
+    .pipe plugins.rename 'game.js'
     .pipe gulp.dest "#{paths.buildDir}/scripts"
 
 

del            = require 'del'
gulp           = require 'gulp'
watch          = require 'gulp-watch';
plugins        = require('gulp-load-plugins')()
browserSync    = require 'browser-sync'
mainBowerFiles = require 'main-bower-files'


    path = path.replace '/app/', '/build/'
    del [path], ->


  watchFiles = (path, gulpTask) ->

    gulp.watch [path], (file) ->
      gulp.start gulpTask
      deleteFileFromBuildDir file.type, file.path
