generated from ebizbase/chrome-extension-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.js
41 lines (38 loc) · 1.42 KB
/
rules.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
const {
getProjects,
} = require('nx/src/generators/utils/project-configuration.js');
const { FsTree } = require('nx/src/generators/tree.js');
const projects = getProjects(new FsTree(__dirname, false));
const projectScopes = Array.from(projects.keys()).reduce((acc, name) => {
acc[name] = `for changes of project ${name} within the directory ${
projects.get(name).root
}`;
return acc;
}, {});
module.exports = {
COMMIT_TYPES: {
feat: 'A new feature',
fix: 'A bug fix',
docs: 'Documentation only changes',
refactor: 'A code change that neither fixes a bug nor adds a feature',
perf: 'A code change that improves performance',
test: 'Adding missing tests or correcting existing tests',
build: 'Changes that affect the build system or external dependencies',
ci: 'Changes to our CI configuration files and scripts',
chore: 'Other changes that don’t modify src or test files',
revert: 'Reverts a previous commit',
},
COMMIT_SCOPES: {
...projectScopes,
deps: 'for changes of dependencies',
'': 'empty/none scope useful for `test` and `refactor` changes that are done across all packages (e.g. `test: add missing unit tests`) and for docs changes that are not related to a specific package (e.g. `docs: fix typo in tutorial`)',
},
CODE_COVERAGE: {
branches: 70,
functions: 70,
statements: 70,
},
};
if (require.main === module) {
console.log(module.exports);
}