Contributing to holo-fn
Thank you for your interest in contributing to holo-fn! To keep things organized and make it easier for you to get involved, please read through the guidelines below.
🚀 Setup
1. Install Dependencies
To get started, clone the repository and install the dependencies:
1 2 3 | |
2. Running Tests and Coverage
You can run the tests using Jest to ensure everything works as expected:
1 | |
To convert the coverage into an HTML report, run:
1 | |
📦 Building
To build the project:
1 | |
🧰 Testing Locally
To test your changes locally before publishing or linking the library:
-
Build the Library:
-
Run the following to build the project and prepare the files for testing:
1bun run build -
Pack the Library:
-
After building, run npm pack to create a .tgz file that you can install locally:
1bun pm pack -
Install Locally in Your Test Project:
-
In the project where you want to test the library, run the following:
1npm install /path/to/holo-fn-<version>.tgz -
This will install the library locally in your project, and you can import and use it as if it were an npm package.
🤝 How to Contribute
- Fork the repository to your GitHub account and clone it locally.
- Create a new branch for your feature or fix:
1git checkout -b feat/issue-number-or-short-description - Make your changes: add your feature or fix the bug.
- Commit your changes:
1git commit -am 'feat: add new feature' # or 'fix: resolve issue' - Push to your fork:
1git push origin feat/issue-number-or-short-description - Create a pull request from your fork to the main repository.
🎯 Guidelines
- Please write clear commit messages.
- Ensure all code is properly tested.
- Follow the code style used in the project.
Thank you for contributing! 🚀