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.
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.
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.
If you wish to contribute code changes, please follow these guidelines:
- 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
.
- 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.
- Icon:
/icons
=> in this place create a Folder for the New Social Share Icon.- in
index.js
add the Base64 Image URL & export it. - 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.
- Types:
/types/index.d.ts
contains the Types declaration for the Button Props defined in/Buttons/socialShareBtnName.js
- add the
type
option with relevant params e.g. url, title - in declare function, export the function with the types.
- 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.
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.
- If not, create a new issue, providing a clear and concise description.
- Include any relevant information, steps to reproduce, or error messages you encountered.
By contributing to dv-social-share
, you agree that your contributions will be licensed under the MIT License.