refactor(cli): 重构代码结构,完善功能并修复monorepo依赖问题
- 重构CLI核心代码到commands/utils/interactive等目录,实现职责分离,提升可维护性 - 新增axios可选模板、完善ESLint集成支持,新增build、ls-templates命令与交互式创建流程 - 调整Vue模板基础依赖,将axios/pinia/vue-router改为可选按需引入 - 统一使用pnpm catalog配置管理所有模板依赖,实现依赖版本集中管控 - 实现monorepo环境智能依赖安装策略,自动检测workspace并选择正确安装目录,解决重复依赖安装问题 - 修复react router模板的App导入路径错误 - 更新CLI及各模板的README文档,补充新功能说明并修正原有描述
Showing
33 changed files
with
1251 additions
and
17 deletions
packages/cli/src/README.md
0 → 100644
packages/cli/src/commands/build.ts
0 → 100644
packages/cli/src/commands/create.ts
0 → 100644
packages/cli/src/commands/list-templates.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/cli/src/interactive/prompts.ts
0 → 100644
packages/cli/src/types.ts
0 → 100644
packages/cli/src/utils/args.ts
0 → 100644
packages/cli/src/utils/file.ts
0 → 100644
packages/cli/src/utils/merge.ts
0 → 100644
packages/cli/src/utils/workspace.ts
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment