     root: ['./dist/', './bower_components/', './node_modules/']
     livereload: true
 
-gulp.task 'build', ['assets', 'coffee', 'js', 'sass', 'html', 'usemin']
+gulp.task 'build', ['assets', 'coffee', 'browserify', 'sass', 'html', 'usemin']
 
-gulp.task 'build:dev', ['assets', 'coffee', 'js', 'sass', 'html']
+gulp.task 'build:dev', ['assets', 'coffee', 'browserify', 'sass', 'html']
 
 gulp.task 'dev', ['build:dev', 'server', 'watch']
 


jsBundleFile = 'app-js.js'

gulp.task 'js', ->
  bundler.bundle()
    .pipe(source(jsBundleFile))
    .pipe(buffer())
    .pipe(gulpif(!argv.production, sourcemaps.init({loadMaps: true})))
      .pipe(gulpif(argv.production, uglify()))
    .pipe(gulpif(!argv.production, sourcemaps.write('./')))
    .pipe(gulp.dest('./dist/assets/js'))

gulp.task 'sass', ->
  gulp.src ['./app/**/*.scss']

    .pipe gulp.dest './dist/'
    .pipe connect.reload()


gulp.task 'watch', ['server'], ->
  gulp.watch ['./app/**/*.coffee'], ['coffee']
  gulp.watch ['./app/**/*.scss'], ['sass']
  gulp.watch ['./index.html', './app/**/*.html'], ['html']

gulp.task 'assets', ->
