@txo/commitlint 1.0.0
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 +5 -0
- package/bin/txo-cz +3 -0
- package/bin/txo-cz.js +11 -0
- package/package.json +38 -0
- package/src/index.js +20 -0
package/README.md
ADDED
package/bin/txo-cz
ADDED
package/bin/txo-cz.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @Author: Erik Slovak <erik.slovak@technologystudio.sk>
|
|
3
|
+
* @Date: 2023-10-11T18:10:34+02:00
|
|
4
|
+
* @Copyright: Technology Studio
|
|
5
|
+
**/
|
|
6
|
+
|
|
7
|
+
import { bootstrap } from 'commitizen/dist/cli/git-cz'
|
|
8
|
+
|
|
9
|
+
import config from '../src/index'
|
|
10
|
+
|
|
11
|
+
bootstrap({ config })
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@txo/commitlint",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Technology Studio - Commitlint",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/technology-studio/commitlint.git"
|
|
9
|
+
},
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Technology Studio",
|
|
12
|
+
"email": "npm@technologystudio.sk",
|
|
13
|
+
"url": "https://github.com/technology-studio/"
|
|
14
|
+
},
|
|
15
|
+
"license": "UNLICENSED",
|
|
16
|
+
"private": false,
|
|
17
|
+
"scripts": {
|
|
18
|
+
"noop": ":",
|
|
19
|
+
"prepare": "husky install",
|
|
20
|
+
"semantic-release": "semantic-release",
|
|
21
|
+
"test": "yarn noop"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"txo-cz": "./bin/txo-cz.js"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@commitlint/cli": "^17.7.2",
|
|
31
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
32
|
+
"commitizen": "^4.3.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@txo/semantic-release": "^1.0.0",
|
|
36
|
+
"husky": "^8.0.3"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @Author: Rostislav Simonik <rostislav.simonik@technologystudio.sk>
|
|
3
|
+
* @Author: Erik Slovak <erik.slovak@technologystudio.sk>
|
|
4
|
+
* @Date: 2022-08-21T12:08:59+02:00
|
|
5
|
+
* @Copyright: Technology Studio
|
|
6
|
+
**/
|
|
7
|
+
|
|
8
|
+
const automaticCommitPattern = /^chore\(release\):.*\[skip ci\]/
|
|
9
|
+
|
|
10
|
+
const commitlintConfig = {
|
|
11
|
+
extends: [
|
|
12
|
+
'@commitlint/config-conventional'
|
|
13
|
+
],
|
|
14
|
+
|
|
15
|
+
ignores: [
|
|
16
|
+
commitMsg => automaticCommitPattern.test(commitMsg)
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = commitlintConfig
|