| 
 | 1 | +'use strict'  | 
 | 2 | + | 
 | 3 | +module.exports = {  | 
 | 4 | +  extends: ['cz'],  | 
 | 5 | +  types: [  | 
 | 6 | +    { value: 'feat', name: 'feat: A new feature' },  | 
 | 7 | +    { value: 'fix', name: 'fix: A bug fix' },  | 
 | 8 | +    { value: 'docs', name: 'docs: Documentation only changes' },  | 
 | 9 | +    {  | 
 | 10 | +      value: 'style',  | 
 | 11 | +      name: 'style: Changes that do not affect the meaning of the code\n(white-space, formatting, missing semi-colons, etc)',  | 
 | 12 | +    },  | 
 | 13 | +    {  | 
 | 14 | +      value: 'refactor',  | 
 | 15 | +      name: 'refactor: A code change that neither fixes a bug nor adds a feature',  | 
 | 16 | +    },  | 
 | 17 | +    {  | 
 | 18 | +      value: 'perf',  | 
 | 19 | +      name: 'perf: A code change that improves performance',  | 
 | 20 | +    },  | 
 | 21 | +    { value: 'test', name: 'test: Adding missing tests' },  | 
 | 22 | +    {  | 
 | 23 | +      value: 'build',  | 
 | 24 | +      name: 'build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',  | 
 | 25 | +    },  | 
 | 26 | +    {  | 
 | 27 | +      value: 'ci',  | 
 | 28 | +      name: 'ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)',  | 
 | 29 | +    },  | 
 | 30 | +    {  | 
 | 31 | +      value: 'chore',  | 
 | 32 | +      name: 'chore: Changes to the build process or auxiliary tools\nand libraries such as documentation generation',  | 
 | 33 | +    },  | 
 | 34 | +    { value: 'revert', name: 'revert: Reverts a previous commit' },  | 
 | 35 | +    { value: 'WIP', name: 'WIP: Work in progress' },  | 
 | 36 | +  ],  | 
 | 37 | + | 
 | 38 | +  // override the messages, defaults are as follows  | 
 | 39 | +  messages: {  | 
 | 40 | +    type: "Select the type of change that you're committing:",  | 
 | 41 | +    scope: '\nDenote the SCOPE of this change (optional):',  | 
 | 42 | +    // used if allowCustomScopes is true  | 
 | 43 | +    // customScope: 'Denote the SCOPE of this change:',  | 
 | 44 | +    subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',  | 
 | 45 | +    body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',  | 
 | 46 | +    breaking: 'List any BREAKING CHANGES (optional):\n',  | 
 | 47 | +    footer:  | 
 | 48 | +      'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',  | 
 | 49 | +    confirmCommit: 'Are you sure you want to proceed with the commit above?',  | 
 | 50 | +  },  | 
 | 51 | + | 
 | 52 | +  skipQuestions: ['scope'],  | 
 | 53 | +  allowCustomScopes: false,  | 
 | 54 | +  allowBreakingChanges: ['feat', 'fix'],  | 
 | 55 | + | 
 | 56 | +  // limit subject length  | 
 | 57 | +  subjectLimit: 100,  | 
 | 58 | +}  | 
0 commit comments