 
       polymer:
         src: 'third_party/lib'
-        dest: 'build/typescript-src/generic_ui/lib'
+        dest: 'build/compile-src/generic_ui/lib'
 
 
     shell: {

    ts: {

      # uProxy UI without any platform dependencies
      generic_ui: Rule.typescriptSrcLenient 'typescript-src/generic_ui'
      generic_ui_specs: Rule.typescriptSpecDeclLenient 'typescript-src/generic_ui'

      # Core uProxy without any platform dependencies
      generic_core: Rule.typescriptSrcLenient 'typescript-src/generic_core'
      generic_core_specs: Rule.typescriptSpecDeclLenient 'typescript-src/generic_core'

      # TODO: Remove uistatic / make it the same as uipolymer once polymer is
      # fully integrated.
      uistatic: Rule.typescriptSrcLenient 'typescript-src/uistatic'
      uipolymer: Rule.typescriptSrcLenient 'typescript-src/generic_ui/polymer'

      # Mocks to help jasmine along. These typescript files must be compiled
      # independently from the rest of the code, because otherwise there will
      # be many 'duplicate identifiers' and similar typescript conflicts.
      mocks: Rule.typescriptSrcLenient 'typescript-src/mocks'

      # Compile typescript for all chrome components. This will do both the app
      # and extension in one go, along with their specs, because they all share

firefoxDevPath = 'build/dev/firefox/'

# TODO: Move this into common-grunt-rules in uproxy-lib.
# We need *.ts files for typescript compilation
# and *.html files for polymer vulcanize compilation
Rule.symlink = (dir, dest='') =>
  { files: [ {
    expand: true,
    overwrite: true,
    cwd: dir,
    src: ['**/*.ts', '**/*.html'],
    dest: 'build/compile-src/' + dest} ] }

# Use symlinkSrc with the name of the module, and it will automatically symlink
# the path to its src/ directory.
