@lmy54321/design-system 1.3.12 → 1.3.13
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/scripts/init.mjs +15 -5
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -3740,7 +3740,7 @@ function GridSystemDocs() {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
|
|
3742
3742
|
// index.ts
|
|
3743
|
-
var VERSION = "1.3.
|
|
3743
|
+
var VERSION = "1.3.13";
|
|
3744
3744
|
|
|
3745
3745
|
export { ActionSheet, BottomActionButtons, BottomNavigationBar, BottomSheet, BottomSheetOption, BottomSheetShareItem, BottomToolbar, Btn, BubbleTip, CardDemo, DRAWER_STATES, Dialog, DraggablePanel, EmptyState, GridSystemDocs, ICON_GROUPS, ICON_NAMES, IcExpand, IcPlan, IconFont, IconGallery, ImageWithFallback, Loading, NewsItem, NotificationBar, POIListItem, PoiItem, Push, SearchBox, SegmentedControl, StatGrid, Switch, Tag, TencentMap, Toast, TopToolbar, TypographyDocs, VERSION, cn, hasFilledVariant };
|
|
3746
3746
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
package/scripts/init.mjs
CHANGED
|
@@ -16,11 +16,14 @@ const cwd = process.cwd();
|
|
|
16
16
|
const execOptions = {
|
|
17
17
|
cwd,
|
|
18
18
|
stdio: 'pipe',
|
|
19
|
-
encoding: 'utf-8'
|
|
19
|
+
encoding: 'utf-8',
|
|
20
|
+
maxBuffer: 10 * 1024 * 1024 // 增加缓冲区到 10MB,防止超时
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
console.log('\n🚀 @lmy54321/design-system
|
|
23
|
-
console.log(`📂 初始化位置: ${cwd}
|
|
23
|
+
console.log('\n🚀 @lmy54321/design-system 项目初始化(完全自动化,无需交互)\n');
|
|
24
|
+
console.log(`📂 初始化位置: ${cwd}`);
|
|
25
|
+
console.log('⏳ 这个过程会自动完成,包括:创建项目、安装依赖、启动开发服务器\n');
|
|
26
|
+
|
|
24
27
|
|
|
25
28
|
// ============================================================
|
|
26
29
|
// 步骤 0: 清理目录(如果非空)
|
|
@@ -53,7 +56,10 @@ try {
|
|
|
53
56
|
|
|
54
57
|
console.log('📦 步骤 1/5: 创建 Vite 项目...');
|
|
55
58
|
try {
|
|
56
|
-
execSync('npm create vite@latest . -- --template react-ts --yes',
|
|
59
|
+
execSync('npm create vite@latest . -- --template react-ts --yes', {
|
|
60
|
+
...execOptions,
|
|
61
|
+
timeout: 120000 // 2 分钟
|
|
62
|
+
});
|
|
57
63
|
console.log('✅ Vite 项目已创建\n');
|
|
58
64
|
} catch (error) {
|
|
59
65
|
console.error('❌ 创建 Vite 项目失败:', error.message);
|
|
@@ -66,7 +72,11 @@ try {
|
|
|
66
72
|
|
|
67
73
|
console.log('📦 步骤 2/5: 安装依赖...');
|
|
68
74
|
try {
|
|
69
|
-
|
|
75
|
+
// 设置更长的超时时间(10分钟),因为 npm install 可能需要时间
|
|
76
|
+
execSync('npm install && npm install @lmy54321/design-system tailwindcss @tailwindcss/vite react-router-dom motion', {
|
|
77
|
+
...execOptions,
|
|
78
|
+
timeout: 600000 // 10 分钟
|
|
79
|
+
});
|
|
70
80
|
console.log('✅ 依赖安装完成\n');
|
|
71
81
|
} catch (error) {
|
|
72
82
|
console.error('❌ 依赖安装失败:', error.message);
|