First, thank you for the contribution! 🎉
- Fork and clone the repo
git clone https://github.com/yourusername/web-search
cd web-search
- Install dependencies
# Using yarn
yarn
# Using npm
npm install
- Create a branch for your changes
git checkout -b add-youtube-website
The websites data are stored in src/data.json
.
Add the new websites on the JSON file:
{
[
...
{
...
},
{
"name": "YouTube",
"url_prefix": "https://youtube.com/results?search_query="
}
]
}
Read Committing to know what to do then.
Before committing, you must run the precommit
script.
# Using yarn
yarn precommit
# Using npm
npm run precommit
This script will:
- Lint the code (with ESLint and Prettier)
- Test the code (with Jest)
- Sort websites by name on
src/data.json
- Remove duplicated elements
It is recommended to follow conventional commits.
If you ❤️ to add emojis, feel free to, you may follow gitmoji.
Example:
git commit -m "feat: ✨ Add YouTube website"