Contributing to Lens
First off, thank you for considering contributing to Lens! It's people like you that make Lens such a great tool.
Getting Started
Prerequisites
Setup
Clone the repository:
bashgit clone https://github.com/lensjs/lens.git cd lens
Install dependencies:
This project uses
pnpm
as a package manager andlerna
with workspaces. Runningpnpm install
at the root will install dependencies for all packages and link them together.bashpnpm install && pnpmx install husky
Build all packages:
This command will build all the packages in the correct order.
bashpnpm run build
Run the example application:
This will start the Express server with hot-reloading.
bashpnpm run dev
The server will be running at
http://localhost:3000
. You can visithttp://localhost:3000/add-user
to trigger a database query that will be captured by Lens.
Making Changes
- Make your changes in the appropriate package(s).
- If you are working on the UI, you can run the UI dev server:bash
pnpm run dev:front
- Ensure all tests pass. (TODO: Add test running instructions).
- Commit your changes following the Conventional Commits specification.
- Push your changes and open a pull request.