Skip to content

Hub-yang/todo-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f2331ad · Oct 8, 2024

History

68 Commits
Mar 8, 2024
Aug 13, 2024
Oct 8, 2024
Aug 14, 2024
Oct 8, 2024
Mar 2, 2024
Aug 14, 2024
Mar 13, 2024
Aug 14, 2024
Mar 8, 2024
Mar 13, 2024
Oct 8, 2024
Aug 14, 2024
Mar 13, 2024

Repository files navigation

@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 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.jsonlint-staged配置

git add .
git commit -m "test commitlint"

License

MIT License © 2024 Hubery Yang