https://github.com/hub-yang/todo-scripts
一些帮助简化前端配置工程的通用脚本
https://github.com/hub-yang/todo-scripts
bash node sh
Last synced: 5 months ago
JSON representation
一些帮助简化前端配置工程的通用脚本
- Host: GitHub
- URL: https://github.com/hub-yang/todo-scripts
- Owner: Hub-yang
- License: mit
- Created: 2024-03-02T06:42:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T06:58:04.000Z (over 1 year ago)
- Last Synced: 2025-03-27T02:21:42.511Z (over 1 year ago)
- Topics: bash, node, sh
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@huberyyang/todo-scripts
- Size: 189 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🔥 todo-scripts
### 💡 说明 (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)