Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.12 KB

code-organization.md

File metadata and controls

15 lines (13 loc) · 1.12 KB

Code Organization

The code is fully implemented in TypeScript. Within the top level folders, which organize code by functional package, we separate between the following platforms:

  • common/*: Source code that only requires basic JavaScript APIs and runs in all target environments.
  • browser/*: 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-node/*: Electron specific source code that requires nodejs APIs.
    • May use code from: common, node.
  • electron-browser/*: Source code that requires the Electron renderer process APIs.
    • May use code from: common, browser.
  • electron-main/*: Source code that requires the Electron main process APIs.
    • May use code from: electron-node, common, node.