$ npm i -D cz-git + cz-git (1.76 MB) added 1 packagein0.552s Usage 「cz-git」 requires Node >=v12.20 ⇒ Get Started Configure Template ⇒ Configure Template Options ⇒ Show Related ⇒ Engineering Related Recipes ⇒ Recipes ...
Package Sidebar Install npm i cz-git Repository github.com/Zhengqbbb/cz-git Homepage cz-git.qbb.sh Weekly Downloads 29,428 Version 1.11.0 License MIT Unpacked Size 1.85 MB Total Files 6 Issues 3 Pull Requests 1 Last publish a day ago Collaborators Try on RunKit Report malware...
git cz命令实际上是commitizen工具的一个别名,用于以一种更规范、更易读的方式生成Git提交信息。首先,您需要确认是否已全局或局部安装了commitizen。可以通过以下命令来检查是否已安装: bash npm list -g commitizen # 检查全局安装 npm list --depth=0 commitizen # 检查当前项目是否作为依赖安装 如果未安装,您可以...
{value:"test",name:"测试: ✅ 添加疏漏测试或已有测试改动",emoji:":white_check_mark:"}, {value:"build",name:"构建: 📦️ 构建流程、外部依赖变更(如升级 npm 包、修改 vite 配置等)",emoji:":package:"}, {value:"ci",name:"集成: 🎡 修改 CI 配置、脚本",emoji:":ferris_wheel:"}...
npm install --save-dev lint-staged@12.5.0 在package.json 新增lint-staged 配置{ "lint-staged": { "src/**/*.{js,vue}": [ "eslint --fix" ] }, }即对暂存区 js/vue 代码进行 eslint规范检查4. commitlint 提交校验安装配置commitlint 用于提交格式的校验...
npminit@eslint/config@latest或pnpmcreate@eslint/config@latest 按照提示,选择你需要的配置,完成所有步骤后,项目下会自动生成eslint的配置文件,安装需要的依赖包。 2、添加.eslintignore忽略文件 参考上面链接,在中添加export default []中添加{ ignores: ["**/temp.js", "config/*"]} ...
到这里,已经可以使用 npm run cz 命令替代 git commit,使用规范的 commit message 格式,但是如果以后有新的成员加入,不知道 npm run cz 命令,他是不是还是可以使用 git commit 命令提交了?答案是的,这里并没有对 commit 做校验,所以使用 git commit 提交不符合团队规范的 message 也是可以顺利 commit 的,所以我...
npx husky-init&&npminstall 1. 自动生成的.husky目录和指令: Lint-staged lint-staged 是一个在 git add 到暂存区的文件运行 linters (ESLint/Prettier/StyleLint) 的工具,避免在 git commit 提交时在整个项目执行。 官方网站:https:///okonet/lint-staged ...
npm install -g git-cz 沒錯!就是這麼簡單,接著我們就可以準備開始使用 git-cz 囉~ 使用git-cz 接著請你隨便打開一個專案,並且進入到該專案的資料夾,接著輸入以下指令 1 git cz 這時候你應該會噴出一段錯誤訊息 1 ✖ error No files staged!
npm install -g commitizen git-cz commitizen init git-cz --save-dev --save-exact run: git cz Custom config You can provide a custom configuration in achangelog.config.jsfile in your repo, or in any parent folder. git-cz will search for the closest config file. Below is default config:...