{"versions":{"0.0.1":{"version":"0.0.1","name":"cz-custom","description":"Commitizen customizable adapter following the conventional-changelog format.","main":"index.js","types":"index.d.ts","bin":{"cz-customizable":"standalone.js","cz-cust":"standalone.js"},"scripts":{"lint":"eslint --fix *.js __tests__/**.js","test":"jest","test:watch":"jest -- --watch","prettier":"prettier --single-quote --trailing-comma es5 --write '*.js' 'spec/**/*.js'","commit":"npm run lint && npm run test && ./standalone.js"},"homepage":"https://github.com/XPoet/cz-customizable","repository":{"type":"git","url":"git+https://github.com/XPoet/cz-customizable.git"},"author":{"name":"XPoet","email":"i@xpoet.cn"},"contributors":[{"name":"Leonardo Correa","email":"leonardoanalista@gmail.com"},{"name":"Aleksey Guryanov","email":"gurianov@gmail.com"}],"license":"MIT","dependencies":{"editor":"1.0.0","find-config":"^1.0.0","inquirer":"^8.0.0","lodash":"^4.17.19","temp":"^0.9.0","word-wrap":"^1.2.3"},"devDependencies":{"@babel/core":"^7.18.6","@babel/preset-env":"^7.18.6","babel-jest":"^28.1.2","commitizen":"^4.2.4","eslint":"^8.19.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.22.0","eslint-plugin-prettier":"^4.2.1","ghooks":"^2.0.4","jest":"^28.1.2","prettier":"^2.7.1","semantic-release":"^19.0.3"},"config":{"commitizen":{"path":"./index.js"},"cz-customizable":{"config":"cz-config-EXAMPLE.js"}},"bugs":{"url":"https://github.com/XPoet/cz-customizable/issues"},"directories":{"lib":"lib"},"keywords":["cz-custom"],"gitHead":"dd67f2d5d84ce54b96ac3f10973a843f6759acf6","_id":"cz-custom@0.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Uh3vanRnzHMDmfdqmFVwWvxa3OS+tSrrT3zaDjw7dXlppRNqDXmEzUGtij8Ck+DdZYiU22zAysm06LAWNdntww==","shasum":"c15fc99f473f8ec3c3b171dc7d6e74d9b6a808d7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cz-custom/-/cz-custom-0.0.1.tgz","fileCount":17,"unpackedSize":120534,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBhdwv+WvxCBBkyuO4wkc9fVwfCxu5UUxOgj7C9mipKZAiBLZLn5lpvLt54/Q/xslIpLbeLGom+j4XlL3NtwDBsZjw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6yxiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovyQ/+L6hjoGykoTE/0/4+SGn9ro2D8oKrYoXpSBxsKfFvcK/FWjdk\r\nKAKU5g191bz7OTc4Kc6ZV9VfAF8HHfQy7tTGgZyHA28oJ3vo4wDoqFCTvfdE\r\nyeUJd1D4AsnKpgepLc8OgW5J2usIdFMZn1th1vptEJJRIVwHHfK0P9tOYakG\r\nw0sQnieRw2lNBl5/XZ4sYKXD8H54IyJkuqr3/pTYa3Uz75bAOEwQv/k3MILy\r\nwTiVi0zqMrl8d+P3o7xPcmL8wlgZIj6ijYd8NWCchAM7HpduVS3tRrI0DLoy\r\nAxPpBjegntdo1mWrSZ+GjOohHog+wJ96fUhPXwhgd19FyB8AWL3Qqb+N+Qzn\r\nGrVlcc1l90vrXJWVpfk3w9VZIxc5qQ0Mh4FVgcbxDBmQjyIar8TRncePkLbk\r\nmF8D7Ufi2ldv4le33mmOrR4dt1sMM9kFB3ovEoHtcZ6AXKwcfIcGMCextSo9\r\nWNZuaJp9C0dyxPQ30Av0wc1lQa9cqsxoxti1kx4lTqda2FLS5/bnlHm9z1AL\r\nd3CugCupqrZXKAC+NwyTBM9B35dwI3QepUgDSVa7QPIZXH/ps2olV3Aeaqao\r\nMkY6RfJw4ab8l1iUfAiE3Bg0a28ZM6T1Z4PpksgEHVnZ6oi8cGmd06wfAEz+\r\nY/pdZAjE2fi2YFQbIBqMcjQU5ULOee8tjzQ=\r\n=UoPL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anonymous","email":"i@xpoet.cn"},"maintainers":[{"name":"anonymous","email":"i@xpoet.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cz-custom_0.0.1_1659579489910_0.9673629887669104"},"_hasShrinkwrap":false},"0.0.2":{"version":"0.0.2","name":"cz-custom","description":"Commitizen customizable adapter following the conventional-changelog format.","main":"index.js","types":"index.d.ts","bin":{"cz-custom":"standalone.js"},"scripts":{"lint":"eslint --fix *.js __tests__/**.js","test":"jest","test:watch":"jest -- --watch","prettier":"prettier --single-quote --trailing-comma es5 --write '*.js' 'spec/**/*.js'","commit":"npm run lint && npm run test && ./standalone.js"},"homepage":"https://github.com/XPoet/cz-customizable","repository":{"type":"git","url":"git+https://github.com/XPoet/cz-customizable.git"},"author":{"name":"XPoet","email":"i@xpoet.cn"},"contributors":[{"name":"Leonardo Correa","email":"leonardoanalista@gmail.com"},{"name":"Aleksey Guryanov","email":"gurianov@gmail.com"}],"license":"MIT","dependencies":{"editor":"1.0.0","find-config":"^1.0.0","inquirer":"^8.0.0","lodash":"^4.17.19","temp":"^0.9.0","word-wrap":"^1.2.3"},"devDependencies":{"@babel/core":"^7.18.6","@babel/preset-env":"^7.18.6","babel-jest":"^28.1.2","commitizen":"^4.2.4","eslint":"^8.19.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.22.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.2","prettier":"^2.7.1"},"config":{"commitizen":{"path":"./index.js"},"cz-custom":{"config":"cz-config-EXAMPLE.js"}},"bugs":{"url":"https://github.com/XPoet/cz-customizable/issues"},"directories":{"lib":"lib"},"keywords":["cz-custom"],"gitHead":"d25e431ece995499eca52319a65c00239bc6b0e6","_id":"cz-custom@0.0.2","_nodeVersion":"16.16.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-vT82MJ1QhgPgvOrIs9thqvSonqOmGETnfcUDMT3zPmLNSeaszhQ6jtlGaTRQ6egqWVuiQAC7Tc3/Ad/LKrPYdw==","shasum":"3fb347c359bdae8d2c9f11928eb95efc474d2be1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cz-custom/-/cz-custom-0.0.2.tgz","fileCount":17,"unpackedSize":120084,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzGMCps0XBNnocLb24+60OSXZyvDrHRU7wtGchbl+BfAiEArUVJcguk5PkaVpwBWX3OoqFwXDLoh9WT3JUOJ7n1UCo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6zr3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1kw/+Loh2lr1TPbcApmS14BhoWzyvpjVAF1g+Ff5h5O3FkVzUhx2H\r\nC25U6l4iKako4XcyGcYchAImqnhnKcItb53AkuyGM5vQ438X89gAbskG3NTe\r\nPNhOCSlUbxWf/BOdiH6O1tN5L94Y0d8ICojhLVxwVFh2nsoDNUmD4LPodLT4\r\nsLlLz4FBuXRrzvZ+Zkc26eldVPl/C3vNJMM9VkE2ALTuKEJGPyoLwTemfCow\r\naXMAo6W/OZerDz6gKSEjSqAnUrNZ7MKThYscmxL3bViM67Fu24DUhfeu9UFt\r\nXrVjmWrNlj7/WDYcb1xzp5kQwOL2FwkwePctC0SV3gq9XPTnR9TJeXNy92k9\r\np6ncVkfPaSdHoMhBtaJuMkNEFxk1kDNXgFavuzCAzDPQbZpAtQQuWXY0BJGP\r\nx40oMFzN2Tef5eobm9+ktg/Xo248YeDuZBDjBTg1e7U+iL18bXVDW17cO8Do\r\nZSRc7b1vi+PkSRIRjmVspAbk8oLBFtwqRAqe9WasWidPbauoi13nmI+5/4li\r\nVJ41mYunaLjvm5qZ8TzybODtQ+ymVNRvgjUc1ovszB7zy0qeztiyOAUOt9St\r\nSV94HSjNhgqDp2bg/BPwNfWGK5iOwTqvEdMfh+3+4tsv7oc6be2Z/0SSJEUY\r\n61Y+NINwGAoirfU8w30W71UmX4VajZONM7E=\r\n=wNeS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anonymous","email":"i@xpoet.cn"},"maintainers":[{"name":"anonymous","email":"i@xpoet.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cz-custom_0.0.2_1659583223592_0.17892974503696624"},"_hasShrinkwrap":false}},"dist-tags":{"latest":"0.0.2"},"name":"cz-custom","time":{"created":"2022-08-04T02:18:19.602Z","0.0.1":"2022-08-04T02:18:10.067Z","modified":"2022-08-04T03:21:07.538Z","0.0.2":"2022-08-04T03:20:23.864Z"},"readme":"# cz-custom\r\n\r\n> forked from [leoforfree/cz-customizable](https://github.com/leoforfree/cz-customizable)\r\n\r\nThe customizable Commitizen plugin (or standalone utility) to help achieve consistent commit messages like the [AngularJS team](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-git-commit-guidelines).\r\n\r\n![screenshot](screenshot.png)\r\n\r\nSuitable for large teams working with multiple projects with their own commit scopes. It allows you to **select** the pre-defined scopes or commit types. It works perfectly with https://github.com/semantic-release/semantic-release.\r\n\r\n\r\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\r\n[![npm monthly downloads](https://img.shields.io/npm/dm/cz-custom.svg?style=flat-square)](https://www.npmjs.com/package/cz-custom)\r\n[![bundlephobia](https://badgen.net/bundlephobia/minzip/cz-custom)](https://bundlephobia.com/package/cz-custom)\r\n\r\n\r\nYou have two ways to use `cz-custom`. Originally, this project started as a commitizen plugin (Option 1). \r\n\r\nWe introduced the second option to run this `cz-custom` in standalone mode (Option 2), just like any NodeJS script. It's recommended to use `Option 2` for simplicity. The way you configure is shared between both options.\r\n\r\n# Quick start **(New, recommended)**\r\n## Configuration\r\n\r\n* Copy contents of [the example config file](./cz-config-EXAMPLE.js) and paste into a new file `.cz-config.js`\r\n* move file `cz-config.js` to your home directory.\r\n\r\n## cz-custom via global install\r\n\r\n`npm i cz-custom -g`\r\n\r\nThen run `cz-custom` from your root repo.\r\n\r\nIf everything is correct, you should see commit questions like the image above.\r\n\r\n# Slow start\r\n\r\n## Option 1 - cz-custom via npx\r\n\r\n`npx cz-custom`\r\n\r\n\r\n## Option 2 - cz-custom in standalone mode\r\n\r\nUse `cz-custom` without `commitzen`.\r\n\r\n* npm install `npm install cz-custom --save-dev`\r\n* add a new script to your `package.json`:\r\n\r\n```\r\n\"scripts\" : {\r\n  ...\r\n  \"commit\": \"./node_modules/cz-custom/standalone.js\"\r\n}\r\n```\r\n\r\n* See options below how to create and where you could put your `.cz-config.js` file.\r\n* now run: `npm run commit`.\r\n\r\n\r\n## Option 3 - cz-custom as commitizen plugin\r\n\r\nThis is how this project started.\r\n\r\n* install commitizen in case you don't have it: `npm install -g commitizen`. Make sure you have the latest version of commitizen installed globally.\r\n\r\n* configure `commitizen` to use `cz-custom` as plugin. Add those lines to your `package.json`:\r\n\r\n```\r\n...\r\n\"config\": {\r\n  \"commitizen\": {\r\n    \"path\": \"node_modules/cz-custom\"\r\n  }\r\n}\r\n```\r\n\r\n\r\n## Configuration (Shared between options 1,2 and 3)\r\n\r\n* Copy contents of [the example config file](./cz-config-EXAMPLE.js) and paste into a new file `.cz-config.js`\r\n\r\n\r\n### Option 1 - You can make changes to your git repository, file `package.json`.\r\n\r\n* `cz-custom` will first look for a file called `.cz-config.js` or `.config/cz-config.js` in the project root, near your `package.json`\r\n* If no config found, it will look for `.cz-config.js` or `.config/cz-config.js` in your home directory\r\n* alternatively add the config location in your `package.json`:\r\n```\r\n...\r\n\"config\": {\r\n  \"commitizen\": { // not needed for standlone usage\r\n    \"path\": \"node_modules/cz-custom\"\r\n  },\r\n  \"cz-custom\": {\r\n    \"config\": \"config/path/to/my/config.js\"\r\n  }\r\n}\r\n```\r\n\r\nNote: option one allows you to have your config away from root directory. It also gives you a change to define any name to your `.cz-config.js`.\r\n\r\n\r\n### No Changes to your git repository*.\r\n\r\nThis is suitable when your team is not ready to roll `cz-custom` across all teams but you still would like to use it for your own commits, no matter the project.\r\n\r\nSteps:\r\n* create config file:\r\n  * create a file called `.cz-config.js` in your git repository root (*Assumptions: you git ignore global on `~/.gitignore_global` for `.cz-config.js`). Or;\r\n  * create a file called `.cz-config.js` your home directory.\r\n\r\n#### Additional steps when used as commitizen plugin\r\n\r\n* `npm install -g commitizen`\r\n* `npm install -g cz-custom`. Make sure you have version `>v5.6.x`\r\n* create global commitizen config file `.czrc`: `echo '{ \"path\": \"cz-custom\" }' > ~/.czrc`\r\n* now run: `npx git-cz` or `git cz`.\r\n\r\n\r\n**Notes:**\r\n* you should commit your `.cz-config.js` file to your git when applicable.\r\n\r\n\r\nHopefully this will help you to have consistent commit messages and have a fully automated deployment without any human intervention.\r\n\r\n\r\n---\r\n## Options\r\n\r\nHere are the options you can set in your `.cz-config.js`:\r\n\r\n* **subjectLimit**: {number, default 100}: This is the subject limit. Example: `this is a new feature` or `fix a bug`\r\n* **subjectSeparator**: {string, default ': '}: This is the subject separator. Example: `feat: this is a new feature`\r\n* **typePrefix**: {string, default ''}: This is the commit type prefix. Example: config: `{ typePrefix: '[' }`, result: `[feat: this is a new feature`\r\n* **typeSuffix**: {string, default ''}: This is the commit type suffix. Example: config: `{ typePrefix: '[', typeSuffix: ']', subjectSeparator: ' ' }`, result: `[feat] this is a new feature`\r\n\r\n* **scopes**: {Array of Strings}: Specify the scopes for your particular project. Eg.: for some banking system: [\"acccounts\", \"payments\"]. For another travelling application: [\"bookings\", \"search\", \"profile\"]\r\n* **scopeOverrides**: {Object where key contains a Array of String}: Use this when you want to override scopes for a specific commit type. Example below specify scopes when type is `fix`:\r\n  ```\r\n  scopeOverrides: {\r\n    fix: [\r\n      {name: 'merge'},\r\n      {name: 'style'},\r\n      {name: 'e2eTest'},\r\n      {name: 'unitTest'}\r\n    ]\r\n  }\r\n  ```\r\n* **allowCustomScopes**: {boolean, default false}: adds the option `custom` to scope selection so you can still type a scope if you need.\r\n* **allowEmptyScopes**: {boolean, default false}: allow non-selection or not to fill in the scopes.\r\n* **customScopesName**: {string, default 'custom scopes'}: custom scopes label in terminal scopes list.\r\n* **emptyScopesName**: {string, default 'empty scopes'}: empty scopes label in terminal scopes list.\r\n* **allowBreakingChanges**: {Array of Strings: default none}. List of commit types you would like to the question `breaking change` prompted. Eg.: ['feat', 'fix'].\r\n* **skipQuestions**: {Array of Strings: default none}. List of questions you want to skip. Eg.: ['body', 'footer'].\r\n* **skipEmptyScopes**: {boolean, default false}: If a chosen type has no scopes declared, skip the scope question\r\n* **appendBranchNameToCommitMessage**: If you use `cz-custom` with `cz-customizable-ghooks`, you can get the branch name automatically appended to the commit message. This is done by a commit hook on `cz-customizable-ghooks`. This option has been added on `cz-customizable-ghooks`, v1.3.0. Default value is `true`.\r\n* **ticketNumberPrefix**: {string, default 'ISSUES CLOSED:'}: Set custom prefix for footer ticker number.\r\n* **breakingPrefix**: {string, default 'BREAKING CHANGE:'}: Set a custom prefix for the breaking change block in commit messages.\r\n* **footerPrefix**: {string, default 'ISSUES CLOSED:'}: Set a custom prefix for the footer block in commit messages. Set to empty string to remove prefix.\r\n* **breaklineChar**: {string, default '|'}: It gets replaced with \\n to create the breakline in your commit message. This is supported for fields `body` and `footer` at the moment.\r\n* **upperCaseSubject**: { boolean, default false }: Capitalizes first subject letter if set to `true`\r\n* **askForBreakingChangeFirst**: { boolean, default false }: It asks for breaking change as first question when set to `true`\r\n\r\n## Related tools\r\n- (https://github.com/commitizen/cz-cli)\r\n- (https://github.com/leonardoanalista/corp-semantic-release)\r\n- (https://github.com/semantic-release/semantic-release)\r\n- (https://github.com/uglow/cz-customizable-ghooks)\r\n\r\n\r\n\r\n## GOTCHAS\r\n\r\n* backticks\r\nIf you wish to have backticks in your content, for example \"feat: \\`string\\`\", the commit preview will be \"feat: \\\\\\`string\\\\\\`\".\r\nDon't worry because on your `git log` will be \"feat: \\`string\\`\" as desired.\r\n\r\n* multiline contents on the body of the message\r\nBody is the only place where you can use a `pipe` to break lines.\r\nE.g.: you type this: `my items are:| - item01| - item 02`, which will become:\r\n\r\n\r\n```\r\nmy items are:\r\n - item01\r\n - item 02\r\n```\r\n\r\n\r\n## CONTRIBUTING\r\n\r\n### Contributor Guidelines\r\n* if you add a new config property, please remember to update files `README.md` and `index.d.ts`.\r\n* add or update relevant tests\r\n* Favor non-breaking changes when possible\r\n* Send preliminary PR if you would like to start a discussion\r\n\r\n### Conduct of Code:\r\n* Be polite, respectful and understanding that we are all here after working hours spending time to build something useful to all.\r\n* We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience\r\n\r\n\r\n\r\nLeonardo Correa","users":{}}