-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(GGM-30): add config for commitlint
- Loading branch information
1 parent
f2166d2
commit aec9154
Showing
7 changed files
with
3,696 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.idea | ||
|
||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm run commitlint ${1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## How to work with repository | ||
|
||
### Requirements | ||
- Node.js in version 20 | ||
(if you have the oldest version, you can use [nvm](https://nvm.sh) ) | ||
|
||
In this project, we use semantic release. | ||
Before starting working with package, you should run ``yarn install`` | ||
in your project directory to prepare husky configuration for commitlint | ||
|
||
More info: | ||
CommitLint concept: https://commitlint.js.org/concepts/commit-conventions.html | ||
Husky documentation: https://typicode.github.io/husky/ | ||
|
||
## How to work with package | ||
### Requirements | ||
- Node.js in version 16 | ||
|
||
### Setup | ||
- go to package directory: ``cd ./package`` | ||
- run ``npm install`` or ``yarn install`` | ||
- run ``npm run watch`` or ``yarn watch`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'subject-case': [ | ||
2, | ||
'never', | ||
[ | ||
'upper-case', | ||
'pascal-case', | ||
'start-case', | ||
] | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "block-react-parser-new", | ||
"version": "0.1.0", | ||
"scripts": { | ||
"prepare": "husky", | ||
"postinstall": "husky", | ||
"pre-commit": "lint-staged", | ||
"commitlint": "commitlint --edit" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "^19.0.3", | ||
"@semantic-release/commit-analyzer": "^11.1.0", | ||
"@semantic-release/exec": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^9.2.6", | ||
"@semantic-release/npm": "^11.0.2", | ||
"commitlint": "^19.0.3", | ||
"husky": "^9.0.11", | ||
"semantic-release": "^23.0.2" | ||
}, | ||
"prepare": "husky" | ||
} |
Oops, something went wrong.