From d6aceeafb5359752ce65cb432b7aaed19a82577e Mon Sep 17 00:00:00 2001 From: git_zs <2818973988@qq.com> Date: Wed, 8 Jan 2025 22:31:52 +0800 Subject: [PATCH 1/3] =?UTF-8?q?types:=20@clack/prompts=20=3D>=20select?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E4=BC=A0=E5=85=A5=E7=B1=BB=E5=9E=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/turbo-run/src/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/turbo-run/src/run.ts b/scripts/turbo-run/src/run.ts index 6a8762fa3d5..31f9f525583 100644 --- a/scripts/turbo-run/src/run.ts +++ b/scripts/turbo-run/src/run.ts @@ -25,7 +25,7 @@ export async function run(options: RunOptions) { let selectPkg: string | symbol; if (selectPkgs.length > 1) { - selectPkg = await select({ + selectPkg = await select({ message: `Select the app you need to run [${command}]:`, options: selectPkgs.map((item) => ({ label: item?.packageJson.name, From 69143ab34f8bb25f504cfa1c914c714dafc89aa4 Mon Sep 17 00:00:00 2001 From: git_zs <2818973988@qq.com> Date: Wed, 8 Jan 2025 22:34:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?docs:=20=E5=AF=B9scripts=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=8C=85=E6=B7=BB=E5=8A=A0=E4=BD=BF=E7=94=A8=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/turbo-run/README.md | 4 ++++ scripts/vsh/README.md | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/scripts/turbo-run/README.md b/scripts/turbo-run/README.md index 65ffcf4f687..7efc0133482 100644 --- a/scripts/turbo-run/README.md +++ b/scripts/turbo-run/README.md @@ -1,3 +1,7 @@ # @vben/turbo-run turbo-run is a command line tool that allows you to run multiple commands in parallel. + +提供 `turbo-run` 命令:`turbo-run [目标命令]` `turbo-run dev` + +- 获取大仓项目所有的包,并过滤出包含`目标命令`的包,并将所有包放入`@clack/prompts`提供的`select`组件提供给用户选择,选择后运行其对应的命令 diff --git a/scripts/vsh/README.md b/scripts/vsh/README.md index 7cc8fbf5fc2..8a2289c835a 100644 --- a/scripts/vsh/README.md +++ b/scripts/vsh/README.md @@ -1,3 +1,21 @@ # @vben/vsh shell 脚本工具集合 + +主要提供了以下命令 + +- lint + - 用于检查代码的格式是否正确,相当于同时执行了:`stylelint` `eslint` `prettier`的代码风格检测 + - `--format` 参数:会自动修复代码 +- publint + - 用于检查项目中的包是否符合 `publint` 规则 + - `--check` 参数:仅检查错误,不退出程序 +- code-workspace + - 用于生成和更新 Visual Studio Code 的 .code-workspace 文件的工具 + - `--spaces` 参数:生成 `.code-workspace` 文件时指定缩进空格数 `默认: 2` + - `--auto-commit`参数: 生成 `.code-workspace` 文件时自动将其添加到Git仓库 +- check-circular + - 检测项目中的所有循环依赖,并详细输出结果 + - `--staged`参数:仅检测暂存区中的文件是否存在循环依赖,并详细输出结果 +- check-dep + - 用于检测项目中的未使用依赖和未声明依赖 From 3211f0caf43c08bb97dbdc6c163daf57eaac6ae2 Mon Sep 17 00:00:00 2001 From: git_zs <2818973988@qq.com> Date: Thu, 9 Jan 2025 15:25:08 +0800 Subject: [PATCH 3/3] =?UTF-8?q?style:=20echarts=E6=96=87=E4=BB=B6=E6=9C=89?= =?UTF-8?q?=E4=B8=80=E4=B8=AAprettier=E9=94=99=E8=AF=AF=EF=BC=8C=E8=99=BD?= =?UTF-8?q?=E7=84=B6=E4=B8=8D=E6=98=AF=E6=88=91=E9=80=A0=E6=88=90=E7=9A=84?= =?UTF-8?q?=EF=BC=8C=E4=BD=86=E6=98=AFPR=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/effects/plugins/src/echarts/use-echarts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/effects/plugins/src/echarts/use-echarts.ts b/packages/effects/plugins/src/echarts/use-echarts.ts index 0fd7c4b6860..ec5786e8b52 100644 --- a/packages/effects/plugins/src/echarts/use-echarts.ts +++ b/packages/effects/plugins/src/echarts/use-echarts.ts @@ -109,7 +109,7 @@ function useEcharts(chartRef: Ref) { return { renderEcharts, resize, - chartInstance + chartInstance, }; }