First of all, thank you for considering contributing to Color Conjure! Your help is essential for keeping this project great and improving it even more.
If you find a bug, please open an issue. Details in README.md.
Have an idea for a new feature? open an issue. Details in README.md.
-
Fork the Repository
Click the "Fork" button at the top-right corner of the repository to create your own copy.
-
Clone Your Fork
git clone https://github.com/<your_username>/color-palette-generator.git cd color-palette-generator
-
Create a Branch from main
# Update your main branch git checkout main # Switch to the main branch git pull origin main # Get the latest changes from the main branch # Create a new branch for your feature or fix using a descriptive name git checkout -b my-new-feature-branch # Update the dependencies in node_modules npm install
-
Make Changes
- Make your changes to the codebase.
- Ensure your code follows the style guidelines of this project.
- Perform a self-review of your code.
- Comment your code where necessary.
- Make corresponding changes to the documentation if necessary.
- Ensure your changes generate no new warnings or errors.
-
Lint, Build and Test - Before submitting your changes, make sure to run the following commands:
- Run
npm run lint
to lint your code. - Run
npm run build
to ensure your changes build without errors (and check TypeScript errors). - Run
npm run test
to run the tests and check the coverage. - Run
npm run dev
to test your changes locally.
- Run
-
Commit Your Changes - Please follow the Common types according to commitlint-config-conventional specification for your commit messages.
git add . git commit -m "feat: my concise commit message"
-
Push Your Changes
git push origin my-new-feature-branch
-
Open a Pull Request
- Go to your fork on GitHub.
- Click the "New Pull Request" button.
- Select the main branch of the original repository as the base branch.
- Select your branch as the compare branch.
- Click "Create Pull Request".
-
Wait for Review
Your pull request will be reviewed by the maintainers. Make sure to respond to any feedback given.
-
Celebrate
🎉 Congratulations on your contribution! Thank you for making Color Conjure better! 🎉