create-tengits-app 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/bin/cli.js +3 -3
- package/bin/setup-ttos.js +1 -1
- package/package.json +1 -1
- package/packages/client/package.json +2 -0
- package/packages/client/rsbuild.config.ts +1 -1
- package/packages/client/src/routes.tsx +1 -1
package/README.md
CHANGED
|
@@ -340,6 +340,35 @@ pnpm setup-ttos
|
|
|
340
340
|
3. 安装各项目的依赖
|
|
341
341
|
4. 建立全局链接关系
|
|
342
342
|
|
|
343
|
+
### 常见问题解决
|
|
344
|
+
|
|
345
|
+
#### 问题:Module not found: Can't resolve 'react/jsx-dev-runtime'
|
|
346
|
+
|
|
347
|
+
**原因**:Client项目缺少React依赖
|
|
348
|
+
|
|
349
|
+
**解决方案**:
|
|
350
|
+
```bash
|
|
351
|
+
# 进入client项目目录
|
|
352
|
+
cd packages/client
|
|
353
|
+
|
|
354
|
+
# 安装依赖
|
|
355
|
+
pnpm install
|
|
356
|
+
|
|
357
|
+
# 或者重新安装所有依赖
|
|
358
|
+
cd ../..
|
|
359
|
+
pnpm install
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
#### 问题:TTOS依赖未安装
|
|
363
|
+
|
|
364
|
+
**原因**:未运行TTOS安装脚本
|
|
365
|
+
|
|
366
|
+
**解决方案**:
|
|
367
|
+
```bash
|
|
368
|
+
# 在项目根目录执行
|
|
369
|
+
pnpm setup-ttos
|
|
370
|
+
```
|
|
371
|
+
|
|
343
372
|
### 客户端配置
|
|
344
373
|
|
|
345
374
|
#### 1. 系统配置
|
package/bin/cli.js
CHANGED
|
@@ -359,10 +359,10 @@ const createProject = async () => {
|
|
|
359
359
|
if (projectType === 1 || projectType === 2) {
|
|
360
360
|
console.log('\n🔗 正在链接全局包到 client 项目...');
|
|
361
361
|
try {
|
|
362
|
-
execSync('pnpm link tui-saas tui-low-code tui-bi
|
|
362
|
+
execSync('pnpm link tui-saas tui-low-code tui-bi tui-flow -g', { stdio: 'inherit' });
|
|
363
363
|
console.log('✅ 全局包链接完成!');
|
|
364
364
|
} catch (error) {
|
|
365
|
-
console.log('⚠️ 全局包链接失败,请手动执行: pnpm link tui-saas tui-low-code tui-bi
|
|
365
|
+
console.log('⚠️ 全局包链接失败,请手动执行: pnpm link tui-saas tui-low-code tui-bi tui-flow -g');
|
|
366
366
|
console.log(' 错误信息:', error.message);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
@@ -401,7 +401,7 @@ const createProject = async () => {
|
|
|
401
401
|
|
|
402
402
|
if (projectType === 1 || projectType === 2) {
|
|
403
403
|
console.log(' 🔗 TTOS 平台集成');
|
|
404
|
-
console.log(' 📦 全局包已自动链接 (tui-saas, tui-low-code, tui-bi,
|
|
404
|
+
console.log(' 📦 全局包已自动链接 (tui-saas, tui-low-code, tui-bi, tui-flow)');
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
console.log('\n🛠️ 额外工具:');
|
package/bin/setup-ttos.js
CHANGED
|
@@ -78,7 +78,7 @@ const CONFIG = {
|
|
|
78
78
|
name: 'saas',
|
|
79
79
|
remoteUrl: 'https://codeup.aliyun.com/tengits/basicplatform/basic_saas.git',
|
|
80
80
|
description: 'SaaS服务平台',
|
|
81
|
-
linkGlobalCommand: 'pnpm link tui-low-code
|
|
81
|
+
linkGlobalCommand: 'pnpm link tui-low-code tui-flow tui-bi -g' // 项目独立的全局链接命令
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
name: 'tuiLowCode',
|
package/package.json
CHANGED
|
@@ -85,7 +85,7 @@ export default defineConfig(({ env, envMode }) => {
|
|
|
85
85
|
forceSplitting: {
|
|
86
86
|
'mathjax-full': /mathjax-full/,
|
|
87
87
|
'refractor': /node_modules[\\/]refractor/,
|
|
88
|
-
'
|
|
88
|
+
'tui-flow': /tui-flow/,
|
|
89
89
|
'tui-low-code': /tui-low-code/,
|
|
90
90
|
'three': /node_modules[\\/]three/,
|
|
91
91
|
},
|
|
@@ -14,7 +14,7 @@ import { getSearchParams } from 'tengits-ui5';
|
|
|
14
14
|
import { Diagram as WorkflowDiagram, Management as WorkflowManagement, Version as WorkflowVersion } from 'tui-low-code/workflow';
|
|
15
15
|
import { PlatformType } from 'tui-saas/utils';
|
|
16
16
|
import { LazyComponents, withSuspense } from './utils/lazyLoad';
|
|
17
|
-
import { MessageTemplateComponents } from 'lite-flow';
|
|
17
|
+
import { MessageTemplateComponents } from 'tui-flow/lite-flow';
|
|
18
18
|
// 按需加载的组件 - 本地组件
|
|
19
19
|
const Example = lazy(() => import('./pages/Example'));
|
|
20
20
|
|