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

1.0.2 • Public • Published

🔥一些帮助简化前端配置工程的通用脚本

现在开始

⚠️ 目前模块内使用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

尝试执行

如果没什么意外(顺利执行且终端没有报错)恭喜你配置完成🎉. 来测试下:

git add .
git commit -m "test commitlint"
# eslint 会在每次执行commit前自动执行,如需更改commit钩子执行前的命令,可自行修改package.json中lint-staged配置

Readme

Keywords

Package Sidebar

Install

npm i @huberyyang/todo-scripts

Weekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

164 kB

Total Files

25

Last publish

Collaborators

  • huberyyang