var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var imagemin = require('gulp-imagemin');
var open = require('gulp-open');

gulp.task('scripts', function () {
  return browserify('./js/main.js')
    .bundle()
    .pipe(source('bundle.js'))
    .pipe(gulp.dest('./build/js'));
});

gulp.task('css', function () {
  return gulp.src('./css/**/*.css')
    .pipe(gulp.dest('./build/css'));
});

gulp.task('html', function () {
  return gulp.src('./*.html')
    .pipe(gulp.dest('./build'));
});

gulp.task('images', function () {
  return gulp.src('./public/images/**/*')
    .pipe(imagemin())
    .pipe(gulp.dest('./build/public/images'))
});

gulp.task('watch', function () {
  gulp.watch('./js/**/*.js', ['scripts']);
  gulp.watch('./css/**/*.css', ['css']);
  gulp.watch('./*.html', ['html']);
});

gulp.task('open', function () {
  var options = {
    app: 'google chrome'
  };

  return gulp.src("./build/index.html").pipe(open('./build/index.html', options));
});

gulp.task('default', ['scripts', 'css', 'html', 'images', 'watch', 'open']);

var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var imagemin = require('gulp-imagemin');
var open = require('gulp-open');

gulp.task('scripts', function () {
  return browserify('./js/main.js')
    .bundle()
    .pipe(source('bundle.js'))
    .pipe(gulp.dest('./build/js'));
});

gulp.task('css', function () {
  return gulp.src('./css/**/*.css')
    .pipe(gulp.dest('./build/css'));
});

gulp.task('html', function () {
  return gulp.src('./*.html')
    .pipe(gulp.dest('./build'));
});

gulp.task('images', function () {
  return gulp.src('./public/images/**/*')
    .pipe(imagemin())
    .pipe(gulp.dest('./build/public/images'))
});

gulp.task('watch', function () {
  gulp.watch('./js/**/*.js', ['scripts']);
  gulp.watch('./css/**/*.css', ['css']);
  gulp.watch('./*.html', ['html']);
});

gulp.task('open', function () {
  var options = {
    app: 'google chrome'
  };

  return gulp.src('./build/index.html')
    .pipe(open('./build/index.html', options));
});

gulp.task('default', ['scripts', 'css', 'html', 'images', 'watch', 'open']);

Break chaining into different lines and change string to single quotes
Break chaining into different lines and change string to single quotes

* Keep styling in file consistent..
