cmpt-huitu-cli 1.0.10 → 1.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmpt-huitu-cli",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "description": "慧图前端项目工程化 CLI 工具",
6
6
  "main": "index.js",
package/src/versions.js CHANGED
@@ -15,8 +15,8 @@
15
15
  * - 例如:^1.0.8 允许 1.0.8, 1.1.0 但不允许 2.0.0
16
16
  */
17
17
  export const DEPENDENCY_VERSIONS = {
18
- 'cmpt-huitu-ui': '^1.0.9',
19
- 'cmpt-huitu-utils': '^2.0.0',
18
+ '@huitu/ui': '^1.0.10',
19
+ '@huitu/utils': '^2.0.0',
20
20
  }
21
21
 
22
22
  /**
@@ -10,6 +10,12 @@
10
10
  :columns="hTableColumns"
11
11
  >
12
12
  </HTable>
13
+ <div class="chartsBox">
14
+ <htLineRelation
15
+ class="charts"
16
+ ref="myChart"
17
+ ></htLineRelation>
18
+ </div>
13
19
  <div class="content">
14
20
  <p>这是一个基于 Monorepo 架构的 Vue 3 标准模版。</p>
15
21
  <p>已集成:</p>
@@ -19,6 +25,7 @@
19
25
  <li><el-tag type="warning">Element Plus</el-tag></li>
20
26
  <li><el-tag type="danger">cmpt-huitu-ui</el-tag></li>
21
27
  <li><el-tag type="info">cmpt-huitu-utils</el-tag></li>
28
+ <li><el-tag type="danger">@huitu-dev/chart-plus-dev</el-tag></li>
22
29
  </ul>
23
30
 
24
31
  <div class="demo-section">
@@ -85,4 +92,12 @@
85
92
  .demo-item {
86
93
  margin-bottom: 20px;
87
94
  }
95
+ .chartsBox {
96
+ width: 600px;
97
+ height: 500px;
98
+ }
99
+ .charts {
100
+ width: 100%;
101
+ height: 100%;
102
+ }
88
103
  </style>
@@ -157,6 +157,7 @@ export default defineConfig(({ mode, command }) => {
157
157
  'x-eleuilib': ['element-plus'],
158
158
  'x-vxetable': ['vxe-table', 'xe-utils'],
159
159
  },
160
+ chunkSizeWarningLimit: 800, // 调整 chunk 大小警告限制到 800kb
160
161
  experimentalMinChunkSize: 2048, // 该选项用于为代码分割设置一个以字节为单位的最小 chunk 大小
161
162
  // inlineDynamicImports: true // 该选项用于内联动态引入,该选项只在单页面应用的时候起作用
162
163
 
package/CHANGELOG.md DELETED
@@ -1,56 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
6
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.0.8] - 2026-01-09
9
-
10
- ### Breaking Changes
11
-
12
- - **cmpt-huitu-utils 升级到 2.0.0**:移除了 parseTime 及所有时间处理功能
13
- - 删除了 `parseTime.js` 文件及其所有导出函数
14
- - 移除了 dayjs 依赖
15
- - 如需时间处理功能,请在项目中直接安装并使用 dayjs
16
-
17
- ### Fixed
18
-
19
- - 修复依赖转换逻辑:正确将 `workspace:*` 协议替换为 npm 版本号
20
- - 修复 package.json 更新逻辑:现在会遍历所有 dependencies 和 devDependencies
21
- - 优化文件复制过滤:排除 lock 文件(pnpm-lock.yaml, package-lock.json, yarn.lock)
22
-
23
- ### Added
24
-
25
- - 增强错误处理:为模板目录不存在、文件复制失败等场景添加详细提示
26
- - 添加版本配置管理:通过 versions.js 集中管理依赖包版本
27
- - 添加单元测试:为 create.js 和 versions.js 添加完整的测试覆盖
28
- - 添加 prepublishOnly 脚本:发布前提醒检查模板文件
29
-
30
- ### Changed
31
-
32
- - 优化成功提示信息:显示配置的依赖版本和后续操作步骤
33
- - 更新模板文件:简化 home.vue,移除 parseTime 示例
34
- - 改进文档:更新完整发布和使用指南,添加故障排查章节
35
- - 更新依赖版本:cmpt-huitu-utils 升级到 ^2.0.0
36
- - 简化模板依赖:移除 dayjs,减少项目体积
37
-
38
- ### Removed
39
-
40
- - 模板中移除 dayjs 依赖(不再需要)
41
- - 模板中移除 parseTime 使用示例
42
-
43
- ### Verified
44
-
45
- - 端到端测试:验证项目创建、依赖安装、开发服务器启动、组件渲染、构建流程
46
- - UI 组件集成:验证 VexTable、HTable 组件正常工作
47
- - 模板完整性:确认所有配置文件和示例代码完整
48
- - 生产构建:验证 pnpm run build 成功执行
49
-
50
- ## [1.0.7] - 2024-XX-XX
51
-
52
- ### Initial Release
53
-
54
- - 基础 CLI 功能:支持通过 `huitu create` 命令创建项目
55
- - 默认模板:包含 Vue 3 + Vite + Element Plus 的基础项目结构
56
- - 依赖管理:集成 cmpt-huitu-ui 和 cmpt-huitu-utils 包