   'browserify:chromeExtMain'
   'browserify:chromeContext'
   'browserify:chromeVulcanized'
+  'browserify:chromeLogsVulcanized'
   'string-replace:chromeExtVulcanized'
+  'string-replace:chromeExtLogsVulcanized'
 ]
 
 taskManager.add 'build_chrome', [

              'freedom-social-firebase': '<%= pkgs.freedomfirebase.version %>'
          }]
      chromeExtVulcanized:
        finishVulcanized(chromeExtDevPath + '/generic_ui')
      firefoxVulcanized:
        finishVulcanized(firefoxDevPath + '/data/generic_ui')


    #-------------------------------------------------------------------------
    # All typescript compiles to locations in `build/`

  ]

#------------------------------------------------------------------------------
finishVulcanized = (basePath, baseFilename) ->
  files: [
    {
      src: path.join(basePath, '/polymer/' + baseFilename + '.html')
      dest: path.join(basePath, '/polymer/' + baseFilename + '.html')
    }
  ]
  options:
    replacements: [{
      pattern: baseFilename + '.js'
      replacement: baseFilename + '.static.js'
    }, {
      pattern: /<script src=\"[a-zA-Z_./]+third_party\/bower\/([^"]+)"><\/script>/
      replacement: '<script src="../lib/$1"></script>'
