mirror of
https://github.com/carloscuesta/gitmoji.git
synced 2025-12-08 20:14:12 +00:00
* 🏗️ Define monorepo architecture * 🚚 Extract `gitmojis` as an isolated package * 🚚 Extract `website` as an isolated package * 🚚 Clean-up root package.json * ➕ Install `turbo` * 🔧 Setup turborepo * 👷 Use `turbo` in `ci` workflow * 👷 Update `npm-publish` workflow with `turbo` * ♻️ Migrate yarn from `classic` to `berry` * 📝 Update contributing guide * 🎨 Update readme * 📝 Add readme file for `gitmojis` package * 🚚 Move `public` folder to `website` package
2.3 KiB
2.3 KiB
Contributing to gitmoji
Hello!
Thanks for contributing on gitmoji. Before implementing new features and changes, please submit an issue. We will discuss here! 😜.
If you would like to add a new emoji to gitmoji, fill the provided ISSUE_TEMPLATE when creating an issue and take a look at the contributing section.
How to submit a pull request?
- Fork this repository.
- Create a new branch with the feature name. (Eg: add-emoji-deploy, fix-website-header)
- Make your changes.
- Test you changes by running
yarn test- 4.1. If the snapshots are failing run
yarn test -uand be sure that the new snapshots match your changes
- 4.1. If the snapshots are failing run
- Commit your changes. Don't forget to add a commit title with an emoji and a description.
- Push your changes.
- Submit your pull request.
How to add a gitmoji
- Open the gitmojis.json file located at
packages/gitmojis/src/gitmojis.json. - Add your emoji using the following code inside of the
gitmojis array []: - Add a new color to the emojiColorsMap.js file. Matching the name you added at the JSON file.
- Save the file and create a pull request.
{
"emoji": "",
"entity": "entity (Ex: 👀)",
"code": ":code:",
"description": "Enter the description for the gitmoji. Use present form for verbs.",
"name": "code (same as code but without ':' replace underscores for dashes _ => - )",
"semver": "The semantic versioning effect (can be `'major'`, `'minor'`, `'patch'` or `null` if the commit has no effect on the version)"
}
If you want to find the hexadecimal entity of icon, search for it in this site: http://graphemica.com/
Every suggestion will be reviewed carefully, ⚠️ take into account that not every suggestion will be accepted!
How to start the website
If you want to make changes to the site, follow the next steps:
- Clone gitmoji
$ git clone https://github.com/carloscuesta/gitmoji.git
$ cd gitmoji
- Install the dependencies and start the development server.
$ yarn install && yarn run dev
The project is built with Next.js