 
 taskManager.add 'base', [
   'copy:dev'
-  'ts:devInModuleEnv'
-  'ts:generic_ui'
+  'ts'
   'version_file'
   'browserify:chromeAppMain'
   'browserify:genericCoreFreedomModule'

# Firefox build tasks.
taskManager.add('build_firefox', [
  'base'
  'ts:firefox'
  'copy:firefox'
  'copy:firefox_additional'
  'browserify:firefoxContext'

            'freedom-social-wechat': '<%= pkgs.freedomwechat.version %>'
            'freedom-social-quiver': '<%= pkgs.freedomquiver.version %>'
        }]

  # One pass for code running inside freedom.js modules and another
  # for code running outside, due to the differences in the meaning
  # of the (global) freedom object between the two environments.
  ts:
    moduleEnv: compileTypescript [
      devBuildPath + '/**/*.ts'
      devBuildPath + '/interfaces/**/*.ts'
      devBuildPath + '/generic_core/**/*.ts'
      '!' + devBuildPath + '/lib/build-tools/**/*.ts'
      '!' + devBuildPath + '/integration/**/*.ts'
      '!' + devBuildPath + '/**/*.core-env.ts'
      '!' + devBuildPath + '/**/*.core-env.spec.ts'
    ]
    coreEnv: compileTypescript [
      devBuildPath + '/**/*.core-env.ts'
      devBuildPath + '/**/*.core-env.spec.ts'
      '!' + devBuildPath + '/lib/build-tools/**/*.ts'
      '!' + devBuildPath + '/integration/**/*.ts'
    ]

  browserify:
    chromeAppMain: Rule.browserify 'chrome/app/scripts/main.core-env'
