Thank you for your interest in contributing to the node-nepali-datetime project! Your contributions will help improve and enhance this library. Please take a moment to review the following guidelines before getting started.
Before contributing, ensure that you have the following:
- Node.js v18 or higher installed. Download it from the official Node.js website
or use
nvm
to manage multiple Node.js versions. - npm installed (comes with Node.js).
To set up the project on your local machine, follow these steps:
-
Fork the repository on GitHub.
-
Clone the forked repository to your local machine:
git clone /~https://github.com/<your-username>/node-nepali-datetime.git cd node-nepali-datetime
-
Install dependencies:
npm install
-
Verify your setup:
-
Run the example script to test the library:
npm run example
Modify the example.ts file to experiment with your example code.
-
Run lint checks:
npm run lint
-
Run tests to ensure everything works:
npm run test
-
-
Start contributing by making the necessary changes to the codebase.
- A Prettier configuration file (
.prettierrc
) is provided to maintain a consistent coding style. - Pre-commit hooks will automatically format your code before committing. Ensure that your code passes lint checks.
We welcome and appreciate pull requests from the community. To contribute:
-
Fork the repository and create a new branch based on the
main
branch:git checkout -b <your-branch-name>
-
Write tests for your changes if applicable.
-
Follow Conventional Commits for commit messages.
Examples:feat: add JSON parser
fix(parser): resolve parsing issue
-
Push your branch to your forked repository:
git push origin <your-branch-name>
-
Create a Pull Request:
- Open a pull request from your branch to the
main
branch of the original repository. - Provide a clear and concise description of the changes, along with relevant context.
- Open a pull request from your branch to the
-
Review & Feedback:
- Participate in the code review process and address any feedback promptly.
By contributing to this project, you agree that your contributions will be licensed under the GPL-3.0 License.
Refer to the LICENSE file for more details.
Even if you don’t contribute code, you can still help:
- Spread the word about this library.
- Write a blog or article about how you use this project.
- Share your best practices, examples, or ideas with us.
Thank you for contributing to node-nepali-datetime! 🎉