Skip to content

Commit 8e945ea

Browse files
authored
Merge pull request #1 from ioncakephper:chore/add-release-ci
Main
2 parents 5fd82f8 + 3ba5805 commit 8e945ea

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

.husky/commit-msg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx commitlint --edit "$1"
4+
npx commitlint --edit "$1"
5+
6+

commitlint.config.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
module.exports = {
22
extends: ['@commitlint/config-conventional'],
33
// Add any custom rules here if needed
4-
// rules: {
5-
// 'scope-enum': [
6-
// 2,
7-
// 'always',
8-
// ['api', 'ui', 'docs', 'build', 'release', 'deps', 'config']
9-
// ],
10-
// },
11-
};
4+
rules: {
5+
// Ensure the commit type is never empty
6+
'type-empty': [2, 'never'],
7+
// Ensure the commit subject is never empty
8+
'subject-empty': [2, 'never'],
9+
// Example of a custom rule for scope enumeration (uncomment and modify if needed)
10+
// 'scope-enum': [
11+
// 2,
12+
// 'always',
13+
// ['api', 'ui', 'docs', 'build', 'release', 'deps', 'config']
14+
// ],
15+
},
16+
};

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
"audit:ci": "npm audit --production",
1717
"prepare": "husky install"
1818
},
19-
"commitlint": {
20-
"extends": [
21-
"@commitlint/config-conventional"
22-
]
23-
},
2419
"keywords": [
2520
"javascript",
2621
"template",
@@ -36,6 +31,8 @@
3631
"node": ">=18.0.0"
3732
},
3833
"devDependencies": {
34+
"@commitlint/cli": "^19.2.1",
35+
"@commitlint/config-conventional": "^19.1.0",
3936
"eslint": "^8.57.0",
4037
"eslint-config-prettier": "^9.1.0",
4138
"eslint-plugin-jest": "^28.2.0",

0 commit comments

Comments
 (0)