Contribution Guide
Thank you for considering contributing to the dv-social-share
project! We appreciate your time and effort in making this project even better. This guide will help you understand how you can contribute to the project effectively.
Ways to Contribute
You can contribute to the dv-social-share
project in the following ways:
- Code contributions: Help improve the functionality or fix bugs by contributing code changes.
- Issue reporting: Report any issues you encounter or suggest new features by creating detailed bug reports or feature requests.
- Community support: Help answer questions and assist other users by participating in discussions or providing guidance on issues.
Getting Started
To get started with contributing, follow these steps:
- Fork the
dv-social-share
repository on GitHub. - Clone your forked repository to your local development environment.
- Make the necessary changes or additions.
Contributing Code
If you wish to contribute code changes, please follow these guidelines:
Setting Up the Development Environment
- Install the latest version of Node.js (Version 16 & above) and npm.
- Fork the repository and clone it to your local machine.
- Navigate to the project's directory and install the dependencies using
npm install
.
Making Changes
- Create a new branch for your changes:
git checkout -b your-new-branch-name
. - Make your desired changes, ensuring adherence to the project's coding standards.
- Test your changes locally to verify they work as expected.
Place to Modify the Codes:
- Icon:
/icons
=> in this place create a Folder for the New Social Share Icon.- inside the newly created folder there'll be 2 files, 1 file will export the Base64 URL of the Icon
- and the
index.js
add the relevant code to export the Icon. - go to
/icons/index.js
file and export the newly added Icon.
- Code:
/Buttons
=> in this place create a Folder for the New Social Share Button.- inside of the newly created Folder, created an
index.js
file - and in the newly created
/index.js
file write the code & logic for the Button to work. - in the end go to
index.js
file in the root of the directory, export the newly added Button.
Submitting a Pull Request
- Commit your changes with a descriptive commit message:
git commit -m "Add feature - Name of Social Share Button"
. - Push your changes to your forked repository:
git push origin your-name-branch-name
. - Open a pull request against the
main
branch of thedv-social-share
repository. - Provide a detailed description of your changes, including any relevant information or context.
- Wait for the project maintainers to review your pull request and provide feedback or merge it.
Reporting Issues
If you encounter any issues or have suggestions for improvements, please follow these steps:
- Check if the issue or suggestion has already been reported in the issue tracker (opens in a new tab).
- If not, create a new issue, providing a clear and concise description.
- Include any relevant information, steps to reproduce, or error messages you encountered.
License
By contributing to dv-social-share
, you agree that your contributions will be licensed under the MIT License (opens in a new tab).