       loadPlugins Object.keys(deps)
 
 
+  ####
+  ## Tasks
+  ####
+
   # Always call explicitly with parameter to allow easy extension in the future
   compileTasks = [
     'clean:public'

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 = {}
  manifests = do ->
    whenExists './component.json', (path) ->
      manifest = grunt.file.readJSON(path)

    'inject:version'

    'concat:js'
    'concat:css'
    'concat:html'
    'dom_munger:link'

    'clean:staging'
