 NODE_ENV = process.env.NODE_ENV or 'prod'
 
 module.exports = (grunt) ->
+  ####
   ## Auxiliary constants and functions
+  ####
 
   # Callback is called if the provided file path points to a file that exists
   whenExists = (path, done) ->
     done(path) if grunt.file.exists(path)
 
   # All the manifest files of this repo and its dependencies
-  manifest = {}
+  manifest = null
   manifests = do ->
     whenExists './component.json', (path) ->
       manifest = grunt.file.readJSON(path)

      loadPlugins Object.keys(deps)


  # Always call explicitly with parameter to allow easy extension in the future
  compileTasks = [
    'clean:public'

          summary_detail_level: 3


  ####
  ## Custom tasks
  ####

  grunt.registerTask 'compile', (type) ->
    # First compile this repo
