       logging: Rule.typescriptSrc 'logging'
       loggingSpecDecl: Rule.typescriptSpecDecl 'logging'
 
-      peerconnection: Rule.typescriptSrc 'peerconnection'
-      chat: Rule.typescriptSrc 'peerconnection/samples/chat-webpage'
-      chat2: Rule.typescriptSrc 'peerconnection/samples/chat2-webpage'
-
-      coreproviders: Rule.typescriptSrc 'coreproviders'
-      coreprovidersSpecDecl: Rule.typescriptSpecDecl 'coreproviders'
-      freedomchat: Rule.typescriptSrc 'coreproviders/samples/freedomchat-chromeapp'
+      webrtc: Rule.typescriptSrc 'webrtc'
+      chat: Rule.typescriptSrc 'webrtc/samples/chat-webpage'
+      chat2: Rule.typescriptSrc 'webrtc/samples/chat2-webpage'
+
+      # Freedom interfaces (no real spec, only for typescript checking)
+      freedomTypings: Rule.typescriptSrc 'freedom/typings'
+      freedomTypingsSpecDecl: Rule.typescriptSpecDecl 'freedom/typings'
+      freedomInterfaces: Rule.typescriptSrc 'freedom/interfaces'
+      freedomCoreproviders: Rule.typescriptSrc 'freedom/coreproviders'
+
+      freedomChat: Rule.typescriptSrc 'freedom/samples/freedomchat-chromeapp'
 
     jasmine:
       handler: Rule.jasmineSpec 'handler'

    'base'
    'arraybuffers'
    'handler'
    'peerconnection'
    'typescript:coreproviders'
    'jasmine:coreproviders'
  ]

    'uglify:freedomForFirefoxForUproxy'
  ]

  taskManager.add 'freedomChat', [
    'base'
    'freedomForWebpagesForUproxy'
    'typescript:freedomChat'
    'copy:sampleFreedomChat'
  ]

  taskManager.add 'build', [
