   b.bundle()
 
 watchLogger = (color, watcher) ->
+  livereload = require 'gulp-livereload'
   server = livereload()  if useLiveReload
   watcher.on 'change', (event) ->
     log color, "file #{event.path} was #{event.type}"


gulp.task 'docs-html', ->

  gulp.src './docs/index.html'
    .pipe gulpif useLiveReload, livereload()



# Use markdox to output markdown files for the API Documentation.
gulp.task 'markdox', ->

  markdox = require 'gulp-markdox'
  
  gulp.src [
      'src/**/core/**/*.coffee'
      'src/**/components/**/*.coffee'
