ComfyUI Desktop 项目使用教程
desktop The desktop app for ComfyUI. 项目地址: https://gitcode.com/gh_mirrors/desktop24/desktop
1. 项目目录结构及介绍
ComfyUI Desktop 项目目录结构如下:
comfyui-desktop/
├── assets/ # 存储ComfyUI源代码和其他资源
├── infrastructure/ # 基础设施相关配置和脚本
├── scripts/ # 脚本文件,用于项目构建和启动等
├── src/ # 源代码目录
├── tests/ # 测试文件和测试用例
├── .github/ # GitHub工作流程和配置
├── .husky/ # Husky配置,用于Git钩子
├── .vscode/ # Visual Studio Code项目配置
├── .gitattributes # Git属性配置
├── .gitignore # Git忽略文件配置
├── .prettierrc # Prettier代码格式化配置
├── .yarnrc.yml # Yarn配置文件
├── CODEOWNERS # 代码所有者文件
├── Hyper-V.md # Hyper-V相关文档
├── LICENSE # 项目许可证文件
├── README.md # 项目说明文件
├── builder-debug.config.ts # 构建配置文件
├── eslint.config.js # ESLint配置文件
├── global.d.ts # 类型定义文件
├── lint-staged.config.js # Lint-staged配置文件
├── package.json # 项目包配置文件
├── playwright.config.ts # Playwright测试配置文件
├── playwright.setup.ts # Playwright测试设置文件
├── todesktop.json # 桌面应用配置文件
├── todesktop.staging.json # 桌面应用预发布配置文件
├── tsconfig.build.json # TypeScript构建配置文件
├── tsconfig.json # TypeScript配置文件
├── vite.base.config.ts # Vite基础配置文件
├── vite.config.ts # Vite配置文件
├── vite.preload.config.ts # Vite预加载配置文件
├── vite.types.config.ts # Vite类型配置文件
├── vitest.workspace.ts # Vitest测试工作区配置文件
└── yarn.lock # Yarn锁文件
2. 项目的启动文件介绍
项目的启动主要依赖于scripts
目录中的脚本。以下是一些主要的启动脚本:
start
: 用于启动开发服务器的脚本。build
: 用于构建项目生产版本的脚本。make:assets
: 用于初始化项目资源的脚本,包括下载ComfyUI和其他依赖。
在开发环境下,可以通过以下命令启动项目:
yarn start
3. 项目的配置文件介绍
项目中的配置文件主要用于定义项目的行为和设置,以下是一些主要的配置文件:
package.json
: 定义了项目的依赖、脚本和元数据。tsconfig.json
: TypeScript配置文件,用于指定TypeScript编译器的选项。.prettierrc
: Prettier配置文件,用于指定代码格式化的规则。eslintrc.js
: ESLint配置文件,用于指定代码质量和风格检查的规则。vite.config.ts
: Vite配置文件,用于配置Vite开发服务器和构建过程。
这些配置文件是项目能够正确运行和保持代码质量的重要部分,应该在修改前仔细阅读相关文档。
desktop The desktop app for ComfyUI. 项目地址: https://gitcode.com/gh_mirrors/desktop24/desktop