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 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 lite-flow -g', { stdio: 'inherit' });
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 lite-flow -g');
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, lite-flow)');
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 lite-flow tui-bi -g' // 项目独立的全局链接命令
81
+ linkGlobalCommand: 'pnpm link tui-low-code tui-flow tui-bi -g' // 项目独立的全局链接命令
82
82
  },
83
83
  {
84
84
  name: 'tuiLowCode',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tengits-app",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "🚀 快速创建基于 React + Rsbuild + TypeScript + Tailwind CSS + Antd 的现代前端项目脚手架",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -33,6 +33,8 @@
33
33
  "autoprefixer": "^10.4.19",
34
34
  "postcss": "^8.4.40",
35
35
  "prettier": "^1.11.1",
36
+ "react": "^18.2.0",
37
+ "react-dom": "^18.2.0",
36
38
  "tailwindcss": "^3.4.7"
37
39
  }
38
40
  }
@@ -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
- 'lite-flow': /lite-flow/,
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