🎉 Thank you for considering contributing to SimplyCountdown.js! I appreciate your support and I'm excited to collaborate with you. Below are the guidelines to help you get started.
This step is totally optional... but seriously, who doesn't love some stars? 😉 It's like giving a virtual high-five to the project! 🙌 ⭐ 🙌
Start by forking the repository to your GitHub account.
Clone your forked repository to your local machine:
git clone git@github.com:your-username/simplyCountdown.js.git
cd simplyCountdown.js
Make sure you're using the correct Node.js version. You can check the required version in .nvmrc
. If you use nvm, simply run:
nvm use
This will automatically switch to the correct Node.js version for the project.
Install the necessary dependencies: We recommend using bun as it offers superior performance and seamless dependency management.
bun install
NOTE: For now, package.json
is running bun commands only, maybe we will have to update this to be compatible with any package management system in the future
Create a new branch for your feature or bugfix:
git checkout -b feature/your-feature-name
Make your changes to the codebase. Ensure your code follows the project's code style and formatting guidelines. While developping, you should run this command:
bun run dev
NOTE: This will run a dev server with Vite, update the sources from src/core
and tests your new features in docs/src
files like docs/src/index.html
and docs/src/assets/js/main.js
. Each changes inside those files will refresh the dev page
Build, then, run the tests to make sure your changes don't break anything:
bun run build
then:
bun run dist:test:serve
NOTE: This will generate various HTML files inside a dist_test
directory and run a temporary node.js server where you can check different implementations and use-cases of the distribution files. Every HTML pages should run a working countdown.
Commit your changes with a clear and concise commit message:
git add .
git commit -m "Add feature: your feature description"
Push your changes to your forked repository:
git push origin feature/your-feature-name
Open a pull request from your forked repository to the main repository. Provide a detailed description of your changes and any relevant information.
- Provide a detailed description of your changes in the pull request.
- Link any relevant issues in the pull request description.
- Wait for a maintainer to review your pull request.
If you find a bug or have a feature request, please create an issue in the repository. Provide as much detail as possible, including steps to reproduce the issue or a clear description of the feature.
All pull requests will be reviewed by a maintainer. The review process includes:
- Checking for code quality and adherence to the style guide.
- Ensuring tests are passing.
- Providing feedback and requesting changes if necessary.
For more information about the project, please refer to the README.md and the documentation website.
Thank you for contributing! 🚀