.cz-config.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. console.log(
  2. '\x1B[0;37;44m INFO \x1B[0m',
  3. '\x1B[0;;34m ' +
  4. `读取了: ${__filename.slice(__dirname.length + 1)}` +
  5. ' \x1B[0m'
  6. );
  7. // https://github.com/leoforfree/cz-customizable
  8. module.exports = {
  9. types: [
  10. {
  11. value: 'feat',
  12. name: '✨ feat: 新功能',
  13. },
  14. {
  15. value: 'fix',
  16. name: '🐛 fix: 修补bug',
  17. },
  18. {
  19. value: 'docs',
  20. name: '📝 docs: 文档新增/变更',
  21. },
  22. {
  23. value: 'ci',
  24. name: '👷 ci: CI Build',
  25. },
  26. {
  27. value: 'build',
  28. name: '🚀 build: 版本打包/Tag',
  29. },
  30. {
  31. value: 'chore',
  32. name: '📦️ chore: 构建工具调整',
  33. },
  34. {
  35. value: 'perf',
  36. name: '⚡️ perf: 性能提升',
  37. },
  38. {
  39. value: 'refactor',
  40. name: '🔨 refactor: 代码重构',
  41. },
  42. {
  43. value: 'revert',
  44. name: '⏪ revert: 代码回滚',
  45. },
  46. {
  47. value: 'style',
  48. name: '🎨 style: 样式或UI修改',
  49. },
  50. {
  51. value: 'test',
  52. name: '🧪 test: Add missing tests or correcting existing tests',
  53. },
  54. ],
  55. scopes: [],
  56. skipEmptyScopes: true,
  57. // allowCustomScopes: true,
  58. };