     .pipe gulp.dest outui
 
   # inject scripts in html
-  #buildHtml reloader.inject()
+  #htmlInject = reloader.inject()
 
   # watch rebuilt stuff
   gulp.watch "#{outui}/**/*", reloader.onChange

    .pipe gulp.dest outapp


buildHtml = (transform = gutil.noop()) ->
  gulp.src paths.html
    .pipe transform
    .pipe changed outapp
    .pipe gulp.dest outapp


# copy .html-files
gulp.task 'html', -> buildHtml()


# compile less


gulp.task 'default', ['package', 'coffee', 'html', 'less']

gulp.task 'watch', ['reloader', 'html'], ->
  # watch to rebuild
  sources = (v for k, v of paths)
  gulp.watch sources, ['default']
