Skip to content

Code Organization

Sven Efftinge edited this page Mar 1, 2017 · 8 revisions

The code is fully implemented in TypeScript and sits below the npm scope @theia separated in individual node packages. Each name is comprised of two parts, the actual name and a platform suffix, indicating one of the following target platform:

  • -common: Source code that only requires basic JavaScript APIs and run in all the other target environments
  • -dom: Source code that requires the browser APIs like access to the DOM
    • may use code from: common
  • -node: Source code that requires nodejs APIs
    • may use code from: common
  • -electron-dom: Source code that requires the Electron renderer-process APIs
    • may use code from: common, dom, node
  • -electron-main: Source code that requires the Electron main-process APIs
    • may use code from: common, node