First off, thank you for considering contributing to rapid! Your help is essential to keep improving the project.
This project uses pnpm as the package manager, make sure to install it first!
git clone git@github.com:nlfmt/rapid.git
cd rapid
pnpm install
pnpm buildFirst, run the dev script:
pnpm devThis will rebuild the package on changes, and link it globally.
In any project where you want to test the changes, run
pnpm link -g @nlfmt/rapidThis will use the local version of the package instead of the one from the registry. You can also do this in the rapid project itself to test the changes in the examples.
Before submitting a pull request, make sure to lint your code:
pnpm lintIf you find a bug, please open an issue here and use the bug report template.
Suggestions are always welcome! Please open an issue here and use the feature request template.
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Make your changes.
- Create a changeset describing your changes (
pnpm changeset). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
Please follow the coding style used in the project. There is a .prettierrc config,
so if you're using an editor with Prettier support, it should format the code correctly. \
This project uses:
- 2 spaces for indentation
- double quotes for strings
- no semicolons
- spacing in braces and brackets
- Use the present tense ("add feature" not "added feature").
- Use the imperative mood ("move code to..." not "moves code to...").
- Limit the first line to 72 characters or less.
- Use
feature/for new features. - Use
fix/for bug fixes. - Use
chore/for changes to the build process or auxiliary tools. - Use
docs/for changes to documentation.
If you have any questions, feel free to ask in the Discussions.