-
Notifications
You must be signed in to change notification settings - Fork 4
/
mjz.config.js
42 lines (40 loc) · 1.08 KB
/
mjz.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* cz-mjz-changelog 配置
* */
const path = require('path');
const fs = require('fs');
const componentDir = path.resolve(__dirname, 'packages/mjz-ui/src/components');
const cModuleNames = fs.readdirSync(path.resolve(componentDir)).filter((name) => !!/^[A-Z]\w*/.test(name));
// type(package): [scope] subject
module.exports = {
scopeOverrides: {
feat: {
default: [
{value: 'Project', name: 'Project: 🎉 Begin a project.'},
],
'mjz-ui': cModuleNames,
},
fix: {
default: [],
'mjz-ui': cModuleNames,
},
refactor: {
default: [],
'mjz-ui': cModuleNames,
},
docs: {
default: [],
},
test: {
default: [],
},
chore: {
default: [
{value: 'CI', name: 'CI: 👷 Add or update CI build system.'},
{value: 'Format', name: 'Format: 🎨 Improve structure / format of the code.'},
{value: 'Upgrade', name: 'Upgrade: ⬆️ Upgrade dependencies.'},
{value: 'Build', name: 'Build: 🏗 Update scripts or configuration files.'},
],
}
},
}