     try fs.mkdirSync ".build"
 
     @buildFramework()
-    @buildKiteJs()
 
     if @config.client.runtimeOptions.precompiledApi
       exec 'coffee ./bongo-api-builder/build.coffee -o .build/api.js', =>

      retina   : '@2x'
    , (err, helper)=>
      spriteHelper = helper
      @buildKiteJs()
      @buildClient options

  buildFramework:->


      console.log  " $ #{cmd.replace 'compile ', ''} "
      console.warn "------------------------ FRAMEWORK COMPILED -------------------------- "

  buildKiteJs: (callback) ->
    exec "cd kite.js;npm i;gulp", (err, stdout, stderr) ->
      console.log "------------------------- KITEJS COMPILED -------------------------"
      console.log "STDOUT: #{ stdout }"
      console.log "STDERR: #{ stderr }"
      callback()

  buildClient: (options) ->
    @config ?= require('koding-config-manager').load("main.#{options.configFile}")
