An open API service indexing awesome lists of open source software.

https://github.com/hub-yang/todo-scripts

一些帮助简化前端配置工程的通用脚本
https://github.com/hub-yang/todo-scripts

bash node sh

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

🔥 todo-scripts


github version
star badge
license

### 💡 说明 (Features)

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

### 📦 安装 (Install)

```shell
# npm
npm install --save-dev @huberyyang/todo-scripts
# pnpm
pnpm add --save-dev @huberyyang/todo-scripts
# yarn
yarn add --dev @huberyyang/todo-scripts
# bun
bun add --dev @huberyyang/todo-scripts
```

### 🔌 当前可用指令 (Current Script)

- `commitlint-init`

🟢 commitlint-init

🚀 无需安装,一键生成 [commitlint](https://github.com/conventional-changelog/commitlint) + [husky](https://github.com/typicode/husky) + [lint-staged](https://github.com/lint-staged/lint-staged) 配置

#### ⚡️ 执行

```shell
# npm
npx hubery commitlint-init
# pnpm
pnpm exec hubery commitlint-init
# yarn
yarn hubery commitlint-init
# bun
bunx hubery commitlint-init
```

#### ⚙️ 参数说明

- `-h, --help` 查看帮助
- `--clear` 清洁执行 - 执行完脚本后卸载模块
- `--czgit` 配置[cz-git](https://github.com/Zhengqbbb/cz-git)支持

#### 🎉 测试

> [!NOTE]
> eslint 会在每次执行commit前自动执行,如需更改commit钩子执行前的命令,可自行修改**package.json**中**lint-staged**配置

```shell
git add .
git commit -m "test commitlint"
```

### 📜 许可证 (License)

MIT License © 2026 [Hubery Yang](https://github.com/Hub-yang)