Contribution Guide
[todo] [good-first-task] This contribution guide itself could be improved đ
Foam is open to contributions of any kind, including but not limited to code, documentation, ideas, and feedback. Here are some general tips on how to get started on contributing to Foam:
- Use Foam for yourself, figure out what could be improved.
- Check out [roadmap] to see whatâs already in the plans. I have thoughts about how to implement some of these, but open to ideas and code contributions!
- Read about our [principles] to understand Foamâs philosophy and direction
- Read and act in accordance with our [code-of-conduct].
- Feel free to open GitHub issues to give me feedback and ideas for new features.
- Foam code and documentation live in the monorepo at foambubble/foam
- Exceptions to the monorepo are:
Contributing to the VS Code Extension
If youâre interested in contributing to the VS Code extension (aka foam-vscode
), this guide will help you get things set up locally.
-
Clone the repo locally:
git clone https://github.com/foambubble/foam.git
-
Install the necessary dependencies by running this command from the root:
yarn install
-
This project uses Yarn workspaces.foam-vscode
relies on foam-core
. This means we need to compile it before we do any extension development. From the root, run the command:
yarn workspace foam-core build
- Now weâll use the launch configuration defined at
.vscode/launch.json
to start a new extension host of VS Code. From the root, or the foam-vscode
workspace, press f5.
- In the new extension host of VS Code that launched, open a Foam workspace (e.g. your personal one, or a test-specific one created from foam-template). This is strictly not necessary, but the extension wonât auto-run unless itâs in a workspace with a
.vscode/foam.json
file.
- Test a command to make sure itâs working as expected. Open the Command Palette (Ctrl/Cmd + Shift + P) and select âFoam: Update Markdown Reference Listâ. If you see no errors, itâs good to go!
For more resources related to the VS Code Extension, check out the links below: