Project setup
You will need pnpm, as moonlight uses it for dependency and workspace management.
- Clone the repository.
- Install dependencies with
pnpm i
. - Build the project with
pnpm run build
.- For working on moonlight, a watch mode is available with
pnpm run dev
.
- For working on moonlight, a watch mode is available with
For more information on project structure, see the dedicated page.
Contribution guidelines
- Ensure your commits pass Prettier/ESLint. This is a requirement for merge.
- moonlight uses husky to check lints on commit.
- Please make PRs to the
develop
branch instead ofmain
.develop
is merged intomain
when moonlight updates happen. Our in-progress work resides ondevelop
.
- Don’t break the existing API surface.
- Library extensions and moonlight globals cannot change in a way that breaks existing extensions (unless there is an upcoming API bump).