Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release-it will follow convential also added pretty-quick
- Loading branch information
Marvin Heilemann
committed
Feb 11, 2020
1 parent
38fd2d4
commit 6a80367
Showing
5 changed files
with
2,449 additions
and
33 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"default": "https://github.com/release-it/release-it/blob/master/conf/release-it.json", | ||
"hooks": { | ||
"before:init": "npm run lint" | ||
}, | ||
"git": { | ||
"requireCleanWorkingDir": false, | ||
"requireCommits": false, | ||
"tagName": "v${version}", | ||
"commit": true, | ||
"push": true | ||
}, | ||
"npm": { | ||
"publish": false | ||
}, | ||
"github": { | ||
"release": true, | ||
"releaseName": "chore: release ${version}", | ||
"draft": true, | ||
"tokenRef": "GITHUB_ACCESS_TOKEN" | ||
}, | ||
"plugins": { | ||
"./scripts/bump-version.js": {}, | ||
"@release-it/conventional-changelog": { | ||
"preset": "conventionalcommits", | ||
"infile": "CHANGELOG.md" | ||
} | ||
} | ||
} |
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,9 @@ | ||
/** | ||
* Commitlint config file. | ||
* | ||
* @package https://github.com/conventional-changelog/commitlint | ||
*/ | ||
|
||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
} |
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,12 @@ | ||
# Refer for explanation to following link: | ||
# https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md | ||
|
||
pre-commit: | ||
commands: | ||
format-staged: | ||
run: pretty-quick --staged | ||
lint-commit: | ||
run: commitlint --from HEAD~1 | ||
lint-script: | ||
glob: "*.{js,ts}x?" | ||
run: eslint {staged_files} |
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
Oops, something went wrong.