/
.cz-allowed-scopes.js
54 lines (51 loc) · 1.39 KB
/
.cz-allowed-scopes.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
43
44
45
46
47
48
49
50
51
52
53
54
const { sync: glob } = require('fast-glob');
const path = require('path');
const input = [ path.join(path.resolve(__dirname, `packages`), `*/package.json`) ];
const paths = glob(input, { onlyFiles: false, globstar: true, absolute: true });
const serenityPackages = paths.map(pathToPackageJson => path.basename(path.dirname(pathToPackageJson)));
module.exports.scopes = {
serenityPackages() {
return serenityPackages;
},
documentation() {
return [
'examples',
'website',
];
},
dependencies() {
return [
// Changes to runtime dependencies
'deps',
// Changes to development-time dependencies
'deps-dev',
];
},
ci() {
return [
// Configuration changes to "big" CI/CD tools that affect the whole project
'github',
'gitpod',
'lerna',
'renovate',
'codeclimate',
'codefactor',
'eslint',
];
},
reservedForAutomatedCommits() {
return [
// Reserved for semantic release
'release',
]
},
all() {
return [
...this.serenityPackages(),
...this.documentation(),
...this.dependencies(),
...this.ci(),
...this.reservedForAutomatedCommits()
]
}
}