Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 1.32 KB

CONTRIBUTING.md

File metadata and controls

80 lines (58 loc) · 1.32 KB

Contribution Guide

First, thank you for the contribution! 🎉

Getting Started

  1. Fork and clone the repo
git clone https://github.com/yourusername/web-search
cd web-search
  1. Install dependencies
# Using yarn
yarn

# Using npm
npm install
  1. Create a branch for your changes
git checkout -b add-youtube-website

Adding a 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.

Committing

Pre-commit

Before committing, you must run the precommit script.

# Using yarn
yarn precommit

# Using npm
npm run precommit

This script will:

  1. Lint the code (with ESLint and Prettier)
  2. Test the code (with Jest)
  3. Sort websites by name on src/data.json
  4. Remove duplicated elements

Commit message

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"