create-weapp-vite 2.5.4 → 2.5.6
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-BBeM8fH-.js → src-B4-j5YB4.js} +25 -23
- package/package.json +3 -3
- package/templates/lib/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-
|
|
1
|
+
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-B4-j5YB4.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-
|
|
1
|
+
import { r as TemplateName, t as createProject } from "./src-B4-j5YB4.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.18.
|
|
9
|
+
var version$2 = "6.18.5";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../dashboard/package.json
|
|
12
|
-
var version$1 = "6.18.
|
|
12
|
+
var version$1 = "6.18.5";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../weapp-vite/package.json
|
|
15
|
-
var version = "6.18.
|
|
15
|
+
var version = "6.18.5";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/enums.ts
|
|
18
18
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -90,7 +90,9 @@ function createAgentsGuidelines(templateName) {
|
|
|
90
90
|
" - `$weapp-vite-best-practices` for config, build, subpackage, route, DevTools CLI orchestration, and screenshot/compare command work.",
|
|
91
91
|
" - `$weapp-vite-vue-sfc-best-practices` for `.vue` SFC macros, JSON blocks, and template compatibility.",
|
|
92
92
|
" - `$release-and-changeset-best-practices` for issue delivery, changesets, release decisions, and PR workflow.",
|
|
93
|
-
" - `$docs-and-website-sync` when documentation or AI guidance must be refreshed together with code changes."
|
|
93
|
+
" - `$docs-and-website-sync` when documentation or AI guidance must be refreshed together with code changes.",
|
|
94
|
+
" - Use `$weapp-vite-best-practices` for stateful HMR, pluginRoot/dist-plugin, Web runtime compatibility, and native AST profiling; use `$wevu-best-practices` for `wevu/router` navigation semantics.",
|
|
95
|
+
" - Use `$weapp-devtools-e2e-best-practices` for serialized DevTools runtime suites, shared automator sessions, and known host compatibility skips."
|
|
94
96
|
];
|
|
95
97
|
if (supportsWevu(templateName)) lines.push(" - `$wevu-best-practices` for `wevu` runtime lifecycle, state, store, and event contracts.", "", "## Wevu Authoring", "", "- Import runtime APIs from `wevu` in business code.", "- Register lifecycle hooks synchronously in `setup()` and avoid hook registration after `await`.", "- Prefer `ref`, `reactive`, `computed`, and explicit event contracts over large opaque state writes.", "- Use `storeToRefs` when destructuring store state/getters.", "- Treat mini-program runtime constraints as primary; do not assume Vue web-only behavior.");
|
|
96
98
|
if (supportsNativePages(templateName)) lines.push(" - `$native-to-weapp-vite-wevu-migration` when migrating native mini-program projects to `weapp-vite + native`, or further toward Vue SFC / wevu.", "", "## Native Mini-program Authoring", "", "- Keep native page/component structure consistent with the template unless there is a clear migration goal.", "- Prefer `weapp-vite generate` or `wv generate` for new app/page/component scaffolds.", "- If migrating this project, first decide whether the target is `weapp-vite + native` or a further Vue SFC / `wevu` migration, then keep each migration wave explicit.");
|
|
@@ -112,14 +114,14 @@ const TEMPLATE_CATALOG = {
|
|
|
112
114
|
"@iconify-json/mdi": "^1.2.3",
|
|
113
115
|
"@iconify/tailwind4": "^1.2.3",
|
|
114
116
|
"@mini-types/alipay": "^3.0.14",
|
|
115
|
-
"@tailwindcss/vite": "^4.3.
|
|
117
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
116
118
|
"@types/node": "^26.1.1",
|
|
117
119
|
"@types/semver": "^7.7.1",
|
|
118
120
|
"@vant/weapp": "^1.11.7",
|
|
119
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
120
|
-
"@vue/compiler-core": "^3.5.
|
|
121
|
-
"@vue/compiler-dom": "^3.5.
|
|
122
|
-
"@vue/language-core": "^3.3.
|
|
121
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
122
|
+
"@vue/compiler-core": "^3.5.40",
|
|
123
|
+
"@vue/compiler-dom": "^3.5.40",
|
|
124
|
+
"@vue/language-core": "^3.3.8",
|
|
123
125
|
"antd-mini": "^3.4.3",
|
|
124
126
|
"bundle-require": "^5.1.0",
|
|
125
127
|
"class-variance-authority": "^0.7.1",
|
|
@@ -127,9 +129,9 @@ const TEMPLATE_CATALOG = {
|
|
|
127
129
|
"estree-walker": "^3.0.3",
|
|
128
130
|
"gm-crypto": "^0.1.12",
|
|
129
131
|
"lru-cache": "^11.5.2",
|
|
130
|
-
"magic-string": "^0.
|
|
132
|
+
"magic-string": "^1.0.0",
|
|
131
133
|
"miniprogram-api-typings": "^5.2.1",
|
|
132
|
-
"oxc-parser": "^0.
|
|
134
|
+
"oxc-parser": "^0.141.0",
|
|
133
135
|
"oxc-walker": "^1.0.0",
|
|
134
136
|
"pkg-types": "^2.3.1",
|
|
135
137
|
"sass-embedded": "^1.100.0",
|
|
@@ -138,9 +140,9 @@ const TEMPLATE_CATALOG = {
|
|
|
138
140
|
"tdesign-miniprogram": "^1.15.3",
|
|
139
141
|
"ts-morph": "^28.0.0",
|
|
140
142
|
"vite-plugin-inspect": "^12.0.2",
|
|
141
|
-
"vue-tsc": "^3.3.
|
|
142
|
-
"weapp-tailwindcss": "^5.
|
|
143
|
-
autoprefixer: "^10.5.
|
|
143
|
+
"vue-tsc": "^3.3.8",
|
|
144
|
+
"weapp-tailwindcss": "^5.2.0",
|
|
145
|
+
autoprefixer: "^10.5.4",
|
|
144
146
|
clsx: "^2.1.1",
|
|
145
147
|
dayjs: "^1.11.21",
|
|
146
148
|
echarts: "^6.1.0",
|
|
@@ -150,28 +152,28 @@ const TEMPLATE_CATALOG = {
|
|
|
150
152
|
htmlparser2: "^12.0.0",
|
|
151
153
|
lodash: "^4.18.1",
|
|
152
154
|
merge: "^2.1.1",
|
|
153
|
-
obug: "^2.1.
|
|
155
|
+
obug: "^2.1.4",
|
|
154
156
|
pathe: "^2.0.3",
|
|
155
|
-
postcss: "^8.5.
|
|
157
|
+
postcss: "^8.5.22",
|
|
156
158
|
rolldown: "1.1.5",
|
|
157
|
-
sass: "^1.101.
|
|
158
|
-
stylelint: "^17.14.
|
|
159
|
-
tailwindcss: "^4.3.
|
|
159
|
+
sass: "^1.101.6",
|
|
160
|
+
stylelint: "^17.14.1",
|
|
161
|
+
tailwindcss: "^4.3.3",
|
|
160
162
|
tslib: "^2.8.1",
|
|
161
163
|
typescript: "^6.0.3",
|
|
162
|
-
vite: "8.1.
|
|
163
|
-
vue: "^3.5.
|
|
164
|
+
vite: "8.1.5",
|
|
165
|
+
vue: "^3.5.40",
|
|
164
166
|
zod: "^4.4.3"
|
|
165
167
|
};
|
|
166
168
|
const TEMPLATE_NAMED_CATALOG = {
|
|
167
169
|
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.15.3" },
|
|
168
|
-
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.
|
|
170
|
+
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.2.0" },
|
|
169
171
|
latest: {
|
|
170
172
|
"miniprogram-api-typings": "^5.2.1",
|
|
171
173
|
typescript: "^6.0.3"
|
|
172
174
|
},
|
|
173
175
|
tailwind3: { tailwindcss: "^3.4.19" },
|
|
174
|
-
tailwind4: { tailwindcss: "^4.3.
|
|
176
|
+
tailwind4: { tailwindcss: "^4.3.3" }
|
|
175
177
|
};
|
|
176
178
|
//#endregion
|
|
177
179
|
//#region src/npm.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.6",
|
|
5
5
|
"description": "create-weapp-vite",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@inquirer/prompts": "^8.5.2",
|
|
50
50
|
"pathe": "^2.0.3",
|
|
51
51
|
"pkg-types": "^2.3.1",
|
|
52
|
+
"@weapp-core/shared": "3.0.6",
|
|
52
53
|
"@weapp-core/logger": "3.1.1",
|
|
53
|
-
"@weapp-core/init": "6.0.
|
|
54
|
-
"@weapp-core/shared": "3.0.5"
|
|
54
|
+
"@weapp-core/init": "6.0.12"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
|