@storm-software/git-tools 2.88.5 → 2.88.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commitlint/config.cjs +125 -0
- package/dist/commitlint/config.d.cts +21 -0
- package/dist/commitlint/config.d.ts +21 -0
- package/dist/commitlint/config.js +125 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkMIBBWD5Tcjs = require('../chunk-MIBBWD5T.cjs');
|
|
5
|
+
|
|
6
|
+
// src/commitlint/config.ts
|
|
7
|
+
var DEFAULT_COMMIT_RULES = {
|
|
8
|
+
"body-leading-blank": [
|
|
9
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Warning,
|
|
10
|
+
"always"
|
|
11
|
+
],
|
|
12
|
+
"body-max-length": [
|
|
13
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
14
|
+
"always",
|
|
15
|
+
600
|
|
16
|
+
],
|
|
17
|
+
"footer-leading-blank": [
|
|
18
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Warning,
|
|
19
|
+
"always"
|
|
20
|
+
],
|
|
21
|
+
"footer-max-line-length": [
|
|
22
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
23
|
+
"always",
|
|
24
|
+
150
|
|
25
|
+
],
|
|
26
|
+
"header-max-length": [
|
|
27
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
28
|
+
"always",
|
|
29
|
+
150
|
|
30
|
+
],
|
|
31
|
+
"header-trim": [
|
|
32
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
33
|
+
"always"
|
|
34
|
+
],
|
|
35
|
+
"subject-case": [
|
|
36
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
37
|
+
"always",
|
|
38
|
+
[
|
|
39
|
+
"sentence-case"
|
|
40
|
+
]
|
|
41
|
+
],
|
|
42
|
+
"subject-empty": [
|
|
43
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
44
|
+
"never"
|
|
45
|
+
],
|
|
46
|
+
"subject-full-stop": [
|
|
47
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
48
|
+
"never",
|
|
49
|
+
"."
|
|
50
|
+
],
|
|
51
|
+
"subject-max-length": [
|
|
52
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
53
|
+
"always",
|
|
54
|
+
150
|
|
55
|
+
],
|
|
56
|
+
"subject-min-length": [
|
|
57
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
58
|
+
"always",
|
|
59
|
+
3
|
|
60
|
+
],
|
|
61
|
+
"type-case": [
|
|
62
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
63
|
+
"always",
|
|
64
|
+
"kebab-case"
|
|
65
|
+
],
|
|
66
|
+
"type-empty": [
|
|
67
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
68
|
+
"never"
|
|
69
|
+
],
|
|
70
|
+
"type-enum": [
|
|
71
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
72
|
+
"always",
|
|
73
|
+
Object.keys(_chunkMIBBWD5Tcjs.DEFAULT_COMMIT_TYPES)
|
|
74
|
+
],
|
|
75
|
+
"type-max-length": [
|
|
76
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
77
|
+
"always",
|
|
78
|
+
20
|
|
79
|
+
],
|
|
80
|
+
"type-min-length": [
|
|
81
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
82
|
+
"always",
|
|
83
|
+
3
|
|
84
|
+
],
|
|
85
|
+
"scope-case": [
|
|
86
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
87
|
+
"always",
|
|
88
|
+
[
|
|
89
|
+
"kebab-case"
|
|
90
|
+
]
|
|
91
|
+
],
|
|
92
|
+
"scope-empty": [
|
|
93
|
+
_chunkMIBBWD5Tcjs.RuleConfigSeverity.Error,
|
|
94
|
+
"never"
|
|
95
|
+
]
|
|
96
|
+
};
|
|
97
|
+
var DEFAULT_COMMITLINT_CONFIG = {
|
|
98
|
+
rules: DEFAULT_COMMIT_RULES,
|
|
99
|
+
helpUrl: "https://stormsoftware.com/ops/commitlint",
|
|
100
|
+
parserOpts: {
|
|
101
|
+
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
|
|
102
|
+
breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
|
|
103
|
+
headerCorrespondence: [
|
|
104
|
+
"type",
|
|
105
|
+
"scope",
|
|
106
|
+
"subject"
|
|
107
|
+
],
|
|
108
|
+
noteKeywords: [
|
|
109
|
+
"BREAKING CHANGE",
|
|
110
|
+
"BREAKING-CHANGE"
|
|
111
|
+
],
|
|
112
|
+
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
113
|
+
revertCorrespondence: [
|
|
114
|
+
"header",
|
|
115
|
+
"hash"
|
|
116
|
+
],
|
|
117
|
+
issuePrefixes: [
|
|
118
|
+
"#"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
exports.DEFAULT_COMMITLINT_CONFIG = DEFAULT_COMMITLINT_CONFIG; exports.DEFAULT_COMMIT_RULES = DEFAULT_COMMIT_RULES;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DefaultCommitRulesEnum } from '../types.cjs';
|
|
2
|
+
import 'nx/src/config/nx-json';
|
|
3
|
+
import 'nx/src/devkit-exports';
|
|
4
|
+
|
|
5
|
+
declare const DEFAULT_COMMIT_RULES: DefaultCommitRulesEnum;
|
|
6
|
+
declare const DEFAULT_COMMITLINT_CONFIG: {
|
|
7
|
+
rules: DefaultCommitRulesEnum;
|
|
8
|
+
helpUrl: string;
|
|
9
|
+
parserOpts: {
|
|
10
|
+
headerPattern: RegExp;
|
|
11
|
+
breakingHeaderPattern: RegExp;
|
|
12
|
+
headerCorrespondence: string[];
|
|
13
|
+
noteKeywords: string[];
|
|
14
|
+
revertPattern: RegExp;
|
|
15
|
+
revertCorrespondence: string[];
|
|
16
|
+
issuePrefixes: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type CommitLintOptions = typeof DEFAULT_COMMITLINT_CONFIG;
|
|
20
|
+
|
|
21
|
+
export { type CommitLintOptions, DEFAULT_COMMITLINT_CONFIG, DEFAULT_COMMIT_RULES };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DefaultCommitRulesEnum } from '../types.js';
|
|
2
|
+
import 'nx/src/config/nx-json';
|
|
3
|
+
import 'nx/src/devkit-exports';
|
|
4
|
+
|
|
5
|
+
declare const DEFAULT_COMMIT_RULES: DefaultCommitRulesEnum;
|
|
6
|
+
declare const DEFAULT_COMMITLINT_CONFIG: {
|
|
7
|
+
rules: DefaultCommitRulesEnum;
|
|
8
|
+
helpUrl: string;
|
|
9
|
+
parserOpts: {
|
|
10
|
+
headerPattern: RegExp;
|
|
11
|
+
breakingHeaderPattern: RegExp;
|
|
12
|
+
headerCorrespondence: string[];
|
|
13
|
+
noteKeywords: string[];
|
|
14
|
+
revertPattern: RegExp;
|
|
15
|
+
revertCorrespondence: string[];
|
|
16
|
+
issuePrefixes: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type CommitLintOptions = typeof DEFAULT_COMMITLINT_CONFIG;
|
|
20
|
+
|
|
21
|
+
export { type CommitLintOptions, DEFAULT_COMMITLINT_CONFIG, DEFAULT_COMMIT_RULES };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_COMMIT_TYPES,
|
|
3
|
+
RuleConfigSeverity
|
|
4
|
+
} from "../chunk-6EYTSWXU.js";
|
|
5
|
+
|
|
6
|
+
// src/commitlint/config.ts
|
|
7
|
+
var DEFAULT_COMMIT_RULES = {
|
|
8
|
+
"body-leading-blank": [
|
|
9
|
+
RuleConfigSeverity.Warning,
|
|
10
|
+
"always"
|
|
11
|
+
],
|
|
12
|
+
"body-max-length": [
|
|
13
|
+
RuleConfigSeverity.Error,
|
|
14
|
+
"always",
|
|
15
|
+
600
|
|
16
|
+
],
|
|
17
|
+
"footer-leading-blank": [
|
|
18
|
+
RuleConfigSeverity.Warning,
|
|
19
|
+
"always"
|
|
20
|
+
],
|
|
21
|
+
"footer-max-line-length": [
|
|
22
|
+
RuleConfigSeverity.Error,
|
|
23
|
+
"always",
|
|
24
|
+
150
|
|
25
|
+
],
|
|
26
|
+
"header-max-length": [
|
|
27
|
+
RuleConfigSeverity.Error,
|
|
28
|
+
"always",
|
|
29
|
+
150
|
|
30
|
+
],
|
|
31
|
+
"header-trim": [
|
|
32
|
+
RuleConfigSeverity.Error,
|
|
33
|
+
"always"
|
|
34
|
+
],
|
|
35
|
+
"subject-case": [
|
|
36
|
+
RuleConfigSeverity.Error,
|
|
37
|
+
"always",
|
|
38
|
+
[
|
|
39
|
+
"sentence-case"
|
|
40
|
+
]
|
|
41
|
+
],
|
|
42
|
+
"subject-empty": [
|
|
43
|
+
RuleConfigSeverity.Error,
|
|
44
|
+
"never"
|
|
45
|
+
],
|
|
46
|
+
"subject-full-stop": [
|
|
47
|
+
RuleConfigSeverity.Error,
|
|
48
|
+
"never",
|
|
49
|
+
"."
|
|
50
|
+
],
|
|
51
|
+
"subject-max-length": [
|
|
52
|
+
RuleConfigSeverity.Error,
|
|
53
|
+
"always",
|
|
54
|
+
150
|
|
55
|
+
],
|
|
56
|
+
"subject-min-length": [
|
|
57
|
+
RuleConfigSeverity.Error,
|
|
58
|
+
"always",
|
|
59
|
+
3
|
|
60
|
+
],
|
|
61
|
+
"type-case": [
|
|
62
|
+
RuleConfigSeverity.Error,
|
|
63
|
+
"always",
|
|
64
|
+
"kebab-case"
|
|
65
|
+
],
|
|
66
|
+
"type-empty": [
|
|
67
|
+
RuleConfigSeverity.Error,
|
|
68
|
+
"never"
|
|
69
|
+
],
|
|
70
|
+
"type-enum": [
|
|
71
|
+
RuleConfigSeverity.Error,
|
|
72
|
+
"always",
|
|
73
|
+
Object.keys(DEFAULT_COMMIT_TYPES)
|
|
74
|
+
],
|
|
75
|
+
"type-max-length": [
|
|
76
|
+
RuleConfigSeverity.Error,
|
|
77
|
+
"always",
|
|
78
|
+
20
|
|
79
|
+
],
|
|
80
|
+
"type-min-length": [
|
|
81
|
+
RuleConfigSeverity.Error,
|
|
82
|
+
"always",
|
|
83
|
+
3
|
|
84
|
+
],
|
|
85
|
+
"scope-case": [
|
|
86
|
+
RuleConfigSeverity.Error,
|
|
87
|
+
"always",
|
|
88
|
+
[
|
|
89
|
+
"kebab-case"
|
|
90
|
+
]
|
|
91
|
+
],
|
|
92
|
+
"scope-empty": [
|
|
93
|
+
RuleConfigSeverity.Error,
|
|
94
|
+
"never"
|
|
95
|
+
]
|
|
96
|
+
};
|
|
97
|
+
var DEFAULT_COMMITLINT_CONFIG = {
|
|
98
|
+
rules: DEFAULT_COMMIT_RULES,
|
|
99
|
+
helpUrl: "https://stormsoftware.com/ops/commitlint",
|
|
100
|
+
parserOpts: {
|
|
101
|
+
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
|
|
102
|
+
breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
|
|
103
|
+
headerCorrespondence: [
|
|
104
|
+
"type",
|
|
105
|
+
"scope",
|
|
106
|
+
"subject"
|
|
107
|
+
],
|
|
108
|
+
noteKeywords: [
|
|
109
|
+
"BREAKING CHANGE",
|
|
110
|
+
"BREAKING-CHANGE"
|
|
111
|
+
],
|
|
112
|
+
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
113
|
+
revertCorrespondence: [
|
|
114
|
+
"header",
|
|
115
|
+
"hash"
|
|
116
|
+
],
|
|
117
|
+
issuePrefixes: [
|
|
118
|
+
"#"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
DEFAULT_COMMITLINT_CONFIG,
|
|
124
|
+
DEFAULT_COMMIT_RULES
|
|
125
|
+
};
|