   gulp.watch paths.src + '/*.html', reload<% if (!includeCss) { %>
   gulp.watch paths.sass + '/**/*.scss', ['styles']<% } else { %>
   gulp.watch paths.css + '/**/*.css', ['styles']<% } %>
-  gulp.watch paths.images + '/**/*.{jpg,jpeg,png,gif}', ['images', reload]
   gulp.watch paths.script + '/**/*.js', reload
-  gulp.watch paths.css + '/**/*.css', reload
+  gulp.watch paths.hbs + '/**/*.hbs', reload
+  gulp.watch paths.images + '/**/*.{jpg,jpeg,png,gif}', reload
 
-# Connect
-gulp.task 'connect:dist', ->
-  browserSync
-    notify: false
-    server:
-      baseDir: [paths.dist]
-
-  gulp.watch paths.dist + '/**/*', reload
-
-gulp.task 'copy', ->
-  gulp.src [
-    paths.src + '/.htaccess'
-    paths.src + '/favicon.ico'
-    paths.src + '/robots.txt']
-    .pipe gulp.dest paths.dist
-<% if (includeRequireJS) { %>
 gulp.task 'rjs', ['build'], (cb) ->
   rjs.optimize
     baseUrl: paths.script

# Images
gulp.task 'images', ->
  gulp.src paths.images + '/**/*.{jpg,jpeg,png,gif}'
    .pipe $.if production, $.changed paths.dist + '/assets/images'
    .pipe $.if production, $.cache $.imagemin
      progressive: true
      interlaced: true
    .pipe $.if production, gulp.dest paths.dist + '/assets/images'

# testing via mocha tool
gulp.task 'test', ->
  gulp.src paths.test + '/test.js'
    .pipe $.mocha
      reporter: 'spec'

# Connect
gulp.task 'connect:app', ->

'use strict'

gulp = require 'gulp'
rjs = require 'requirejs'
runs = require 'run-sequence'
$ = require('gulp-load-plugins')()
minifyCSS = require 'gulp-minify-css'
