create-weapp-vite 2.6.0 → 2.6.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 +6 -4
- package/dist/index.js +1 -1
- package/dist/{src-SLEtsftb.js → src-CaBj9S6m.js} +16 -16
- package/package.json +1 -1
- 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-CaBj9S6m.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";
|
|
@@ -81,14 +81,16 @@ async function run() {
|
|
|
81
81
|
default: false
|
|
82
82
|
}))) return;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
const templateName = isArgMode ? argTemplate ?? "default" : await select({
|
|
85
85
|
message: "选择模板",
|
|
86
86
|
choices: TEMPLATE_CHOICES,
|
|
87
87
|
default: "default"
|
|
88
|
-
})
|
|
88
|
+
});
|
|
89
|
+
const installSkills = isArgMode ? argInstallSkills ?? false : await confirm({
|
|
89
90
|
message: `是否安装推荐的 AI skills?将执行 \`${RECOMMENDED_SKILLS_INSTALL_COMMAND}\`,也可稍后手动执行`,
|
|
90
91
|
default: true
|
|
91
|
-
})
|
|
92
|
+
});
|
|
93
|
+
await createProject(targetDir, templateName, { installSkills });
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
96
|
* @description CLI 主入口执行 Promise(便于测试或外部调用)
|
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-CaBj9S6m.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.
|
|
9
|
+
var version$2 = "6.19.1";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../dashboard/package.json
|
|
12
|
-
var version$1 = "6.19.
|
|
12
|
+
var version$1 = "6.19.1";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../weapp-vite/package.json
|
|
15
|
-
var version = "6.19.
|
|
15
|
+
var version = "6.19.1";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/enums.ts
|
|
18
18
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -116,13 +116,13 @@ const TEMPLATE_CATALOG = {
|
|
|
116
116
|
"@mini-types/alipay": "^3.0.14",
|
|
117
117
|
"@tailwindcss/vite": "^4.3.3",
|
|
118
118
|
"@types/node": "^26.1.2",
|
|
119
|
-
"@types/semver": "^7.
|
|
119
|
+
"@types/semver": "^7.8.0",
|
|
120
120
|
"@vant/weapp": "^1.11.7",
|
|
121
121
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
122
122
|
"@vue/compiler-core": "^3.5.40",
|
|
123
123
|
"@vue/compiler-dom": "^3.5.40",
|
|
124
|
-
"@vue/language-core": "^3.3.
|
|
125
|
-
"@wot-ui/ui": "2.
|
|
124
|
+
"@vue/language-core": "^3.3.9",
|
|
125
|
+
"@wot-ui/ui": "2.3.0",
|
|
126
126
|
"antd-mini": "^3.4.3",
|
|
127
127
|
"bundle-require": "^5.1.0",
|
|
128
128
|
"class-variance-authority": "^0.7.1",
|
|
@@ -133,18 +133,18 @@ const TEMPLATE_CATALOG = {
|
|
|
133
133
|
"lru-cache": "^11.5.2",
|
|
134
134
|
"magic-string": "^1.1.0",
|
|
135
135
|
"miniprogram-api-typings": "^5.2.2",
|
|
136
|
-
"oxc-parser": "^0.
|
|
137
|
-
"oxc-walker": "^1.
|
|
136
|
+
"oxc-parser": "^0.143.0",
|
|
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
|
-
"tailwind-variants": "^3.3.
|
|
141
|
+
"tailwind-variants": "^3.3.1",
|
|
142
142
|
"tdesign-miniprogram": "^1.15.3",
|
|
143
143
|
"ts-morph": "^28.0.0",
|
|
144
144
|
"uview-plus": "3.8.86",
|
|
145
145
|
"vite-plugin-inspect": "^12.0.2",
|
|
146
|
-
"vue-tsc": "^3.3.
|
|
147
|
-
"weapp-tailwindcss": "^5.2.
|
|
146
|
+
"vue-tsc": "^3.3.9",
|
|
147
|
+
"weapp-tailwindcss": "^5.2.11",
|
|
148
148
|
autoprefixer: "^10.5.4",
|
|
149
149
|
clsx: "^2.1.1",
|
|
150
150
|
dayjs: "^1.11.21",
|
|
@@ -157,21 +157,21 @@ const TEMPLATE_CATALOG = {
|
|
|
157
157
|
merge: "^2.1.1",
|
|
158
158
|
obug: "^2.1.4",
|
|
159
159
|
pathe: "^2.0.3",
|
|
160
|
-
postcss: "^8.5.
|
|
161
|
-
rolldown: "1.
|
|
160
|
+
postcss: "^8.5.25",
|
|
161
|
+
rolldown: "1.2.2",
|
|
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.
|
|
166
|
+
tsx: "^4.23.5",
|
|
167
167
|
typescript: "^6.0.3",
|
|
168
|
-
vite: "8.
|
|
168
|
+
vite: "8.2.0",
|
|
169
169
|
vue: "^3.5.40",
|
|
170
170
|
zod: "^4.4.3"
|
|
171
171
|
};
|
|
172
172
|
const TEMPLATE_NAMED_CATALOG = {
|
|
173
173
|
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.15.3" },
|
|
174
|
-
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.2.
|
|
174
|
+
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.2.11" },
|
|
175
175
|
latest: {
|
|
176
176
|
"miniprogram-api-typings": "^5.2.2",
|
|
177
177
|
typescript: "^6.0.3"
|
package/package.json
CHANGED