var gulp = require('gulp')
  , browserify = require('browserify')
  , transform = require('vinyl-transform')
  , sass = require('gulp-sass')
  , deploy = require('gulp-gh-pages')
  , concat = require('gulp-concat')
  , uglify = require('gulp-uglify')
  , minifycss = require('gulp-minify-css')
  , imagemin = require('gulp-imagemin')
  , pngquant = require('imagemin-pngquant');

// TODO: FIX THIS!
// Browserify Task
// gulp.task('browserify', function () {
//   var browserified = transform(function (filename) {
//     var b = browserify(filename);
//     return b.bundle();
//   });

//   return gulp.src(['src/js/main.js'])
//     .pipe(browserify)
//     .pipe(uglify())
//     .pipe(gulp.dest('js'));
// });

// Sass Task
gulp.task('sass', function () {
  gulp.src('src/_sass/main.scss')
    .pipe(sass({style: 'expanded'}))
    .pipe(gulp.dest('css'))
    .pipe(minifycss())
    .pipe(gulp.dest('css'));
});

// Imagemin
gulp.task('imagemin', function () {
  gulp.src('src/_img/*')
    .pipe(imagemin({
      progressive: true,
      use: [pngquant()]
    }))
    .pipe(gulp.dest('img'));
});

// Watch Task
gulp.task('watch', function () {
  gulp.watch('src/**/*.*', ['default']);
});

// Default Task
gulp.task('default', ['browserify', 'sass']);

// Deploy task
gulp.task('deploy', function () {
  gulp.src('_site/**/*')
    .pipe(deploy());
});
@@ -411,19 +411,16 @@
 fy Task%0A
-// 
 gulp.tas
@@ -449,19 +449,16 @@
 on () %7B%0A
-// 
   var br
@@ -502,23 +502,20 @@
 name) %7B%0A
-//
     
- 
 var b = 
@@ -536,19 +536,16 @@
 ename);%0A
-// 
     retu
@@ -563,21 +563,15 @@
 ();%0A
-// 
   %7D);%0A%0A
-// 
   re
@@ -604,19 +604,16 @@
 n.js'%5D)%0A
-// 
     .pip
@@ -626,23 +626,20 @@
 serify)%0A
-//
     
- 
 .pipe(ug
@@ -646,19 +646,16 @@
 lify())%0A
-// 
     .pip
@@ -674,19 +674,16 @@
 'js'));%0A
-// 
 %7D);%0A%0A// 

Update gulpfile