Skip to content

Commit

Permalink
chore: update name
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Oct 20, 2022
1 parent 7c6392f commit 0ac2801
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 21 deletions.
26 changes: 15 additions & 11 deletions README.md
@@ -1,9 +1,9 @@
# :sparkles: Devmoji

[![Node CI](https://github.com/folke/devmoji/workflows/Node%20CI/badge.svg)](https://github.com/folke/devmoji/actions)
[![Node CI](https://github.com/megasanjay/devmoji/workflows/Node%20CI/badge.svg)](https://github.com/megasanjay/devmoji/actions)
[![npm](https://img.shields.io/npm/v/devmoji)](https://www.npmjs.com/package/devmoji)
[![GitHub](https://img.shields.io/github/license/folke/devmoji)](https://github.com/folke/devmoji/blob/master/LICENSE)
[![GitHub top language](https://img.shields.io/github/languages/top/folke/devmoji)](https://github.com/folke/devmoji/)
[![GitHub](https://img.shields.io/github/license/megasanjay/devmoji)](https://github.com/megasanjay/devmoji/blob/master/LICENSE)
[![GitHub top language](https://img.shields.io/github/languages/top/megasanjay/devmoji)](https://github.com/megasanjay/devmoji/)
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)

Using [Conventional Commits :star:](https://www.conventionalcommits.org/) as a
Expand Down Expand Up @@ -33,9 +33,9 @@ Some of the things **Devmoji** can do:
What does it look like?

- see the commit messages of the Devmoji
[github repository](https://github.com/folke/devmoji)
[github repository](https://github.com/megasanjay/devmoji)
- generated Devmoji
[CHANGELOG.md](https://github.com/folke/devmoji/blob/master/CHANGELOG.md)
[CHANGELOG.md](https://github.com/megasanjay/devmoji/blob/master/CHANGELOG.md)

## :package: Installation

Expand Down Expand Up @@ -149,8 +149,10 @@ only really useful as a `prepare-commit-msg` or `commit-msg` hook.

When to use what hook?

* `prepare-commit-msg`: use this if you do not use **Devmnojis** `--lint` option and want to use it with something like [commitlint](https://commitlint.js.org/) instead.
* `commit-msg`: use this hook if you also want to use **Devmoji** for linting
- `prepare-commit-msg`: use this if you do not use **Devmnojis** `--lint` option
and want to use it with something like
[commitlint](https://commitlint.js.org/) instead.
- `commit-msg`: use this hook if you also want to use **Devmoji** for linting

Configuration using [Husky](https://typicode.github.io/husky/)

Expand All @@ -177,7 +179,9 @@ Configuration using [Yorkie](https://www.npmjs.com/package/yorkie)
> use something like `npx --no-install devmoji -e` instead of the commands
> above.
> Alternatively, if you don't want to use **Husky** or **Yorkie**, you can [manually](https://github.com/folke/devmoji/issues/87) create the git hooks.
> Alternatively, if you don't want to use **Husky** or **Yorkie**, you can
> [manually](https://github.com/megasanjay/devmoji/issues/87) create the git
> hooks.
### `devmoji --log`

Expand All @@ -194,17 +198,17 @@ $ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgree
> I'll use my alias `git l`, instead of the above, for clarity. The
> `devmoji --format strip` is only for demonstration purposes, since all devmoji
> commits already have emoji
> ![devmoji --list](https://github.com/folke/devmoji/raw/master/assets/git--log.png)
> ![devmoji --list](https://github.com/megasanjay/devmoji/raw/master/assets/git--log.png)
> using `devmoji --log` >
> ![devmoji --list](https://github.com/folke/devmoji/raw/master/assets/devmoji--log.png)
> ![devmoji --list](https://github.com/megasanjay/devmoji/raw/master/assets/devmoji--log.png)
### `devmoji --list`

To get a list of all available **Devmoji**, run with `--list`. (see also
[Default Devmoji](###Default-Devmoji))

![devmoji --list](https://github.com/folke/devmoji/raw/master/assets/devmoji--list.png)
![devmoji --list](https://github.com/megasanjay/devmoji/raw/master/assets/devmoji--list.png)

## :gear: Configuration

Expand Down
4 changes: 2 additions & 2 deletions __tests__/conventional-commits.ts
Expand Up @@ -82,11 +82,11 @@ eat(cli): 🚨 testing`)

test("should", () => {
const text =
"* 8f16492 - feat(cli): ✨ added cli for working with devmoji 🚀 (19 hours ago) <Folke Lemaitre>"
"* 8f16492 - feat(cli): ✨ added cli for working with devmoji 🚀 (19 hours ago) <Sanjay Soundarajan>"
const cc = new ConventionalCommits(new Devmoji(new Config()))

expect(cc.formatLog(text)).toBe(
"* 8f16492 - feat(cli): ✨ added cli for working with devmoji 🚀 (19 hours ago) <Folke Lemaitre>"
"* 8f16492 - feat(cli): ✨ added cli for working with devmoji 🚀 (19 hours ago) <Sanjay Soundarajan>"
)
})

Expand Down
4 changes: 2 additions & 2 deletions __tests__/lint.ts
Expand Up @@ -6,7 +6,7 @@ test("should", async () => {
fixup! foo
squash!
revert something
Merge branch 'master' of github.com:folke/devmoji
Merge branch 'master' of github.com:megasanjay/devmoji
style: 🎨 Prettier 2.0
chore(release): 2.1.8 [skip ci]
fix(deps): update dependency chalk to v4 (#49)
Expand Down Expand Up @@ -35,7 +35,7 @@ test("should", async () => {
}

const invalid = `Style: 🎨 prettier 2.0
Merging branch 'master' of github.com:folke/devmoji
Merging branch 'master' of github.com:megasanjay/devmoji
style 🎨 Prettier 2.0
chorerelease): 2.1.8 [skip ci]
fix(deps) update dependency chalk to v4 (#49)
Expand Down
19 changes: 13 additions & 6 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "devmoji",
"version": "2.3.2",
"name": "megasanjay-devmoji",
"version": "2.4.0",
"description": "Enhance your conventional commits with gitmoji",
"keywords": [
"cli",
Expand All @@ -17,7 +17,14 @@
"terminal"
],
"author": "Folke Lemaitre <folke.lemaitre@gmail.com>",
"homepage": "https://github.com/folke/devmoji#readme",
"contributors": [
{
"name": "Sanjay Soundarajan",
"email": "contact@sanjaysoundarajan.dev",
"url": "https://sanjaysoundarajan.dev"
}
],
"homepage": "https://github.com/megasanjay/devmoji#readme",
"license": "MIT",
"main": "lib/cli.js",
"files": [
Expand All @@ -31,7 +38,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/folke/devmoji.git"
"url": "https://github.com/megasanjay/devmoji.git"
},
"scripts": {
"generate:emoji": "npx ts-node --transpile-only src/scripts/updater.ts",
Expand All @@ -51,7 +58,7 @@
},
"husky": {
"hooks": {
"prepare-commit-msg": "npx --no-install devmoji -e --lint"
"prepare-commit-msg": "npx --no-install megasanjay-devmoji -e --lint"
}
},
"ultra": {
Expand Down Expand Up @@ -103,4 +110,4 @@
"resolutions": {
"minimist": "^1.2.2"
}
}
}

0 comments on commit 0ac2801

Please sign in to comment.