starter-cleaner

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Starter Cleaner Skill

Starter Cleaner Skill

该技能用于将
wot-starter
模板精简至最小状态,适合用于启动不包含示例代码的新项目。
This skill is used to streamline the
wot-starter
template to its minimal state, suitable for starting new projects without sample code.

功能说明

Feature Description

  1. 目录清理:
    • 移除
      docs/
      : 文档目录。
    • 移除
      src/subPages/
      : 示例分包页面。
    • 移除
      src/subEcharts/
      : Echarts 示例。
    • 移除
      src/subAsyncEcharts/
      : 异步 Echarts 示例。
    • 移除
      src/pages.json
      : 项目页面配置文件(由
      pages.config.ts
      生成)。
    • 移除
      pnpm-workspace.yaml
      : Monorepo 配置文件。
  2. 配置清理:
    • vite.config.ts:
      • 移除
        UniHelperPages
        相关分包配置 (
        subEcharts
        ,
        subAsyncEcharts
        等)。
      • 注意:保留
        uni-echarts
        相关配置。
    • package.json:
      • 移除
        docs:
        相关脚本 (
        docs:dev
        ,
        docs:build
        ,
        docs:preview
        )。
      • 注意:保留
        uni-echarts
        echarts
        依赖。
  1. Directory Cleanup:
    • Remove
      docs/
      : Documentation directory.
    • Remove
      src/subPages/
      : Sample subpackage pages.
    • Remove
      src/subEcharts/
      : Echarts samples.
    • Remove
      src/subAsyncEcharts/
      : Asynchronous Echarts samples.
    • Remove
      src/pages.json
      : Project page configuration file (generated by
      pages.config.ts
      ).
    • Remove
      pnpm-workspace.yaml
      : Monorepo configuration file.
  2. Configuration Cleanup:
    • vite.config.ts:
      • Remove
        UniHelperPages
        related subpackage configurations (such as
        subEcharts
        ,
        subAsyncEcharts
        ).
      • Note: Keep the configurations related to
        uni-echarts
        .
    • package.json:
      • Remove
        docs:
        related scripts (
        docs:dev
        ,
        docs:build
        ,
        docs:preview
        ).
      • Note: Keep the dependencies of
        uni-echarts
        and
        echarts
        .

使用方法

Usage

要执行清理过程,请使用
run_command
工具运行提供的 node 脚本。
zsh
node .agent/skills/starter-cleaner/scripts/clean.js
[!WARNING] 该技能执行破坏性操作。它将永久删除文件和目录。运行前请确保相关工作已提交。
To perform the cleanup process, use the
run_command
tool to execute the provided node script.
zsh
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.