   grunt.loadNpmTasks 'grunt-closure-coffee-stack'
   grunt.loadNpmTasks 'grunt-http-server'
   grunt.loadNpmTasks 'grunt-npm'
+
 
   grunt.registerTask 'build', 'Build stack.', (app = 'app') ->
     grunt.task.run [


  grunt.initConfig

    clean            :
      all            :
        options      :
          force      : yes
        src          : 'build'

    mkdir            :
      all            :
        options      :
          create     : [
            'src/coffee'
            'src/externs'
            'src/images'

            'build/images'
          ]

    coffee               :
      all                :
        options          :
          bare           : yes
        files            : [
          expand         : yes
          cwd            : 'src'
          src            : [ 'coffee/**/*.coffee', 'tests/**/*.coffee' ]
          dest           : 'build/js/'
          ext            : '.js'
        ]

    sprites              :
      all                :
        files            :
          src            : 'src/images'
          dest           : 'build/images'

    coffee2closure       :
      all                :
        files            : [
          expand         : yes
          src            : 'build/js/**/*.js'
          ext            : '.js'
        ]

    stylus               :
      options            :
        'include css'    : true
        'compress'       : false
      all                :
        files            : [
          expand         : true
          src            : [ '*.styl' ]
          ext            : '.css'
          cwd            : 'src/styl'
          dest           : 'build/css'
        ]

    templates            :
      all                :
        src              : 'src/templates/**/*.soy'
        dest             : 'build/templates/'

    deps                 :
      all                :
        options          :
          outputFile     : 'build/deps.js'
          prefix         : '../../../../'
          root           : [
            'bower_components/closure-library'
            'bower_components/closure-templates'
            'build'
          ]

    tests                :
      app                :
        options          :
          depsPath       : '<%= deps.all.options.outputFile %>'
          prefix         : '<%= deps.all.options.prefix %>'
        src              : 'build/js/**/*_test.js'

    karma                :
      unit               :
        configFile       : 'karma.conf.js'

    builder              :
      all                :
