Skip to content

Development

Rob Royce edited this page Mar 3, 2022 · 8 revisions

Getting Started

Note: the two main entry points are src/kc_electron and src/kc_angular. Browser extensions can be found in src/kc_extension but are experimental.

  1. Make sure you have Node, NPM, and Yarn installed. The following versions were used at the time of this writing:

After installing Node.js and Yarn, clone the repo and run the following commands (from the repo root directory) to ensure you have the correct Yarn plugins.

  1. Install node modules using the following command:
yarn set version berry
yarn plugin import typescript
yarn plugin import workspace-tools
yarn install
  1. Build and run the project:
yarn build
yarn start
  1. (OPTIONAL) clean the project and delete build files:
yarn clean
  1. (OPTIONAL) purge dependencies and clear caches:
yarn purge

Using Watchers for Real-Time Development

This will allow you to refresh the application and see changes in real-time, without having to recompile Electron and Angular code (the watchers auto-compile as files are changed/saved).

  1. Follow steps 1-2 above
  2. Build, run, and watch the project:
yarn watch-main-dev &
yarn watch-electron-dev &
yarn start &
  1. Note: changes made to Electron require you to restart the app

You can also choose to run yarn watch-main and yarn watch-electron (without the -dev), but they will take longer to transpile and build, and no source map will be produced.

Create distributable binaries for MacOS, Windows and Linux

  1. Clean and reinstall dependencies, then build the project:
yarn clean 
yarn purge
yarn install
yarn build
  1. Create the distributables:
yarn dist-all
Clone this wiki locally