create-weapp-vite 2.3.6 → 2.3.8

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/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-B5yRrol7.js";
1
+ import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-DjeLHSLP.js";
2
2
  import logger from "@weapp-core/logger";
3
3
  import { fs } from "@weapp-core/shared/fs";
4
4
  import process from "node:process";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { r as TemplateName, t as createProject } from "./src-B5yRrol7.js";
1
+ import { r as TemplateName, t as createProject } from "./src-DjeLHSLP.js";
2
2
  export { TemplateName, createProject };
@@ -6,10 +6,10 @@ import https from "node:https";
6
6
  import { spawn } from "node:child_process";
7
7
  import process from "node:process";
8
8
  //#region ../../packages-runtime/wevu/package.json
9
- var version$1 = "6.15.13";
9
+ var version$1 = "6.15.15";
10
10
  //#endregion
11
11
  //#region ../weapp-vite/package.json
12
- var version = "6.15.13";
12
+ var version = "6.15.15";
13
13
  //#endregion
14
14
  //#region src/enums.ts
15
15
  let TemplateName = /* @__PURE__ */ function(TemplateName) {
@@ -112,8 +112,8 @@ const TEMPLATE_CATALOG = {
112
112
  "@types/semver": "^7.7.1",
113
113
  "@vant/weapp": "^1.11.7",
114
114
  "@vitejs/plugin-vue": "^6.0.6",
115
- "@vue/compiler-core": "^3.5.32",
116
- "@vue/compiler-dom": "^3.5.32",
115
+ "@vue/compiler-core": "^3.5.33",
116
+ "@vue/compiler-dom": "^3.5.33",
117
117
  "@vue/language-core": "^3.2.7",
118
118
  "antd-mini": "^3.4.3",
119
119
  "bundle-require": "^5.1.0",
@@ -123,14 +123,14 @@ const TEMPLATE_CATALOG = {
123
123
  "gm-crypto": "^0.1.12",
124
124
  "lru-cache": "^11.3.5",
125
125
  "magic-string": "^0.30.21",
126
- "miniprogram-api-typings": "^5.1.2",
126
+ "miniprogram-api-typings": "^5.1.3",
127
127
  "oxc-parser": "^0.127.0",
128
128
  "oxc-walker": "^0.7.0",
129
129
  "pkg-types": "^2.3.0",
130
130
  "sass-embedded": "^1.99.0",
131
131
  "tailwind-merge": "^3.5.0",
132
132
  "tailwind-variants": "^3.2.2",
133
- "tdesign-miniprogram": "^1.13.2",
133
+ "tdesign-miniprogram": "^1.14.0",
134
134
  "ts-morph": "^28.0.0",
135
135
  "vite-plugin-inspect": "^11.3.3",
136
136
  "vue-tsc": "^3.2.7",
@@ -148,21 +148,21 @@ const TEMPLATE_CATALOG = {
148
148
  merge: "^2.1.1",
149
149
  pathe: "^2.0.3",
150
150
  postcss: "^8.5.10",
151
- rolldown: "1.0.0-rc.16",
151
+ rolldown: "1.0.0-rc.17",
152
152
  sass: "^1.99.0",
153
- stylelint: "^17.8.0",
153
+ stylelint: "^17.9.0",
154
154
  tailwindcss: "^4.2.4",
155
155
  tslib: "^2.8.1",
156
156
  typescript: "^6.0.3",
157
- vite: "8.0.9",
158
- vue: "^3.5.32",
157
+ vite: "8.0.10",
158
+ vue: "^3.5.33",
159
159
  zod: "^4.3.6"
160
160
  };
161
161
  const TEMPLATE_NAMED_CATALOG = {
162
- "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.13.2" },
162
+ "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.14.0" },
163
163
  "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.11.2" },
164
164
  latest: {
165
- "miniprogram-api-typings": "^5.1.2",
165
+ "miniprogram-api-typings": "^5.1.3",
166
166
  typescript: "^6.0.3"
167
167
  },
168
168
  tailwind3: { tailwindcss: "^4.2.4" },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.3.6",
4
+ "version": "2.3.8",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "6.0.13",
4
+ "version": "6.0.15",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -122,7 +122,7 @@ async function navigateTo(url: string) {
122
122
 
123
123
  <template>
124
124
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
125
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#ecfeff] via-[#ffffff] to-[#e0f2fe] p-[20rpx]">
125
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#ecfeff] via-[#ffffff] to-[#e0f2fe] p-[20rpx]">
126
126
  <SectionTitle title="小程序能力" subtitle="本页展示原生 API 与分包导航" />
127
127
  </view>
128
128
 
@@ -139,7 +139,7 @@ function submit() {
139
139
 
140
140
  <template>
141
141
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
142
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#fff7ed] via-[#ffffff] to-[#fef3c7] p-[20rpx]">
142
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#fff7ed] via-[#ffffff] to-[#fef3c7] p-[20rpx]">
143
143
  <SectionTitle title="项目提报" subtitle="示例多步表单与联动校验" />
144
144
  <view class="mt-[12rpx]">
145
145
  <t-steps :current="currentStep" layout="horizontal">
@@ -138,7 +138,7 @@ void runDialogHostCancelE2E
138
138
 
139
139
  <template>
140
140
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
141
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#eef2ff] via-[#ffffff] to-[#ede9fe] p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.06)]">
141
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#eef2ff] via-[#ffffff] to-[#ede9fe] p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.06)]">
142
142
  <SectionTitle title="Layout 反馈宿主通信" subtitle="页面与子组件都直接调用 hooks,由 layout 持有 toast / dialog 组件实例" />
143
143
  <text class="mt-[12rpx] block text-[22rpx] leading-[1.7] text-[#5b5b7b]">
144
144
  推荐用法是业务侧只关心 useToast() / useDialog(),layout 负责注册宿主;页面和组件都不需要关心 id、selector,也不需要直接拿 layout 实例。
@@ -50,7 +50,7 @@ onUnload(() => {
50
50
 
51
51
  <template>
52
52
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
53
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#e8f1ff] via-[#ffffff] to-[#eef2ff] p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.06)]">
53
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#e8f1ff] via-[#ffffff] to-[#eef2ff] p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.06)]">
54
54
  <SectionTitle title="Store 驱动 Layout 交互" subtitle="wevu/store 发起意图,页面上下文消费后命中 layout 内的 toast / dialog 宿主" />
55
55
  <text class="mt-[12rpx] block text-[22rpx] leading-[1.7] text-[#5b5b7b]">
56
56
  推荐边界是 store 只保存布局状态和交互意图,真正调用 useToast() / useDialog() / setPageLayout() 仍由页面执行,这样不会把 page runtime hook 直接塞进 store。
@@ -67,7 +67,7 @@ async function openLayoutStoreDemo() {
67
67
 
68
68
  <template>
69
69
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
70
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#eef2ff] via-[#ffffff] to-[#ede9fe] p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.06)]">
70
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#eef2ff] via-[#ffffff] to-[#ede9fe] p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.06)]">
71
71
  <SectionTitle title="页面布局能力" subtitle="基础模板已接入 src/layouts 目录约定" />
72
72
  <text class="mt-[12rpx] block text-[22rpx] leading-[1.7] text-[#5b5b7b]">
73
73
  当前状态:{{ currentLayout }}。可在 default、admin 与 false 三种模式之间切换,用来承接后台页、运营页或沉浸式页面。
@@ -90,7 +90,7 @@ reload()
90
90
 
91
91
  <template>
92
92
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
93
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#fdf2f8] via-[#fff7fb] to-[#ffffff] p-[20rpx]">
93
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#fdf2f8] via-[#fff7fb] to-[#ffffff] p-[20rpx]">
94
94
  <SectionTitle title="任务清单" subtitle="筛选、搜索与分页反馈" />
95
95
  <view class="mt-[12rpx]">
96
96
  <FilterBar v-model:query="query" v-model:active="activeStatus" :filters="statusFilters" />
@@ -44,7 +44,7 @@ onShow(() => {
44
44
 
45
45
  <template>
46
46
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
47
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#ecfccb] via-[#ffffff] to-[#d9f99d] p-[20rpx]">
47
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#ecfccb] via-[#ffffff] to-[#d9f99d] p-[20rpx]">
48
48
  <SectionTitle title="系统信息" subtitle="使用原生 API 获取设备信息" />
49
49
  </view>
50
50
 
@@ -139,7 +139,7 @@ function runE2EState() {
139
139
 
140
140
  <template>
141
141
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
142
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#eef2ff] via-[#ffffff] to-[#e0f2fe] p-[20rpx]">
142
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#eef2ff] via-[#ffffff] to-[#e0f2fe] p-[20rpx]">
143
143
  <SectionTitle title="Class 绑定实验室" subtitle="切换状态观察 Vue 3 class 绑定效果" />
144
144
  </view>
145
145
 
@@ -49,7 +49,7 @@ async function navigateTo(url: string) {
49
49
 
50
50
  <template>
51
51
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
52
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#f5f3ff] via-[#ffffff] to-[#eef2ff] p-[20rpx]">
52
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#f5f3ff] via-[#ffffff] to-[#eef2ff] p-[20rpx]">
53
53
  <SectionTitle title="TDesign 组件实验室" subtitle="常用组件的组合应用" />
54
54
  <view class="mt-[12rpx]">
55
55
  <t-tabs :value="activeTab" @change="handleTabChange">
@@ -137,7 +137,7 @@ async function navigateTo(url: string) {
137
137
  <t-notice-bar theme="info" content="TDesign 组件可用于丰富产品体验。" />
138
138
  <t-swiper :autoplay="true" height="140">
139
139
  <t-swiper-item>
140
- <view class="h-full rounded-[20rpx] bg-gradient-to-br from-[#c7d2fe] to-[#f0abfc] p-[16rpx]">
140
+ <view class="h-full rounded-[20rpx] bg-linear-to-br from-[#c7d2fe] to-[#f0abfc] p-[16rpx]">
141
141
  <text class="text-[24rpx] font-semibold text-white">
142
142
  品牌展示
143
143
  </text>
@@ -147,7 +147,7 @@ async function navigateTo(url: string) {
147
147
  </view>
148
148
  </t-swiper-item>
149
149
  <t-swiper-item>
150
- <view class="h-full rounded-[20rpx] bg-gradient-to-br from-[#fde68a] to-[#fca5a5] p-[16rpx]">
150
+ <view class="h-full rounded-[20rpx] bg-linear-to-br from-[#fde68a] to-[#fca5a5] p-[16rpx]">
151
151
  <text class="text-[24rpx] font-semibold text-white">
152
152
  营销推荐
153
153
  </text>
@@ -14,7 +14,7 @@ const inlineStyleCase = 'color:#2563eb;background:#dbeafe;padding:16rpx;border-r
14
14
 
15
15
  <template>
16
16
  <view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
17
- <view class="rounded-[28rpx] bg-gradient-to-br from-[#f5f3ff] via-[#ffffff] to-[#eef2ff] p-[20rpx]">
17
+ <view class="rounded-[28rpx] bg-linear-to-br from-[#f5f3ff] via-[#ffffff] to-[#eef2ff] p-[20rpx]">
18
18
  <text class="text-[32rpx] font-semibold text-[#1f1a3f]">
19
19
  virtualHost + class/style 透传实验
20
20
  </text>