Skip to content

开发环境搭建

本指南介绍如何搭建 UEditor Plus Designer 的开发环境。

前置要求

  • Node.js: 20 或更高版本
  • npm: 9 或更高版本
  • Git: 用于克隆仓库

克隆项目

bash
git clone https://github.com/modstart-lib/ueditor-plus-designer.git
cd ueditor-plus-designer

安装依赖

bash
npm install

开发命令

启动开发服务器

bash
npm run dev

这将启动 Vite 开发服务器,默认运行在 http://localhost:5173

类型检查

bash
npm run type-check

运行 TypeScript 类型检查,不生成输出文件。

构建项目

bash
# 构建所有版本
npm run build

# 只构建 Vue 组件库
npm run build:vue

# 只构建 Demo 应用
npm run build:demo

# 只构建独立版本
npm run build:standalone

预览构建

bash
# 预览 Vue 库
npm run preview

# 预览 Demo 应用
npm run preview:demo

# 预览独立版本
npm run preview:standalone

Released under the Apache License 2.0. 压缩版免费使用,商用或源码需授权。