@huberyyang/todo-scripts
v1.0.4-alpha.1
Published
Some public executable scripts
Downloads
9
Readme
@huberyyang/todo-scripts
[!IMPORTANT] ⚠️ 目前模块内使用pnpm,后期新增自动判断
没有pnpm?,执行
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 + 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"
License
MIT License © 2024 Hubery Yang