Skip to content

Commit

Permalink
feat: 添加release-it,做版本管理
Browse files Browse the repository at this point in the history
  • Loading branch information
wforguo committed Jul 14, 2023
1 parent fae9fb8 commit 1b2ea55
Show file tree
Hide file tree
Showing 3 changed files with 3,755 additions and 278 deletions.
18 changes: 18 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
},
"git": {
"commitMessage": "chore: vite-plugin-meta-env release v${version}"
},
"github": {
"release": true,
"draft": false
},
"npm": {
"publish": true
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@
"build": "tsc && vite build",
"lint": "eslint . --ext .js,.ts --fix --ignore-path .gitignore",
"format": "prettier --write .",
"prepare": "husky install"
"prepare": "husky install",
"release": "release-it"
},
"devDependencies": {
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@release-it/conventional-changelog": "^7.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.44.0",
Expand All @@ -58,6 +60,7 @@
"husky": "^8.0.0",
"lint-staged": "^13.2.3",
"prettier": "^3.0.0",
"release-it": "^16.1.0",
"typescript": "^5.1.3",
"vite": "^4.3.9"
},
Expand Down
Loading

0 comments on commit 1b2ea55

Please sign in to comment.