   .pipe(rename({extname: '.min.js'}))
   .pipe(gulp.dest('./'))
 
-gulp.task 'build', ['gfi']
+gulp.task 'build', ['js']
 gulp.task 'default', ['build']

  .pipe(source('growthbeat.js'))
  .pipe(gulp.dest('./'))

gulp.task 'gfi', ['html', 'css', 'js'], ->
  gulp.src('lib/**/*.js')
  .pipe(gfi({
      '/* STYLES */': 'lib/growthmessage/styles/styles.css'
    }))
  .pipe(gulp.dest('lib/'));

gulp.task 'uglify', () ->
  gulp.src('growthbeat.js')

  .pipe(minifyCss())
  .pipe(gulp.dest('lib/'))

gulp.task 'gfi', ['html', 'css', 'ts'], ->
  gulp.src('lib/**/*.js')
  .pipe(gfi({
      '/* STYLES */': 'lib/growthmessage/styles/styles.css'
    }))
  .pipe(gulp.dest('lib/'));

gulp.task 'js', ['gfi'], ->
  browserify
    entries: ['./lib/index.js']
    extensions: ['.js']
