Browse Source
* chore: update packageManager version to pnpm@10.9.0 for compatibility improvements * chore: Update dependent versions and configurations to improve compatibility and stability - Update Node version to 22.1.0 - Updated pnpm version to 10.10.0 - Fixed syntax error in prettier command in lintstagedrc - Update dependent versions in pnpm-lock.yaml to ensure consistency - Update format and content in README documents to improve readability * fix: lint errorpull/6070/head
committed by
GitHub
19 changed files with 3232 additions and 1526 deletions
@ -1 +1 @@ |
|||
20.14.0 |
|||
22.1.0 |
|||
|
|||
File diff suppressed because it is too large
@ -1,3 +1,59 @@ |
|||
# @vben/turbo-run |
|||
|
|||
turbo-run is a command line tool that allows you to run multiple commands in parallel. |
|||
`turbo-run` 是一个命令行工具,允许你在多个包中并行运行命令。它提供了一个交互式的界面,让你可以选择要运行命令的包。 |
|||
|
|||
## 特性 |
|||
|
|||
- 🚀 交互式选择要运行的包 |
|||
- 📦 支持 monorepo 项目结构 |
|||
- 🔍 自动检测可用的命令 |
|||
- 🎯 精确过滤目标包 |
|||
|
|||
## 安装 |
|||
|
|||
```bash |
|||
pnpm add -D @vben/turbo-run |
|||
``` |
|||
|
|||
## 使用方法 |
|||
|
|||
基本语法: |
|||
|
|||
```bash |
|||
turbo-run [script] |
|||
``` |
|||
|
|||
例如,如果你想运行 `dev` 命令: |
|||
|
|||
```bash |
|||
turbo-run dev |
|||
``` |
|||
|
|||
工具会自动检测哪些包有 `dev` 命令,并提供一个交互式界面让你选择要运行的包。 |
|||
|
|||
## 示例 |
|||
|
|||
假设你的项目中有以下包: |
|||
|
|||
- `@vben/app` |
|||
- `@vben/admin` |
|||
- `@vben/website` |
|||
|
|||
当你运行: |
|||
|
|||
```bash |
|||
turbo-run dev |
|||
``` |
|||
|
|||
工具会: |
|||
|
|||
1. 检测哪些包有 `dev` 命令 |
|||
2. 显示一个交互式选择界面 |
|||
3. 让你选择要运行命令的包 |
|||
4. 使用 `pnpm --filter` 在选定的包中运行命令 |
|||
|
|||
## 注意事项 |
|||
|
|||
- 确保你的项目使用 pnpm 作为包管理器 |
|||
- 确保目标包在 `package.json` 中定义了相应的脚本命令 |
|||
- 该工具需要在 monorepo 项目的根目录下运行 |
|||
|
|||
@ -1,3 +1,56 @@ |
|||
# @vben/vsh |
|||
|
|||
shell 脚本工具集合 |
|||
一个 Shell 脚本工具集合,用于 Vue Vben Admin 项目的开发和管理。 |
|||
|
|||
## 功能特性 |
|||
|
|||
- 🚀 基于 Node.js 的现代化 Shell 工具 |
|||
- 📦 支持模块化开发和按需加载 |
|||
- 🔍 提供依赖检查和分析功能 |
|||
- 🔄 支持循环依赖扫描 |
|||
- 📝 提供包发布检查功能 |
|||
|
|||
## 安装 |
|||
|
|||
```bash |
|||
# 使用 pnpm 安装 |
|||
pnpm add -D @vben/vsh |
|||
|
|||
# 或者使用 npm |
|||
npm install -D @vben/vsh |
|||
|
|||
# 或者使用 yarn |
|||
yarn add -D @vben/vsh |
|||
``` |
|||
|
|||
## 使用方法 |
|||
|
|||
### 全局安装 |
|||
|
|||
```bash |
|||
# 全局安装 |
|||
pnpm add -g @vben/vsh |
|||
|
|||
# 使用 vsh 命令 |
|||
vsh [command] |
|||
``` |
|||
|
|||
### 本地使用 |
|||
|
|||
```bash |
|||
# 在 package.json 中添加脚本 |
|||
{ |
|||
"scripts": { |
|||
"vsh": "vsh" |
|||
} |
|||
} |
|||
|
|||
# 运行命令 |
|||
pnpm vsh [command] |
|||
``` |
|||
|
|||
## 命令列表 |
|||
|
|||
- `vsh check-deps`: 检查项目依赖 |
|||
- `vsh scan-circular`: 扫描循环依赖 |
|||
- `vsh publish-check`: 检查包发布配置 |
|||
|
|||
Loading…
Reference in new issue