starter-cleaner
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStarter Cleaner Skill
Starter Cleaner Skill
该技能用于将 模板精简至最小状态,适合用于启动不包含示例代码的新项目。
wot-starterThis skill is used to streamline the template to its minimal state, suitable for starting new projects without sample code.
wot-starter功能说明
Feature Description
-
目录清理:
- 移除 : 文档目录。
docs/ - 移除 : 示例分包页面。
src/subPages/ - 移除 : Echarts 示例。
src/subEcharts/ - 移除 : 异步 Echarts 示例。
src/subAsyncEcharts/ - 移除 : 项目页面配置文件(由
src/pages.json生成)。pages.config.ts - 移除 : Monorepo 配置文件。
pnpm-workspace.yaml
- 移除
-
配置清理:
- vite.config.ts:
- 移除 相关分包配置 (
UniHelperPages,subEcharts等)。subAsyncEcharts - 注意:保留 相关配置。
uni-echarts
- 移除
- package.json:
- 移除 相关脚本 (
docs:,docs:dev,docs:build)。docs:preview - 注意:保留 和
uni-echarts依赖。echarts
- 移除
- vite.config.ts:
-
Directory Cleanup:
- Remove : Documentation directory.
docs/ - Remove : Sample subpackage pages.
src/subPages/ - Remove : Echarts samples.
src/subEcharts/ - Remove : Asynchronous Echarts samples.
src/subAsyncEcharts/ - Remove : Project page configuration file (generated by
src/pages.json).pages.config.ts - Remove : Monorepo configuration file.
pnpm-workspace.yaml
- Remove
-
Configuration Cleanup:
- vite.config.ts:
- Remove related subpackage configurations (such as
UniHelperPages,subEcharts).subAsyncEcharts - Note: Keep the configurations related to .
uni-echarts
- Remove
- package.json:
- Remove related scripts (
docs:,docs:dev,docs:build).docs:preview - Note: Keep the dependencies of and
uni-echarts.echarts
- Remove
- vite.config.ts:
使用方法
Usage
要执行清理过程,请使用 工具运行提供的 node 脚本。
run_commandzsh
node .agent/skills/starter-cleaner/scripts/clean.js[!WARNING] 该技能执行破坏性操作。它将永久删除文件和目录。运行前请确保相关工作已提交。
To perform the cleanup process, use the tool to execute the provided node script.
run_commandzsh
node .agent/skills/starter-cleaner/scripts/clean.js[!WARNING] This skill performs destructive operations. It will permanently delete files and directories. Please ensure all relevant work has been committed before running.