mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 06:55:26 +00:00
- 创建 YysEditorEmbed.vue 嵌入式组件 - 实现 preview/edit 双模式 - 配置 Vite library mode 构建 - 生成 ES Module + UMD + CSS 构建产物 - 完善设计文档和使用文档 - 更新 plan.md 标记阶段 2 完成 构建产物: - dist/yys-editor.es.js (155KB, gzip: 35KB) - dist/yys-editor.umd.js (112KB, gzip: 31KB) - dist/yys-editor.css (69KB, gzip: 33KB) 相关文档: - docs/2design/ComponentArchitecture.md - docs/3build/YysEditorEmbed.md - docs/3build/EMBED_README.md - docs/4test/BUILD_TEST_REPORT.md
76 lines
2.1 KiB
JSON
76 lines
2.1 KiB
JSON
{
|
|
"name": "yys-editor",
|
|
"version": "1.0.0",
|
|
"description": "阴阳师流程图编辑器 - 可嵌入式组件",
|
|
"author": "yys-editor team",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"main": "./dist/yys-editor.umd.js",
|
|
"module": "./dist/yys-editor.es.js",
|
|
"types": "./dist/YysEditorEmbed.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/yys-editor.es.js",
|
|
"require": "./dist/yys-editor.umd.js",
|
|
"types": "./dist/YysEditorEmbed.d.ts"
|
|
},
|
|
"./style.css": "./dist/yys-editor.css"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"build:lib": "vite build --config vite.config.lib.js",
|
|
"preview": "vite preview",
|
|
"test": "vitest --run",
|
|
"test:watch": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest --coverage",
|
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
|
|
"format": "prettier --write src/",
|
|
"precommit": "npm test && npm run lint"
|
|
},
|
|
"peerDependencies": {
|
|
"vue": "^3.3.0",
|
|
"element-plus": "^2.9.0",
|
|
"pinia": "^3.0.0",
|
|
"@logicflow/core": "^2.0.0",
|
|
"@logicflow/extension": "^2.0.0",
|
|
"@logicflow/vue-node-registry": "^1.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@element-plus/icons-vue": "^2.3.1",
|
|
"@logicflow/core": "^2.0.16",
|
|
"@logicflow/engine": "^0.1.1",
|
|
"@logicflow/extension": "^2.0.21",
|
|
"@logicflow/vue-node-registry": "^1.0.18",
|
|
"@tailwindcss/postcss": "^4.1.11",
|
|
"@vueup/vue-quill": "^1.2.0",
|
|
"element-plus": "^2.9.1",
|
|
"html2canvas": "^1.4.1",
|
|
"pinia": "^3.0.1",
|
|
"vue": "^3.3.10",
|
|
"vue-i18n": "^11.1.1",
|
|
"vue3-draggable-resizable": "^1.6.5",
|
|
"vuedraggable": "^4.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
"@vitejs/plugin-vue": "^4.5.1",
|
|
"@vitest/ui": "^4.0.18",
|
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"eslint": "^8.49.0",
|
|
"eslint-plugin-vue": "^9.17.0",
|
|
"happy-dom": "^20.6.1",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^28.0.0",
|
|
"lint-staged": "^16.2.7",
|
|
"prettier": "^3.0.3",
|
|
"vite": "^5.0.5",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|