1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/docs/extensions/get-started/overview.md
Sebastian Malton 6e77e7eabb
add some overview documentation to the getting started page (#1269)
* add some overview documentation to the getting started page

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-11-09 10:48:09 -05:00

1.5 KiB

Extension Development Overview

This is a general overview to how the development of an extension will procede. For building extensions there will be a few things that you should have installed, and some that might help.

Required:

  • Node.js
  • Git
  • Some sort of text editor, we recommend VSCode
  • We use Webpack for compilation. All extension need to be at least compatable with a webpack system.

Recommened:

All Lens extensions are javascript packages. We recommend that you program in Typescript because it catches quite a few easily to make errors around passing data around in javascript.

Lens is a standard Electron application which both main and renderer processes. An extension is made up of two parts, one for each of Lens's core processes. When an extension is loaded each part is loaded and then notified that it has been loaded. From there the extension can start doing is work.

Lens uses React as it UI framework and even provides some of our own components for reuse by extensions. An extension is resonsible for the lifetime of any resources it spins up. If an extension's main part starts new processes they all must be stopped and cleaned up when the extension is deactivated or unloaded.

See Your First Extension to get started.