create-weapp-vite 2.3.38 → 2.3.40
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-
|
|
1
|
+
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-uyf-i-BE.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-uyf-i-BE.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.16.
|
|
9
|
+
var version$2 = "6.16.30";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../dashboard/package.json
|
|
12
|
-
var version$1 = "6.16.
|
|
12
|
+
var version$1 = "6.16.30";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../weapp-vite/package.json
|
|
15
|
-
var version = "6.16.
|
|
15
|
+
var version = "6.16.30";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/enums.ts
|
|
18
18
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -91,7 +91,7 @@ function createAgentsGuidelines(templateName) {
|
|
|
91
91
|
" - `$docs-and-website-sync` when documentation or AI guidance must be refreshed together with code changes."
|
|
92
92
|
];
|
|
93
93
|
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.");
|
|
94
|
-
if (supportsNativePages(templateName)) lines.push(" - `$native-to-weapp-vite-wevu-migration` when migrating native mini-program
|
|
94
|
+
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.");
|
|
95
95
|
if (supportsPlugin(templateName)) lines.push("", "## Plugin Authoring", "", "- Keep `src/` as the host app source and `plugin/` as the plugin source root declared by `weapp.pluginRoot`.", "- Validate both `dist/` and `dist-plugin/` outputs after structural changes to host pages, plugin pages, or plugin public components.", "- If you change plugin AppID or switch away from local `dev` linkage, update both `project.config.json.appid` and `src/app.json` -> `plugins.*.provider` together.", "- Treat shared modules under `shared/` as regular source code that can be imported by both host and plugin entries.");
|
|
96
96
|
return `${lines.join("\n")}\n`;
|
|
97
97
|
}
|
|
@@ -117,7 +117,7 @@ const TEMPLATE_CATALOG = {
|
|
|
117
117
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
118
118
|
"@vue/compiler-core": "^3.5.35",
|
|
119
119
|
"@vue/compiler-dom": "^3.5.35",
|
|
120
|
-
"@vue/language-core": "^3.3.
|
|
120
|
+
"@vue/language-core": "^3.3.3",
|
|
121
121
|
"antd-mini": "^3.4.3",
|
|
122
122
|
"bundle-require": "^5.1.0",
|
|
123
123
|
"class-variance-authority": "^0.7.1",
|
|
@@ -136,14 +136,14 @@ const TEMPLATE_CATALOG = {
|
|
|
136
136
|
"tdesign-miniprogram": "^1.15.0",
|
|
137
137
|
"ts-morph": "^28.0.0",
|
|
138
138
|
"vite-plugin-inspect": "^11.4.1",
|
|
139
|
-
"vue-tsc": "^3.3.
|
|
139
|
+
"vue-tsc": "^3.3.3",
|
|
140
140
|
"weapp-tailwindcss": "^4.12.0",
|
|
141
141
|
autoprefixer: "^10.5.0",
|
|
142
142
|
clsx: "^2.1.1",
|
|
143
143
|
dayjs: "^1.11.21",
|
|
144
144
|
echarts: "^6.1.0",
|
|
145
145
|
esbuild: "^0.28.0",
|
|
146
|
-
eslint: "^10.4.
|
|
146
|
+
eslint: "^10.4.1",
|
|
147
147
|
fdir: "^6.5.0",
|
|
148
148
|
htmlparser2: "^12.0.0",
|
|
149
149
|
lodash: "^4.18.1",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.40",
|
|
5
5
|
"description": "create-weapp-vite",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"node": "^20.19.0 || >=22.12.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@inquirer/prompts": "^8.5.
|
|
50
|
+
"@inquirer/prompts": "^8.5.1",
|
|
51
51
|
"pathe": "^2.0.3",
|
|
52
52
|
"pkg-types": "^2.3.1",
|
|
53
|
-
"@weapp-core/
|
|
54
|
-
"@weapp-core/
|
|
53
|
+
"@weapp-core/logger": "3.1.1",
|
|
54
|
+
"@weapp-core/shared": "3.0.4"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
|