create-weapp-vite 2.5.4 → 2.5.5

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-BBeM8fH-.js";
1
+ import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-DHJIv1Wh.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-BBeM8fH-.js";
1
+ import { r as TemplateName, t as createProject } from "./src-DHJIv1Wh.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.3";
9
+ var version$2 = "6.18.4";
10
10
  //#endregion
11
11
  //#region ../dashboard/package.json
12
- var version$1 = "6.18.3";
12
+ var version$1 = "6.18.4";
13
13
  //#endregion
14
14
  //#region ../weapp-vite/package.json
15
- var version = "6.18.3";
15
+ var version = "6.18.4";
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.");
@@ -116,9 +118,9 @@ const TEMPLATE_CATALOG = {
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.7",
120
- "@vue/compiler-core": "^3.5.39",
121
- "@vue/compiler-dom": "^3.5.39",
121
+ "@vitejs/plugin-vue": "^6.0.8",
122
+ "@vue/compiler-core": "^3.5.40",
123
+ "@vue/compiler-dom": "^3.5.40",
122
124
  "@vue/language-core": "^3.3.7",
123
125
  "antd-mini": "^3.4.3",
124
126
  "bundle-require": "^5.1.0",
@@ -129,7 +131,7 @@ const TEMPLATE_CATALOG = {
129
131
  "lru-cache": "^11.5.2",
130
132
  "magic-string": "^0.30.21",
131
133
  "miniprogram-api-typings": "^5.2.1",
132
- "oxc-parser": "^0.139.0",
134
+ "oxc-parser": "^0.140.0",
133
135
  "oxc-walker": "^1.0.0",
134
136
  "pkg-types": "^2.3.1",
135
137
  "sass-embedded": "^1.100.0",
@@ -139,8 +141,8 @@ const TEMPLATE_CATALOG = {
139
141
  "ts-morph": "^28.0.0",
140
142
  "vite-plugin-inspect": "^12.0.2",
141
143
  "vue-tsc": "^3.3.7",
142
- "weapp-tailwindcss": "^5.1.15",
143
- autoprefixer: "^10.5.2",
144
+ "weapp-tailwindcss": "^5.1.16",
145
+ autoprefixer: "^10.5.3",
144
146
  clsx: "^2.1.1",
145
147
  dayjs: "^1.11.21",
146
148
  echarts: "^6.1.0",
@@ -159,13 +161,13 @@ const TEMPLATE_CATALOG = {
159
161
  tailwindcss: "^4.3.2",
160
162
  tslib: "^2.8.1",
161
163
  typescript: "^6.0.3",
162
- vite: "8.1.4",
163
- vue: "^3.5.39",
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.1.15" },
170
+ "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.1.16" },
169
171
  latest: {
170
172
  "miniprogram-api-typings": "^5.2.1",
171
173
  typescript: "^6.0.3"
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",
4
+ "version": "2.5.5",
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/logger": "3.1.1",
53
52
  "@weapp-core/init": "6.0.11",
54
- "@weapp-core/shared": "3.0.5"
53
+ "@weapp-core/shared": "3.0.5",
54
+ "@weapp-core/logger": "3.1.1"
55
55
  },
56
56
  "scripts": {
57
57
  "catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "9.0.3",
4
+ "version": "9.0.4",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",