-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(emoji): add emoji support in commit
emoji support in commit, optimize cz promtp emoji
- Loading branch information
Showing
7 changed files
with
358 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
{ | ||
"gitmojis": [ | ||
{ | ||
"emoji": "🎨", | ||
"entity": "🎨", | ||
"code": ":art:", | ||
"description": "Improving structure / format of the code.", | ||
"name": "art" | ||
}, | ||
{ | ||
"emoji": "⚡️", | ||
"entity": "⚡", | ||
"code": ":zap:", | ||
"description": "Improving performance.", | ||
"name": "zap" | ||
}, | ||
{ | ||
"emoji": "🔥", | ||
"entity": "🔥", | ||
"code": ":fire:", | ||
"description": "Removing code or files.", | ||
"name": "fire" | ||
}, | ||
{ | ||
"emoji": "🐛", | ||
"entity": "🐛", | ||
"code": ":bug:", | ||
"description": "Fixing a bug.", | ||
"name": "bug" | ||
}, | ||
{ | ||
"emoji": "🚑", | ||
"entity": "🚑", | ||
"code": ":ambulance:", | ||
"description": "Critical hotfix.", | ||
"name": "ambulance" | ||
}, | ||
{ | ||
"emoji": "✨", | ||
"entity": "✨", | ||
"code": ":sparkles:", | ||
"description": "Introducing new features.", | ||
"name": "sparkles" | ||
}, | ||
{ | ||
"emoji": "📝", | ||
"entity": "📝", | ||
"code": ":memo:", | ||
"description": "Writing docs.", | ||
"name": "memo" | ||
}, | ||
{ | ||
"emoji": "🚀", | ||
"entity": "🚀", | ||
"code": ":rocket:", | ||
"description": "Deploying stuff.", | ||
"name": "rocket" | ||
}, | ||
{ | ||
"emoji": "💄", | ||
"entity": "&#ff99cc;", | ||
"code": ":lipstick:", | ||
"description": "Updating the UI and style files.", | ||
"name": "lipstick" | ||
}, | ||
{ | ||
"emoji": "🎉", | ||
"entity": "🎉", | ||
"code": ":tada:", | ||
"description": "Initial commit.", | ||
"name": "tada" | ||
}, | ||
{ | ||
"emoji": "✅", | ||
"entity": "✅", | ||
"code": ":white_check_mark:", | ||
"description": "Adding tests.", | ||
"name": "white-check-mark" | ||
}, | ||
{ | ||
"emoji": "🔒", | ||
"entity": "🔒", | ||
"code": ":lock:", | ||
"description": "Fixing security issues.", | ||
"name": "lock" | ||
}, | ||
{ | ||
"emoji": "🍎", | ||
"entity": "🍎", | ||
"code": ":apple:", | ||
"description": "Fixing something on macOS.", | ||
"name": "apple" | ||
}, | ||
{ | ||
"emoji": "🐧", | ||
"entity": "🐧", | ||
"code": ":penguin:", | ||
"description": "Fixing something on Linux.", | ||
"name": "penguin" | ||
}, | ||
{ | ||
"emoji": "🏁", | ||
"entity": "🏁", | ||
"code": ":checkered_flag:", | ||
"description": "Fixing something on Windows.", | ||
"name": "checkered-flag" | ||
}, | ||
{ | ||
"emoji": "🔖", | ||
"entity": "🔖", | ||
"code": ":bookmark:", | ||
"description": "Releasing / Version tags.", | ||
"name": "bookmark" | ||
}, | ||
{ | ||
"emoji": "🚨", | ||
"entity": "🚨", | ||
"code": ":rotating_light:", | ||
"description": "Removing linter warnings.", | ||
"name": "rotating-light" | ||
}, | ||
{ | ||
"emoji": "🚧", | ||
"entity": "🚧", | ||
"code": ":construction:", | ||
"description": "Work in progress.", | ||
"name": "construction" | ||
}, | ||
{ | ||
"emoji": "💚", | ||
"entity": "💚", | ||
"code": ":green_heart:", | ||
"description": "Fixing CI Build.", | ||
"name": "green-heart" | ||
}, | ||
{ | ||
"emoji": "⬇️", | ||
"entity": "⬇️", | ||
"code": ":arrow_down:", | ||
"description": "Downgrading dependencies.", | ||
"name": "arrow-down" | ||
}, | ||
{ | ||
"emoji": "⬆️", | ||
"entity": "⬆️", | ||
"code": ":arrow_up:", | ||
"description": "Upgrading dependencies.", | ||
"name": "arrow-up" | ||
}, | ||
{ | ||
"emoji": "👷", | ||
"entity": "👷", | ||
"code": ":construction_worker:", | ||
"description": "Adding CI build system.", | ||
"name": "construction-worker" | ||
}, | ||
{ | ||
"emoji": "📈", | ||
"code": ":chart_with_upwards_trend:", | ||
"description": "Adding analytics or tracking code.", | ||
"name": "chart-with-upwards-trend" | ||
}, | ||
{ | ||
"emoji": "🔨", | ||
"entity": "🛠", | ||
"code": ":hammer:", | ||
"description": "Heavy refactoring.", | ||
"name": "hammer" | ||
}, | ||
{ | ||
"emoji": "➖", | ||
"entity": "➖", | ||
"code": ":heavy_minus_sign:", | ||
"description": "Removing a dependency.", | ||
"name": "heavy-minus-sign" | ||
}, | ||
{ | ||
"emoji": "🐳", | ||
"entity": "🐳", | ||
"code": ":whale:", | ||
"description": "Work about Docker.", | ||
"name": "whale" | ||
}, | ||
{ | ||
"emoji": "➕", | ||
"entity": "➕", | ||
"code": ":heavy_plus_sign:", | ||
"description": "Adding a dependency.", | ||
"name": "heavy-plus-sign" | ||
}, | ||
{ | ||
"emoji": "🔧", | ||
"entity": "🔧", | ||
"code": ":wrench:", | ||
"description": "Changing configuration files.", | ||
"name": "wrench" | ||
}, | ||
{ | ||
"emoji": "🌐", | ||
"entity": "🌐", | ||
"code": ":globe_with_meridians:", | ||
"description": "Internationalization and localization.", | ||
"name": "globe-with-meridians" | ||
}, | ||
{ | ||
"emoji": "✏️", | ||
"entity": "", | ||
"code": ":pencil2:", | ||
"description": "Fixing typos.", | ||
"name": "pencil" | ||
}, | ||
{ | ||
"emoji": "💩", | ||
"entity": "", | ||
"code": ":hankey:", | ||
"description": "Writing bad code that needs to be improved.", | ||
"name": "hankey" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @since 2016-11-23 10:08 | ||
* @author vivaxy | ||
*/ | ||
|
||
import inquirer from 'inquirer'; | ||
|
||
export default async() => { | ||
const questions = [ | ||
{ | ||
type: `input`, | ||
name: `commitMessage`, | ||
message: `please enter commit message:\n`, | ||
validate: (msg) => { | ||
if (!msg.length) { | ||
return `commit message is required`; | ||
} | ||
return true; | ||
}, | ||
}, | ||
]; | ||
const answers = await inquirer.prompt(questions); | ||
return answers.commitMessage; | ||
} |
Oops, something went wrong.