UNPKG

@storm-software/git-tools

Version:

Tools for managing Git repositories within a Nx workspace.

74 lines (70 loc) 2.33 kB
'use strict'; var chunkYBAE6I5L_cjs = require('./chunk-YBAE6I5L.cjs'); var chunk4VPJA7YJ_cjs = require('./chunk-4VPJA7YJ.cjs'); // src/commit/config/minimal.ts var DEFAULT_MINIMAL_COMMIT_QUESTIONS = { type: { type: "select", title: "Commit Type", description: "Select the commit type that best describes your changes", enum: Object.keys(chunk4VPJA7YJ_cjs.DEFAULT_COMMIT_TYPES).filter( (type) => chunk4VPJA7YJ_cjs.DEFAULT_COMMIT_TYPES[type].hidden !== true ).reduce((ret, type) => { ret[type] = chunk4VPJA7YJ_cjs.DEFAULT_COMMIT_TYPES[type]; return ret; }, {}), defaultValue: "chore", maxLength: 20, minLength: 3 }, subject: { type: "input", title: "Commit Subject", description: "Write a short, imperative tense description of the change", maxLength: 150, minLength: 3 }, body: { type: "input", title: "Commit Body", description: "Provide a longer description of the change", maxLength: 600 }, isBreaking: { type: "confirm", title: "Breaking Changes", description: "Are there any breaking changes as a result of this commit?", defaultValue: false }, breakingBody: { type: "input", title: "Breaking Changes (Details)", description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself", when: (answers) => answers.isBreaking === true, maxLength: 600, minLength: 3 }, isIssueAffected: { type: "confirm", title: "Open Issue Affected", description: "Does this change impact any open issues?", defaultValue: false }, issuesBody: { type: "input", title: "Open Issue Affected (Details)", description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself", when: (answers) => answers.isIssueAffected === true, maxLength: 600, minLength: 3 } }; var config = { settings: chunk4VPJA7YJ_cjs.COMMIT_CONFIGS.minimal.commitlint.settings, messages: chunkYBAE6I5L_cjs.DEFAULT_COMMIT_PROMPT_MESSAGES, questions: DEFAULT_MINIMAL_COMMIT_QUESTIONS, types: chunk4VPJA7YJ_cjs.DEFAULT_COMMIT_TYPES }; var minimal_default = config; exports.DEFAULT_MINIMAL_COMMIT_QUESTIONS = DEFAULT_MINIMAL_COMMIT_QUESTIONS; exports.minimal_default = minimal_default;