This document outlines the main structure of the FreeMAN codebase. It is a guide, and not an exhaustive list.
All TypeScript code lives in here.
src/common
- application code that runs on either themain
orrenderer
processsrc/interfaces
- code that will not run in any process (interface
andtype
definitions)src/main
- code that runs exclusively in themain
processsrc/renderer
- code that runs exclusively in therenderer
processsrc/renderer/components
- React components, essentially the view of the applicationsrc/renderer/styles
- sass code responsible for basic styling and dimensions. Colours are handled by application logic to support theming
Static assets are built here and used during development.
Default buildResources
folder for electron-builder
(see documentation).
Default path for icons for electron-builder
.
All unit tests live here. The pathing maps to the src
directory under test.
Custom, usually rather stub, typings definitions for untyped modules.