   server.get '/main.js', (req, res) ->
     src  = if minify then source.minify() else source.compile()
     size = Math.round(src.length/102.4)/10
-    console.log(" Compiling: "+ "/main.js (#{size}Kb #{if minify then 'minified' else 'source'})".grey)
+    console.log(" Compiling: ".cyan+ "/main.js (#{size}Kb #{if minify then 'minified' else 'source'})".grey)
     res.charset = 'utf-8'
     res.header('Cache-Control', 'no-cache')
     res.contentType('text/javascript')


  server.get '/lovely.io/:module.js', (req, res) ->
    module = req.params.module
    script = "#{base}/#{module}/current/build/#{module}-src.js"

    console.log(" Serving:   "+ "'#{module}' module from #{script}".grey)

    fs.readFile script, (err, data)->
      res.contentType('text/javascript')

  server.get '/favicon.ico', (req, res) ->
    res.send '' # just keeping it happy

  # listening all the static content in the user project
  server.get /^\/(.*?)$/, (req, res) ->
    minify    = req.query.minify is 'true'
    filename  = req.params[0] || 'index'
    extension = filename.split('.')
    extension = extension[extension.length - 1]

    unless extension in ['css', 'html', 'js']
      filename += '.html'
      extension = 'html'

    switch extension
      when 'css' then content_type = 'text/css'
      when 'js'  then content_type = 'text/javascript'
      else            content_type = 'text/html'

    fs.readFile "#{process.cwd()}/#{filename}", (err, data)->
      console.log("") if extension is "html"
      console.log(" Sending:   "+ "/#{filename} (#{content_type})".grey)

      res.charset = 'utf-8'
      res.contentType(content_type)
      res.send data


  server.listen(port)

  print "Listening at: http://127.0.0.0:#{port}\n"+
    "Press Ctrl+C to hung up".grey


exports.help = (args) ->
