     .pipe plumber()
     .pipe gulp.dest 'dist/static/css/fonts'
 
+# watch task - watches changes in files and runs tasks on changes
+# 
+# depends on:
+#   sass
+#   scripts
+#   lint
+#   minify-html
+#   minify-partials
 gulp.task 'watch', ->
   gulp.watch "src/scss/*.scss", ['sass']
   gulp.watch "src/javascript/**/*.js", ['scripts', 'lint']
   gulp.watch "src/index.html", ['minify-html']
   gulp.watch "src/partials/*.html", ['minify-partials']
-  gulp.watch 'src/img/**/*', ['images']
+  #gulp.watch 'src/img/**/*', ['images']
 
+# lint task - checks the produced javascript
+gulp.task 'lint', ->
+  gulp.src ['src/javascript/controllers/*.js', 'src/javascript/services/*.js', 'src/javascript/*.js']
+    .pipe plumber()
+    .pipe jshint()
+    .pipe jshint.reporter stylish
 
 # Remove generated sources
 gulp.task 'clean', ->

    .pipe gulp.dest 'dist/static/js'


# Create your CSS from Sass, Autoprexif it to target 99%
#  of web browsers, minifies it.
gulp.task 'css', ->
  gulp.src 'src/scss/styles.scss'
    .pipe plumber()

    .pipe concat('vendor.js')
    .pipe gulp.dest 'dist/static/js'

# app task - concatenates all application code into app.js
gulp.task 'app', ->
  gulp.src ['src/javascript/app.js', 'src/javascript/directives/*.js', 'src/javascript/services/*.js', 'src/javascript/controllers/*.js']
    .pipe plumber()
