Installations
npm install vue-cli-plugin-commitlint-release
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.16.0
NPM Version
6.9.0
Score
68.6
Supply Chain
98.7
Quality
75.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
wangjiaojiao77
Download Statistics
Total Downloads
46,388
Last Day
4
Last Week
33
Last Month
163
Last Year
2,475
GitHub Statistics
9 Stars
23 Commits
1 Forks
2 Watching
2 Branches
1 Contributors
Package Meta Information
Latest Version
1.1.4
Package Id
vue-cli-plugin-commitlint-release@1.1.4
Unpacked Size
7.41 kB
Size
3.22 kB
File Count
6
NPM Version
6.9.0
Node Version
10.16.0
Total Downloads
Cumulative downloads
Total Downloads
46,388
Last day
0%
4
Compared to previous day
Last week
-31.3%
33
Compared to previous week
Last month
-20.5%
163
Compared to previous month
Last year
-63.6%
2,475
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Vue CLI Plugin Commitlint Release
这是一个集成了 commitizen、commitlint、standard-version、conventional-changelog 、conventional-changelog-cli 基础配置的 Vue CLI 插件。
它可以解决以下几个问题:
- 自动化提示
commit message
- 自动化校验
commit message
是否符合规范 - 自动更新
package.json
里的版本号 - 自动生成
changelog
,更好的维护版本迭代
commitizen 使用的适配器是 AngularJS's commit message convention
安装
作为一个 Vue CLI
插件,安装方法有2种:
# 为了防止和已有的包冲突,可以提前移除 `node_modules` 后再安装
rm -rf node_modules
vue add commitlint-release
# or
vue invoke commitlint-release
这时候你的项目里就会增加一个 commitlint.config.js
文件、release.sh
文件,以及 package.json 里增加一些 scripts
、devDependencies
,以及一个 config
和 husky
的配置。
下面只需要直接运行
npm install
即可将所需依赖安装上。
使用
修改代码后,按照以下步骤执行即可。
add
git add .
自动化 commit message
npm run commit
# or
# 如果你的 NPM 5.2+,也可以执行以下命令
npx git-cz
自动更新版本号并生成 changelog
npm run push
输入命令后,提示输入 [ major | minor | patch ],以当前版本 1.0.0 为例:
- major:主版本号,当你做了不兼容的 API 修改。这时候的 version 应该为 2.0.0。
- minor:次版本号,当你做了向下兼容的功能性新增。这时候的 version 应该为 1.1.0。
- patch:修订号,当你做了向下兼容的问题修正。这时候的 version 应该为 1.0.1。
具体参考:semver 语义化版本控制规范
常见问题
command not found: vue
解决办法:全局安装 vue cli
npm install -g @vue/cli
# or
yarn global add @vue/cli
File exists
npm ERR! path /Users/jojo/node_modules/babel-eslint/node_modules/@babel/traverse/node_modules/.bin/babylon
npm ERR! code EEXIST
npm ERR! Refusing to delete /Users/jojo/wanba/front-activity/node_modules/babel-eslint/node_modules/@babel/traverse/node_modules/.bin/babylon: containing path /Users/jojo/node_modules/babel-eslint/node_modules/@babel/traverse/node_modules/babylon isn't under npm's control
npm ERR! File exists: /Users/jojo/wanba/front-activity/node_modules/babel-eslint/node_modules/@babel/traverse/node_modules/.bin/babylon
npm ERR! Move it away, and try again.
解决办法: 删除 node_modules 重新安装
rm -rf node_modules
npm install
permission denied
EACCES: permission denied
权限问题,命令行前加 sudo 或查看 fixing npm permissions 寻求帮助
Tips
我会尽我最大努力来维护这个项目,所以有问题一定要给我提 issues 哟~
License
ISC
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/20 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Score
2.6
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More