create-weapp-vite 2.6.1 → 2.6.3

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-CaBj9S6m.js";
1
+ import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-Cu_jx17D.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-CaBj9S6m.js";
1
+ import { r as TemplateName, t as createProject } from "./src-Cu_jx17D.js";
2
2
  export { TemplateName, createProject };
@@ -6,13 +6,13 @@ 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$2 = "6.19.1";
9
+ var version$2 = "6.19.3";
10
10
  //#endregion
11
11
  //#region ../dashboard/package.json
12
- var version$1 = "6.19.1";
12
+ var version$1 = "6.19.3";
13
13
  //#endregion
14
14
  //#region ../weapp-vite/package.json
15
- var version = "6.19.1";
15
+ var version = "6.19.3";
16
16
  //#endregion
17
17
  //#region src/enums.ts
18
18
  let TemplateName = /* @__PURE__ */ function(TemplateName) {
@@ -115,65 +115,65 @@ const TEMPLATE_CATALOG = {
115
115
  "@iconify/tailwind4": "^1.2.3",
116
116
  "@mini-types/alipay": "^3.0.14",
117
117
  "@tailwindcss/vite": "^4.3.3",
118
- "@types/node": "^26.1.2",
118
+ "@types/node": "^26.2.0",
119
119
  "@types/semver": "^7.8.0",
120
120
  "@vant/weapp": "^1.11.7",
121
121
  "@vitejs/plugin-vue": "^6.0.8",
122
- "@vue/compiler-core": "^3.5.40",
123
- "@vue/compiler-dom": "^3.5.40",
122
+ "@vue/compiler-core": "^3.5.41",
123
+ "@vue/compiler-dom": "^3.5.41",
124
124
  "@vue/language-core": "^3.3.9",
125
- "@wot-ui/ui": "2.3.0",
125
+ "@wot-ui/ui": "2.3.1",
126
126
  "antd-mini": "^3.4.3",
127
127
  "bundle-require": "^5.1.0",
128
128
  "class-variance-authority": "^0.7.1",
129
129
  "comment-json": "^5.0.0",
130
130
  "estree-walker": "^3.0.3",
131
131
  "gm-crypto": "^0.1.12",
132
- "happy-dom": "^20.11.1",
132
+ "happy-dom": "^20.11.2",
133
133
  "lru-cache": "^11.5.2",
134
134
  "magic-string": "^1.1.0",
135
- "miniprogram-api-typings": "^5.2.2",
135
+ "miniprogram-api-typings": "^5.2.3",
136
136
  "oxc-parser": "^0.143.0",
137
137
  "oxc-walker": "^1.1.1",
138
138
  "pkg-types": "^2.3.1",
139
139
  "sass-embedded": "^1.100.0",
140
140
  "tailwind-merge": "^3.6.0",
141
141
  "tailwind-variants": "^3.3.1",
142
- "tdesign-miniprogram": "^1.15.3",
142
+ "tdesign-miniprogram": "^1.16.0",
143
143
  "ts-morph": "^28.0.0",
144
144
  "uview-plus": "3.8.86",
145
145
  "vite-plugin-inspect": "^12.0.2",
146
146
  "vue-tsc": "^3.3.9",
147
- "weapp-tailwindcss": "^5.2.11",
147
+ "weapp-tailwindcss": "^5.2.12",
148
148
  autoprefixer: "^10.5.4",
149
149
  clsx: "^2.1.1",
150
150
  dayjs: "^1.11.21",
151
151
  echarts: "^6.1.0",
152
152
  esbuild: "^0.28.1",
153
- eslint: "^10.8.0",
153
+ eslint: "^10.8.1",
154
154
  fdir: "^6.5.0",
155
155
  htmlparser2: "^12.0.0",
156
156
  lodash: "^4.18.1",
157
157
  merge: "^2.1.1",
158
158
  obug: "^2.1.4",
159
159
  pathe: "^2.0.3",
160
- postcss: "^8.5.25",
161
- rolldown: "1.2.2",
160
+ postcss: "^8.5.26",
161
+ rolldown: "1.2.3",
162
162
  sass: "^1.102.0",
163
163
  stylelint: "^17.14.1",
164
164
  tailwindcss: "^4.3.3",
165
165
  tslib: "^2.8.1",
166
- tsx: "^4.23.5",
166
+ tsx: "^4.23.11",
167
167
  typescript: "^6.0.3",
168
- vite: "8.2.0",
169
- vue: "^3.5.40",
168
+ vite: "8.2.1",
169
+ vue: "^3.5.41",
170
170
  zod: "^4.4.3"
171
171
  };
172
172
  const TEMPLATE_NAMED_CATALOG = {
173
- "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.15.3" },
174
- "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.2.11" },
173
+ "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.16.0" },
174
+ "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.2.12" },
175
175
  latest: {
176
- "miniprogram-api-typings": "^5.2.2",
176
+ "miniprogram-api-typings": "^5.2.3",
177
177
  typescript: "^6.0.3"
178
178
  },
179
179
  tailwind3: { tailwindcss: "^3.4.19" },
@@ -480,7 +480,7 @@ async function rewriteProjectConfigAppId(targetDir) {
480
480
  const projectConfigPath = path.resolve(targetDir, "project.config.json");
481
481
  if (!await fs.pathExists(projectConfigPath)) return;
482
482
  const projectConfig = await fs.readJSON(projectConfigPath);
483
- if (!projectConfig || typeof projectConfig !== "object" || projectConfig.appid === TOURIST_APP_ID) return;
483
+ if (!projectConfig || typeof projectConfig !== "object" || projectConfig.compileType === "plugin" || projectConfig.appid === TOURIST_APP_ID) return;
484
484
  projectConfig.appid = TOURIST_APP_ID;
485
485
  await writeJsonFile(projectConfigPath, projectConfig);
486
486
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.6.1",
4
+ "version": "2.6.3",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "10.0.1",
4
+ "version": "10.0.3",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -31,7 +31,7 @@
31
31
  ## 使用提示
32
32
 
33
33
  - 模板默认通过 `weapp.pluginRoot` 输出 `dist-plugin/**`
34
- - `src/app.json` 里预置了 `hello-plugin` 的 `provider`
34
+ - `src/app.json` 里预置了与插件 AppID 一致的 `hello-plugin.provider`
35
35
  - 如果你要在自己的插件 AppID 下调试或上传,请先替换 `project.config.json` 的 `appid`,并同步修改 `src/app.json` 里的 `plugins.hello-plugin.provider`
36
36
 
37
37
  ## 文档地址
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://vite.icebreaker.top/page.json",
2
3
  "navigationBarTitleText": "插件原生 TS 页",
3
4
  "usingComponents": {
4
5
  "hello-showcase": "../../components/hello-component/index",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://vite.icebreaker.top/plugin.json",
2
3
  "publicComponents": {
3
4
  "hello-component": "components/hello-component/index",
4
5
  "native-meter": "components/native-meter/index"
@@ -5,7 +5,7 @@
5
5
  "compileType": "plugin",
6
6
  "libVersion": "3.13.2",
7
7
  "srcMiniprogramRoot": "dist/",
8
- "appid": "touristappid",
8
+ "appid": "wxb3d842a4a7e3440d",
9
9
  "setting": {
10
10
  "es6": true,
11
11
  "postcss": false,
@@ -1,11 +1,12 @@
1
1
  {
2
+ "$schema": "https://vite.icebreaker.top/app.json",
2
3
  "pages": [
3
4
  "pages/index/index"
4
5
  ],
5
6
  "plugins": {
6
7
  "hello-plugin": {
7
8
  "version": "dev",
8
- "provider": "touristappid"
9
+ "provider": "wxb3d842a4a7e3440d"
9
10
  }
10
11
  }
11
12
  }
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://vite.icebreaker.top/page.json",
2
3
  "usingComponents": {
3
4
  "hello-showcase": "plugin://hello-plugin/hello-component",
4
5
  "native-meter": "plugin://hello-plugin/native-meter"
@@ -1,7 +1,8 @@
1
1
  {
2
+ "$schema": "https://vite.icebreaker.top/sitemap.json",
2
3
  "desc": "本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3
4
  "rules": [{
4
5
  "action": "allow",
5
6
  "page": "*"
6
7
  }]
7
- }
8
+ }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -1,3 +1,5 @@
1
1
  {
2
- "component": true
2
+ "$schema": "https://vite.icebreaker.top/component.json",
3
+ "component": true,
4
+ "styleIsolation": "apply-shared"
3
5
  }
@@ -8,6 +8,5 @@
8
8
  @source "./**/*.{wxml,js,ts,vue}";
9
9
 
10
10
  page {
11
- font-family: 'HarmonyOS Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
12
11
  background-color: #f6f7fb;
13
12
  }