@huberyyang/todo-scripts
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

Package Sidebar

Install

npm i @huberyyang/todo-scripts

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

173 kB

Total Files

28

Last publish

Collaborators

  • huberyyang