Important
npm install pnpm -g
npm install --save-dev @huberyyang/todo-scripts
pnpm add --save-dev @huberyyang/todo-scripts
yarn add --dev @huberyyang/todo-scripts
bun add --dev @huberyyang/todo-scripts
🔵 Commitlint config
🚀自动执行 commitlint + husky + lint-staged安装与配置
npx hubery commitlint-init
pnpm exec hubery commitlint-init
bunx hubery commitlint-init
--clear
🧹清洁执行 - 执行完脚本后卸载模块
npx hubery commitlint-init --clear
--czgit
📦配置cz-git支持
npx hubery commitlint-init --czgit
[!NOTE] eslint 会在每次执行commit前自动执行,如需更改commit钩子执行前的命令,可自行修改package.json中lint-staged配置
git add .
git commit -m "test commitlint"
MIT License © 2024 Hubery Yang