             '--define=goog.DEBUG=false'
           ]
 
-      app:
+      all:
         options:
-          namespace: 'wzk'
-          root: appDirs
+          namespace: '*'
           outputFilePath: appCompiledOutputPath
 
     esteUnitTests:
       options:
         basePath: closureLibDir + '/closure/goog/base.js'
-      app:
+      all:
         options:
-          depsPath: depsPath
-          prefix: depsPrefix
+          depsPath: '<%= esteDeps.all.options.outputFile %>'
+          prefix: '<%= esteDeps.all.options.prefix %>'
         src: [
           'var/wzk/**/*_test.js'
         ]

  grunt.loadNpmTasks 'grunt-este'
  grunt.loadNpmTasks 'grunt-este-watch'

  grunt.registerTask 'build', 'Build app.', (app = 'app') ->
    tasks = [
      "clean:#{app}"
      "coffee"
      "coffee2closure:#{app}"
      "coffeelint"
      "esteDeps"
      "esteUnitTests:#{app}"
      "esteBuilder:#{app}"
    ]
    grunt.task.run tasks

  grunt.registerTask 'run', 'Build app and run watchers.', (app = 'app') ->
    tasks = [
      "clean:#{app}"
      "coffee"
      "coffee2closure:#{app}"
      "coffeelint"
      "esteDeps"
      "esteUnitTests:#{app}"
      "esteWatch:#{app}"
    ]
    grunt.task.run tasks


  grunt.initConfig

    clean:
      all:
        options:
          force: true
        src: [
          'var/wzk/**/*.js'
        ]

    coffee:
      all:
        options:
          bare: true
        files: [
          expand: true
          src: coffeeFiles
          dest: 'var/'
          ext: '.js'
        ]

    coffee2closure:
      all:
        files: [
          expand: true
          src: 'var/wzk/**/*.js'
          ext: '.js'
        ]

    esteDeps:
      all:
