UNPKG

cz-cc

Version:

Commitizen adaptor that follows the Conventional Commits specification (with support for semantic emoji โœจ)

95 lines (91 loc) โ€ข 3.05 kB
"use strict"; /*! Copyright 2021 Yusipeng Xuan Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Object.freeze({ useEmoji: true, useExclamationMark: false, maxHeaderLength: 50, minSubjectLength: 4, maxLineLength: 72, questions: ['type', 'scope', 'subject', 'body', 'breaking', 'issues'], defaultTypes: ['feat', 'fix', 'chore', 'refactor', 'style', 'test', 'perf', 'docs', 'ci', 'build', 'break'], scopes: [], types: { feat: { emoji: 'โœจ', value: 'feat', description: 'A new feature', }, fix: { emoji: '๐Ÿ›', value: 'fix', description: 'A bug fix', }, chore: { emoji: '๐Ÿ”ง', value: 'chore', description: 'Changes that do not modify src or test files', }, refactor: { emoji: '๐Ÿงน', value: 'refactor', description: 'Changes that neither fix a bug nor add a feature (renaming variable, file structure changes...)', }, style: { emoji: '๐Ÿ’„', value: 'style', description: 'Changes that do not affect the meaning of the code (white-space, formatting, semi-colons...)', }, test: { emoji: 'โœ…', value: 'test', description: 'Adding missing tests or correcting existing tests', }, perf: { emoji: 'โšก', value: 'perf', description: 'Changes that improves performance', }, docs: { emoji: '๐Ÿ“', value: 'docs', description: 'Documentation only changes', }, ci: { emoji: '๐Ÿ‘ท', value: 'ci', description: 'Changes to CI config files and scripts', }, build: { emoji: '๐Ÿ”จ', value: 'build', description: 'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)', }, break: { emoji: '๐Ÿ’ฅ', value: 'feat', description: 'A breaking change (alias to feat)', }, init: { emoji: '๐ŸŽ‰', value: 'feat', description: 'Initial commit (alias to feat)', }, revert: { emoji: 'โช', value: 'revert', description: 'Reverts a previous commit', }, } });