 # Build docs
 
 gulp.task 'docs-exec', ->
-
-  deferred = Q.defer()
-  exec "cd docs;mkdir js;mkdir css;cd ..", (err) ->
-    return deferred.reject err  if err
-    deferred.resolve()
-
-  return deferred.promise
+  exec "cd docs;mkdir js;mkdir css;cd .."
 
 
 gulp.task 'docs-coffee', ['docs-exec'], ->


  app.listen 3000

  deferred.resolve()

  log 'green', "HTTP server for #{buildDir} is ready at localhost:3000"
  return deferred.promise


# Watch Tasks

# build webserver

gulp.task 'webserver', ['compile'], ->
  express = require 'express'
  app     = express()
  buildDir = '/docs'
