 # 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 %>'
        }]
  #-------------------------------------------------------------------------
  # All typescript compiles to locations in `build/`
  # Typescript compilation rules
  ts:
    # Compile all non-sample typescript code into the development build
    # directory.
    devInModuleEnv: compileTypescript [
      devBuildPath + '/lib/**/*.ts'
      devBuildPath + '/interfaces/**/*.ts'
      devBuildPath + '/generic_core/**/*.ts'
      '!' + devBuildPath + '/lib/build-tools/**/*.ts'
      '!' + devBuildPath + '/**/*.core-env.ts'
      '!' + devBuildPath + '/**/*.core-env.spec.ts'
    ]

    generic_ui: compileTypescript [
      devBuildPath + '/generic_ui/**/*.ts'
      devBuildPath + '/**/*.core-env.spec.ts'
      devBuildPath + '/**/*.core-env.ts'
    ]

    chrome_extension: compileTypescript [
      devBuildPath + '/chrome/extension/**/*.ts'
    ]

    chrome_app: compileTypescript [
      devBuildPath + '/chrome/app/**/*.ts'
    ]

    firefox: compileTypescript [
      devBuildPath + '/firefox/**/*.ts'
    ]

    cca: compileTypescript [
      devBuildPath + '/cca/**/*.ts'
    ]

    integration_specs: compileTypescript [
      devBuildPath + '/integration/*.ts'
      '!' + devBuildPath + '/integration/test_connection.ts'
    ]
    integration_freedom_module: compileTypescript [
      devBuildPath + '/integration/test_connection.ts'
    ]


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


taskManager.add 'base', [
  'copy:dev'
  'ts'
  'version_file'
  'browserify:chromeAppMain'
  'browserify:genericCoreFreedomModule'
