@lmy54321/design-system 1.3.14 → 1.3.16
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 +19 -21
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.16";
|
|
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
|
@@ -46,14 +46,15 @@ try {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// ============================================================
|
|
49
|
-
// 步骤 1: 创建 Vite
|
|
49
|
+
// 步骤 1: 创建 Vite 项目(不删除 package.json)
|
|
50
50
|
// ============================================================
|
|
51
51
|
|
|
52
52
|
console.log('📦 步骤 1/5: 创建 Vite 项目...');
|
|
53
53
|
try {
|
|
54
|
-
//
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
// 仅删除可能冲突的项目文件,但绝对不删除 package.json!
|
|
55
|
+
// 让 npm create vite 自己生成 package.json,然后再在步骤 2 安装额外依赖
|
|
56
|
+
const filesToRemove = ['src', 'public', 'index.html', 'vite.config.ts', 'vite.config.js', 'tsconfig.json', 'dist'];
|
|
57
|
+
for (const file of filesToRemove) {
|
|
57
58
|
const filePath = resolve(cwd, file);
|
|
58
59
|
if (existsSync(filePath)) {
|
|
59
60
|
rmSync(filePath, { recursive: true, force: true });
|
|
@@ -177,22 +178,19 @@ try {
|
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
// ============================================================
|
|
180
|
-
// 步骤 5:
|
|
181
|
+
// 步骤 5: 初始化完成总结
|
|
181
182
|
// ============================================================
|
|
182
183
|
|
|
183
|
-
console.log('🎉 步骤 5/5:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
console.error('❌ 启动开发服务器失败:', error.message);
|
|
197
|
-
process.exit(1);
|
|
198
|
-
}
|
|
184
|
+
console.log('🎉 步骤 5/5: 初始化完成\n');
|
|
185
|
+
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
186
|
+
console.log('✨ 项目初始化完成!');
|
|
187
|
+
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n');
|
|
188
|
+
console.log('📁 项目目录: ' + cwd);
|
|
189
|
+
console.log('📦 依赖已安装');
|
|
190
|
+
console.log('🎨 模板已复制\n');
|
|
191
|
+
console.log('接下来的步骤:');
|
|
192
|
+
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
193
|
+
console.log('1️⃣ 在终端中运行: npm run dev');
|
|
194
|
+
console.log('2️⃣ 打开浏览器访问: http://localhost:5173');
|
|
195
|
+
console.log('3️⃣ 开始开发!\n');
|
|
196
|
+
console.log('💡 提示: 项目已包含 @lmy54321/design-system,可直接使用所有组件\n');
|