From d01b5b865bdf1ab826aecbfafecbe1b71f76cd49 Mon Sep 17 00:00:00 2001 From: Jerome Fitzgerald Date: Sat, 1 May 2021 14:42:47 -0400 Subject: [PATCH 1/5] =?UTF-8?q?fix-ci:=20=F0=9F=92=9A=20targets=20node12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 34290df1..ecb23014 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "scripts": { "branch": "git-cz --branch --allow-empty", - "build:binaries": "mkdirp binaries && pkg lib/cli.js --out-path binaries", + "build:binaries": "mkdirp binaries && pkg lib/cli.js --out-path binaries --targets node12", "build:cli": "browserify --node -o dist/cli.js lib/cli.js", "build:cz": "browserify --node -o dist/cz.js --standalone prompter lib/cz.js", "build": "yarn build:cli && yarn build:cz", From ee3f9c79ddf599fb24b8d0e330401b7e11eec301 Mon Sep 17 00:00:00 2001 From: Jerome Fitzgerald Date: Sat, 1 May 2021 14:43:02 -0400 Subject: [PATCH 2/5] =?UTF-8?q?ignore:=20=F0=9F=99=88=20new=20files=20for?= =?UTF-8?q?=20npm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.npmignore b/.npmignore index 1f1b32b5..76381b76 100644 --- a/.npmignore +++ b/.npmignore @@ -20,6 +20,7 @@ yarn.lock /build/ /docs/ # fork +.editorconfig .env .eslintignore .eslintrc.js @@ -30,7 +31,9 @@ yarn.lock .prettierrc.js CHANGELOG.md data/gitmoji/init.json +jsconfig.json lint-staged.config.js release.config.js renovate.json -scripts/ \ No newline at end of file +scripts/ +tsconfig.json From 8f627dc7be663afc3c65505023dace80ab2ba7f6 Mon Sep 17 00:00:00 2001 From: Jerome Fitzgerald Date: Sat, 1 May 2021 14:43:22 -0400 Subject: [PATCH 3/5] =?UTF-8?q?prune:=20=F0=9F=94=A5=20CHANGELOG.md=20(we?= =?UTF-8?q?=20use=20releases)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 170 --------------------------------------------------- 1 file changed, 170 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 479f6f7d..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,170 +0,0 @@ -## [4.7.6](https://github.com/streamich/git-cz/compare/v4.7.5...v4.7.6) (2020-12-07) - -### Bug Fixes - -- ๐Ÿ› move check for git folder to top ([cdf142c](https://github.com/streamich/git-cz/commit/cdf142cb8bbdc2186c04be31a443e79a377565d8)) - -## [4.7.5](https://github.com/streamich/git-cz/compare/v4.7.4...v4.7.5) (2020-11-30) - -### Bug Fixes - -- ๐Ÿ› pad-right ([1891a62](https://github.com/streamich/git-cz/commit/1891a62641fd978c3f9b46dedfcc1123d5490fde)) -- ๐Ÿ› pad-right ([94b063c](https://github.com/streamich/git-cz/commit/94b063c69cef87b3f0a5dc688a6a0c18f1daaa96)) - -## [4.7.4](https://github.com/streamich/git-cz/compare/v4.7.3...v4.7.4) (2020-11-18) - -### Bug Fixes - -- ๐Ÿ› add config option to change closed issue message ([#218](https://github.com/streamich/git-cz/issues/218)) ([dd88ce9](https://github.com/streamich/git-cz/commit/dd88ce967abed710c0fd3b784085567e5a2e0f4b)), closes [#215](https://github.com/streamich/git-cz/issues/215) - -## [4.7.3](https://github.com/streamich/git-cz/compare/v4.7.2...v4.7.3) (2020-11-11) - -### Bug Fixes - -- ๐Ÿ› multiple lines on Windows ([#210](https://github.com/streamich/git-cz/issues/210)) ([838d47b](https://github.com/streamich/git-cz/commit/838d47b6c4fedf0d19d50ecf0e48a3afd22ba308)), closes [#188](https://github.com/streamich/git-cz/issues/188) [#197](https://github.com/streamich/git-cz/issues/197) - -## [4.7.2](https://github.com/streamich/git-cz/compare/v4.7.1...v4.7.2) (2020-11-11) - -### Bug Fixes - -- ๐Ÿ› disable-emoji config being overwritten by default ([#211](https://github.com/streamich/git-cz/issues/211)) ([eb9eb06](https://github.com/streamich/git-cz/commit/eb9eb06004579a0f73eaa7852c22e790414e3ddb)), closes [#207](https://github.com/streamich/git-cz/issues/207) - -## [4.7.1](https://github.com/streamich/git-cz/compare/v4.7.0...v4.7.1) (2020-08-26) - -### Bug Fixes - -- ๐Ÿ› ignore "staged files check" when -a or --amend is passed ([206274f](https://github.com/streamich/git-cz/commit/206274ff1cfab9180fa3298f8cb9408e4971feca)), closes [#189](https://github.com/streamich/git-cz/issues/189) - -# [4.7.0](https://github.com/streamich/git-cz/compare/v4.6.2...v4.7.0) (2020-06-18) - -### Features - -- ๐ŸŽธ exit process when no files staged ([9fb4844](https://github.com/streamich/git-cz/commit/9fb4844758226798444ee74e16a0df1f3d9bc25b)) - -## [4.6.2](https://github.com/streamich/git-cz/compare/v4.6.1...v4.6.2) (2020-05-28) - -### Bug Fixes - -- ๐Ÿ› check for staged files ([78dec95](https://github.com/streamich/git-cz/commit/78dec9516b56cda86727534c76cf4f20f4f008c3)) -- ๐Ÿ› failing test (execSync not defined) ([b9b6969](https://github.com/streamich/git-cz/commit/b9b6969c05fe5d1dfc2687fa471190bde2a84c83)) - -## [4.6.1](https://github.com/streamich/git-cz/compare/v4.6.0...v4.6.1) (2020-05-27) - -### Bug Fixes - -- release revert of checking for staged files ([8a6ac6e](https://github.com/streamich/git-cz/commit/8a6ac6e3df1411bf910bb79360742aa34b1bc2a2)) - -# [4.6.0](https://github.com/streamich/git-cz/compare/v4.5.0...v4.6.0) (2020-05-25) - -### Bug Fixes - -- ๐Ÿ› test when in --dry-run mode ([1697c56](https://github.com/streamich/git-cz/commit/1697c561e8edc613d6087ab2ec84ab7617c0c1e5)) - -### Features - -- ๐ŸŽธ check for staged files ([c283ad3](https://github.com/streamich/git-cz/commit/c283ad3fac13eaf00a899b49da474c7608a61708)) - -# [4.5.0](https://github.com/streamich/git-cz/compare/v4.4.1...v4.5.0) (2020-05-16) - -### Features - -- ๐ŸŽธ manually bump version ([fb05bfb](https://github.com/streamich/git-cz/commit/fb05bfb03ee428ef97b397873c9e88da2902212a)) -- ๐ŸŽธ recursively search parent folders for config file ([ce04676](https://github.com/streamich/git-cz/commit/ce0467639c56de19f0c9f227d86ef06b570f6790)), closes [#60](https://github.com/streamich/git-cz/issues/60) - -## [4.4.1](https://github.com/streamich/git-cz/compare/v4.4.0...v4.4.1) (2020-05-16) - -### Bug Fixes - -- manually update version ([811025c](https://github.com/streamich/git-cz/commit/811025c962eab12af792c1d071438f26785266fb)) - -# [4.4.0](https://github.com/streamich/git-cz/compare/v4.3.1...v4.4.0) (2020-05-16) - -### Features - -- ๐ŸŽธ add --disable-emoji to --help and parse from CLI ([82dd0c9](https://github.com/streamich/git-cz/commit/82dd0c94ba13c9694d258a9c710f7c94409fa327)) -- ๐ŸŽธ add disable emoji flag ([52a43d9](https://github.com/streamich/git-cz/commit/52a43d95d66a5e0d4a1e1fd92993bf11de102a35)) - -## [4.3.1](https://github.com/streamich/git-cz/compare/v4.3.0...v4.3.1) (2020-02-03) - -### Bug Fixes - -- ๐Ÿ› fix git commit error ([b116ba0](https://github.com/streamich/git-cz/commit/b116ba0ed4206a173dfb63206ddf7c058e2046ba)) - -# [4.3.0](https://github.com/streamich/git-cz/compare/v4.2.0...v4.3.0) (2020-02-02) - -### Features - -- ๐ŸŽธ add help & version flags ([799fff2](https://github.com/streamich/git-cz/commit/799fff2d9da4ec04ad7ee85b01172a038020ae89)) -- ๐ŸŽธ improve help screen ([1838c1c](https://github.com/streamich/git-cz/commit/1838c1c5cb96d37b116234bb1ebe06721035ca46)) - -# [4.2.0](https://github.com/streamich/git-cz/compare/v4.1.0...v4.2.0) (2020-01-20) - -### Bug Fixes - -- ๐Ÿ› do not format body as undefined ([28d6e77](https://github.com/streamich/git-cz/commit/28d6e77ce7592d03c411b3f3c9cc69d1ea7c0e53)) - -### Features - -- ๐ŸŽธ Allow emojis in non-interactive and set defaults ([08cf19c](https://github.com/streamich/git-cz/commit/08cf19c36de6c34b4502435d9b12097474db5829)) -- ๐ŸŽธ can set answers through CLI in default mode ([99238c2](https://github.com/streamich/git-cz/commit/99238c2c1d2c6ed2f5ee209261c297ef4feed712)) -- ๐ŸŽธ non-interactive mode ([61b40db](https://github.com/streamich/git-cz/commit/61b40db85d668d1a7aa62588f18ba2ec15ba4667)) - -# [4.1.0](https://github.com/streamich/git-cz/compare/v4.0.0...v4.1.0) (2020-01-18) - -### Features - -- use fuzzy search for scopes and types ([e6d615f](https://github.com/streamich/git-cz/commit/e6d615f6d1c3934c3b94a0126e32b777c5d4ae8f)) - -# [4.0.0](https://github.com/streamich/git-cz/compare/v3.2.1...v4.0.0) (2020-01-16) - -### Bug Fixes - -- ๐Ÿ› Adhere to lerna settings for workspaces directory ([4151235](https://github.com/streamich/git-cz/commit/415123502b5f00e3988fc49b4643c945f91185e3)), closes [#85](https://github.com/streamich/git-cz/issues/85) -- ๐Ÿ› fixes autocomplete prompt import ([91226ba](https://github.com/streamich/git-cz/commit/91226ba829723ebd15afec52eaf53bb8cc64e210)) -- ๐Ÿ› fixes scope's empty string answer issue ([53dd466](https://github.com/streamich/git-cz/commit/53dd4667be95b1f28e13a8aeb203b1a2c8762ccb)) -- ๐Ÿ› make semantic-release publish to NPM ([6f5c836](https://github.com/streamich/git-cz/commit/6f5c836256bc893b3e2a7e3b141842e03a790c4e)) -- ๐Ÿ› simplify semantic-release config ([3872978](https://github.com/streamich/git-cz/commit/387297890a597fd1ad2456e8948ac12fabc4bcb9)) -- remove emojis when disableEmoji is true ([62915be](https://github.com/streamich/git-cz/commit/62915be714fc9628c4dba06e37c59f4212e5a532)) - -### Continuous Integration - -- ๐ŸŽก remove NPM semantic-release plugin for on release ([a9f23eb](https://github.com/streamich/git-cz/commit/a9f23eb96e45f8dba124a674bdf1c742fe51385e)) - -### Features - -- ๐ŸŽธ adds a feature to search for types ([f8c3452](https://github.com/streamich/git-cz/commit/f8c34521228460ffa72912012585acdbb6e40286)) -- ๐ŸŽธ adds git hooks support ([80176cd](https://github.com/streamich/git-cz/commit/80176cd3735c6a8988335964cfb6dbbaccce4703)), closes [#79](https://github.com/streamich/git-cz/issues/79) -- ๐ŸŽธ adds scope search in scopes question ([70bf18b](https://github.com/streamich/git-cz/commit/70bf18bb02881e2c566cfa8a1cb1af20d59b2af2)) - -### BREAKING CHANGES - -- ๐Ÿงจ Release new major - -## [3.2.1](https://github.com/streamich/git-cz/compare/v3.2.0...v3.2.1) (2019-07-01) - -### Bug Fixes - -- trigger again ([ee4cf18](https://github.com/streamich/git-cz/commit/ee4cf18)) -- trigger new release ([5457be9](https://github.com/streamich/git-cz/commit/5457be9)) - -# [3.2.0](https://github.com/streamich/git-cz/compare/v3.1.1...v3.2.0) (2019-07-01) - -### Bug Fixes - -- ๐Ÿ› don't add emoji to head only when "disableEmoji" is true ([45489c8](https://github.com/streamich/git-cz/commit/45489c8)) - -### Features - -- ๐ŸŽธ added disableEmojis on config ([448873e](https://github.com/streamich/git-cz/commit/448873e)) - -## [3.1.1](https://github.com/streamich/git-cz/compare/v3.1.0...v3.1.1) (2019-04-26) - -### Bug Fixes - -- build binaries on Travis ([10194a8](https://github.com/streamich/git-cz/commit/10194a8)) - -# [3.1.0](https://github.com/streamich/git-cz/compare/v3.0.1...v3.1.0) (2019-04-26) - -### Features - -- ๐ŸŽธ build binaries ([0a64804](https://github.com/streamich/git-cz/commit/0a64804)) From c1cca2e2f935967d64c920ad517af11e53920623 Mon Sep 17 00:00:00 2001 From: Jerome Fitzgerald Date: Sat, 1 May 2021 14:55:41 -0400 Subject: [PATCH 4/5] =?UTF-8?q?docs:=20=F0=9F=93=9D=20@jeromefitz/git-cz?= =?UTF-8?q?=20intall=20updates,=20why=20this=20fork=20=F0=9F=8D=B4?= =?UTF-8?q?=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 48 +++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 8626af54..7a66d376 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,46 @@ -# git-cz +# @jeromefitz/git-cz [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) -![image](https://user-images.githubusercontent.com/9773803/49760520-fa6c6f00-fcc4-11e8-84c4-80727f071487.png) +## Why this Fork + +```bash +npm i -g git-cz +added 1 package in 0.612s +``` + +Installs in 0.6s vs 31.1s. + +### But Why _this_ Fork + +I needed to customize some things, and seemed like the intent was breaking away from [`streamich/git-cz`](https://github.com/streamich/git-cz). + +- [x] Package Upgrades +- [x] Node12 Support +- [x] Subject Customization +- [x] Theming: Gitmoji โœจ๏ธ + - Semantic Versioning Requirements for CI/CD +- [x] Gitflow Brancing + - CLI Customizations +- [x] Codestyle Preference + - Getting there +- [ ] TypeScript Migration + - Eventually getting there ## Install ### Without installation ```shell -npx git-cz +yarn git-cz # or -npx git-cz -e +yarn git-cz -e ``` ### Install globally standalone ```shell -npm install -g git-cz +yarn global install @jeromefitz/git-cz git-cz # or git-cz -e @@ -26,8 +49,8 @@ git-cz -e ### Install locally with Commitizen ```shell -npm install -g commitizen -npm install --save-dev git-cz +yarn global install commitizen +yarn install --save-dev @jeromefitz/git-cz ``` `package.json`: @@ -51,7 +74,7 @@ git cz ### Install globally with Commitizen ```shell -npm install -g commitizen git-cz +yarn global install commitizen @jeromefitz/git-cz commitizen init git-cz --save-dev --save-exact ``` @@ -294,15 +317,6 @@ Select the packages the commit affected. The footer is the place to reference any tasks related to this commit. -## Why this Fork - -```bash -npm i -g git-cz -added 1 package in 0.612s -``` - -Installs in 0.6s vs 31.1s. - ```bash npm i -g mol-conventional-changelog added 345 packages in 31.076s From 4ddbf80477a715168029cbed384508a7ce314c1d Mon Sep 17 00:00:00 2001 From: Jerome Fitzgerald Date: Sat, 1 May 2021 15:02:58 -0400 Subject: [PATCH 5/5] =?UTF-8?q?patch:=20=F0=9F=A9=B9=20bump=20version=20fo?= =?UTF-8?q?r=20npm=20publish=20file=20reduction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also adds author, contributors, and keywords --- package.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/package.json b/package.json index ecb23014..916a15ee 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,17 @@ "git-cz": "./bin/git-cz.js", "gitcz": "./bin/git-cz.js" }, + "author": { + "name": "Vadim Dalecky", + "url": "http://onp4.com/@vadim/~js" + }, + "contributors": [ + { + "name": "Jerome Fitzgerald", + "email": "j@jeromefitzgerald.com", + "url": "https://jeromefitzgerald.com" + } + ], "repository": { "type": "git", "url": "git+ssh://git@github.com/jeromefitz/git-cz.git" @@ -16,6 +27,15 @@ "engines": { "node": ">=12" }, + "keywords": [ + "commit", + "commitizen", + "conventional changelog", + "format", + "gitflow", + "gitmoji", + "pretty" + ], "scripts": { "branch": "git-cz --branch --allow-empty", "build:binaries": "mkdirp binaries && pkg lib/cli.js --out-path binaries --targets node12",