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, }; } 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/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, 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 + - 用于检测项目中的未使用依赖和未声明依赖