create-weapp-vite 2.4.6 → 2.5.1

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-BrBehG_0.js";
1
+ import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-DHstep-n.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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import "pkg-types";
1
2
  //#region src/enums.d.ts
2
3
  declare enum TemplateName {
3
4
  default = "default",
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { r as TemplateName, t as createProject } from "./src-BrBehG_0.js";
1
+ import { r as TemplateName, t as createProject } from "./src-DHstep-n.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.17.8";
9
+ var version$2 = "6.18.1";
10
10
  //#endregion
11
11
  //#region ../dashboard/package.json
12
- var version$1 = "6.17.8";
12
+ var version$1 = "6.18.1";
13
13
  //#endregion
14
14
  //#region ../weapp-vite/package.json
15
- var version = "6.17.8";
15
+ var version = "6.18.1";
16
16
  //#endregion
17
17
  //#region src/enums.ts
18
18
  let TemplateName = /* @__PURE__ */ function(TemplateName) {
@@ -75,6 +75,8 @@ function createAgentsGuidelines(templateName) {
75
75
  "- Prefer minimal scoped verification: targeted `pnpm build`, targeted tests, then broader checks only when required.",
76
76
  "- If editing package source in a monorepo dependency, rebuild the touched package before validating downstream apps to avoid stale `dist`.",
77
77
  "- Keep CLI ownership explicit: native `weapp-vite` commands first, IDE passthrough second.",
78
+ "- For Rust/native acceleration, treat JS ↔ Rust boundary crossings as a primary performance cost. Prefer batch analysis that sends source once, parses once, and returns structured results; only put fine-grained native APIs on hot paths when profiling proves a net win.",
79
+ "- Keep native AST fast paths optional and explicitly enabled. They must fall back to Babel/Oxc/Vue compiler behavior on load, parse, or runtime failure, and new native coverage needs correctness tests plus real profiling.",
78
80
  "",
79
81
  "## WeChat DevTools",
80
82
  "",
@@ -100,50 +102,50 @@ function createAgentsGuidelines(templateName) {
100
102
  const TEMPLATE_CATALOG = {
101
103
  "@babel/core": "^8.0.1",
102
104
  "@babel/generator": "^8.0.0",
103
- "@babel/parser": "^8.0.0",
104
- "@babel/traverse": "^8.0.0",
105
- "@babel/types": "^8.0.0",
105
+ "@babel/parser": "^8.0.4",
106
+ "@babel/traverse": "^8.0.4",
107
+ "@babel/types": "^8.0.4",
106
108
  "@douyin-microapp/typings": "^1.3.1",
107
109
  "@egoist/tailwindcss-icons": "^1.9.2",
108
- "@icebreakers/eslint-config": "^6.0.0",
109
- "@icebreakers/stylelint-config": "^5.0.0",
110
+ "@icebreakers/eslint-config": "^7.0.1",
111
+ "@icebreakers/stylelint-config": "^5.0.2",
110
112
  "@iconify-json/mdi": "^1.2.3",
111
113
  "@iconify/tailwind4": "^1.2.3",
112
114
  "@mini-types/alipay": "^3.0.14",
113
- "@tailwindcss/vite": "^4.3.1",
114
- "@types/node": "^26.0.1",
115
+ "@tailwindcss/vite": "^4.3.2",
116
+ "@types/node": "^26.1.1",
115
117
  "@types/semver": "^7.7.1",
116
118
  "@vant/weapp": "^1.11.7",
117
119
  "@vitejs/plugin-vue": "^6.0.7",
118
120
  "@vue/compiler-core": "^3.5.39",
119
121
  "@vue/compiler-dom": "^3.5.39",
120
- "@vue/language-core": "^3.3.5",
122
+ "@vue/language-core": "^3.3.7",
121
123
  "antd-mini": "^3.4.3",
122
124
  "bundle-require": "^5.1.0",
123
125
  "class-variance-authority": "^0.7.1",
124
126
  "comment-json": "^5.0.0",
125
127
  "estree-walker": "^3.0.3",
126
128
  "gm-crypto": "^0.1.12",
127
- "lru-cache": "^11.5.1",
129
+ "lru-cache": "^11.5.2",
128
130
  "magic-string": "^0.30.21",
129
131
  "miniprogram-api-typings": "^5.2.1",
130
- "oxc-parser": "^0.137.0",
132
+ "oxc-parser": "^0.139.0",
131
133
  "oxc-walker": "^1.0.0",
132
134
  "pkg-types": "^2.3.1",
133
135
  "sass-embedded": "^1.100.0",
134
136
  "tailwind-merge": "^3.6.0",
135
137
  "tailwind-variants": "^3.2.2",
136
- "tdesign-miniprogram": "^1.15.2",
138
+ "tdesign-miniprogram": "^1.15.3",
137
139
  "ts-morph": "^28.0.0",
138
140
  "vite-plugin-inspect": "^11.4.1",
139
- "vue-tsc": "^3.3.5",
140
- "weapp-tailwindcss": "^5.1.4",
141
+ "vue-tsc": "^3.3.7",
142
+ "weapp-tailwindcss": "^5.1.14",
141
143
  autoprefixer: "^10.5.2",
142
144
  clsx: "^2.1.1",
143
145
  dayjs: "^1.11.21",
144
146
  echarts: "^6.1.0",
145
147
  esbuild: "^0.28.1",
146
- eslint: "^10.6.0",
148
+ eslint: "^10.7.0",
147
149
  fdir: "^6.5.0",
148
150
  htmlparser2: "^12.0.0",
149
151
  lodash: "^4.18.1",
@@ -151,25 +153,25 @@ const TEMPLATE_CATALOG = {
151
153
  obug: "^2.1.3",
152
154
  pathe: "^2.0.3",
153
155
  postcss: "^8.5.16",
154
- rolldown: "1.1.3",
156
+ rolldown: "1.1.5",
155
157
  sass: "^1.101.0",
156
158
  stylelint: "^17.14.0",
157
- tailwindcss: "^4.3.1",
159
+ tailwindcss: "^4.3.2",
158
160
  tslib: "^2.8.1",
159
161
  typescript: "^6.0.3",
160
- vite: "8.1.0",
162
+ vite: "8.1.4",
161
163
  vue: "^3.5.39",
162
164
  zod: "^4.4.3"
163
165
  };
164
166
  const TEMPLATE_NAMED_CATALOG = {
165
- "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.15.2" },
166
- "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.1.4" },
167
+ "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.15.3" },
168
+ "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.1.14" },
167
169
  latest: {
168
170
  "miniprogram-api-typings": "^5.2.1",
169
171
  typescript: "^6.0.3"
170
172
  },
171
173
  tailwind3: { tailwindcss: "^3.4.19" },
172
- tailwind4: { tailwindcss: "^4.3.1" }
174
+ tailwind4: { tailwindcss: "^4.3.2" }
173
175
  };
174
176
  //#endregion
175
177
  //#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.4.6",
4
+ "version": "2.5.1",
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/init": "6.0.11",
53
52
  "@weapp-core/logger": "3.1.1",
54
- "@weapp-core/shared": "3.0.5"
53
+ "@weapp-core/shared": "3.0.5",
54
+ "@weapp-core/init": "6.0.11"
55
55
  },
56
56
  "scripts": {
57
57
  "catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "ignoreUploadUnusedFiles": true,
23
23
  "compileHotReLoad": false,
24
- "skylineRenderEnable": true,
24
+ "skylineRenderEnable": false,
25
25
  "packNpmManually": true,
26
26
  "es6": true,
27
27
  "minifyWXML": true
@@ -1,4 +1,4 @@
1
- <view>
1
+ <view class="page">
2
2
  <view style="display:flex;align-items:center;justify-content:center;">
3
3
  <view>
4
4
  <image style="width:200px;height:190px" src="/logo.png" />
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "8.0.8",
4
+ "version": "9.0.1",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -10,17 +10,17 @@
10
10
  gap: 12rpx;
11
11
  align-items: center;
12
12
  justify-content: space-between;
13
- }
14
13
 
15
- &__label {
16
- font-size: 24rpx;
17
- font-weight: 600;
18
- color: #233a5e;
19
- }
14
+ .native-meter__label {
15
+ font-size: 24rpx;
16
+ font-weight: 600;
17
+ color: #233a5e;
18
+ }
20
19
 
21
- &__value {
22
- font-size: 23rpx;
23
- color: #5f6a80;
20
+ .native-meter__value {
21
+ font-size: 23rpx;
22
+ color: #5f6a80;
23
+ }
24
24
  }
25
25
 
26
26
  &__track {
@@ -35,17 +35,17 @@
35
35
  height: 100%;
36
36
  border-radius: 999rpx;
37
37
  transition: width 0.25s ease;
38
- }
39
38
 
40
- &__bar--neutral {
41
- background: linear-gradient(90deg, #5f7cff, #4d63dd);
42
- }
39
+ &--neutral {
40
+ background: linear-gradient(90deg, #5f7cff, #4d63dd);
41
+ }
43
42
 
44
- &__bar--success {
45
- background: linear-gradient(90deg, #0d9488, #22c55e);
46
- }
43
+ &--success {
44
+ background: linear-gradient(90deg, #0d9488, #22c55e);
45
+ }
47
46
 
48
- &__bar--danger {
49
- background: linear-gradient(90deg, #dc2626, #f97316);
47
+ &--danger {
48
+ background: linear-gradient(90deg, #dc2626, #f97316);
49
+ }
50
50
  }
51
51
  }
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "ignoreUploadUnusedFiles": true,
23
23
  "compileHotReLoad": false,
24
- "skylineRenderEnable": true,
24
+ "skylineRenderEnable": false,
25
25
  "packNpmManually": true,
26
26
  "es6": true,
27
27
  "minifyWXML": true
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "ignoreUploadUnusedFiles": true,
23
23
  "compileHotReLoad": false,
24
- "skylineRenderEnable": true,
24
+ "skylineRenderEnable": false,
25
25
  "packNpmManually": true,
26
26
  "es6": true,
27
27
  "swc": false,
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "ignoreUploadUnusedFiles": true,
23
23
  "compileHotReLoad": false,
24
- "skylineRenderEnable": true,
24
+ "skylineRenderEnable": false,
25
25
  "packNpmManually": true,
26
26
  "es6": true,
27
27
  "minifyWXML": true
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "ignoreUploadUnusedFiles": true,
23
23
  "compileHotReLoad": false,
24
- "skylineRenderEnable": true,
24
+ "skylineRenderEnable": false,
25
25
  "packNpmManually": true,
26
26
  "es6": true,
27
27
  "minifyWXML": true