create-weapp-vite 2.8.2 → 2.8.4
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-CPv1LUNQ.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-CPv1LUNQ.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -6,16 +6,19 @@ 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/react/package.json
|
|
9
|
-
var version$
|
|
9
|
+
var version$4 = "0.2.1";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../../packages-runtime/wevu/package.json
|
|
12
|
-
var version$
|
|
12
|
+
var version$3 = "6.23.0";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../dashboard/package.json
|
|
15
|
-
var version$
|
|
15
|
+
var version$2 = "6.23.0";
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../eslint/package.json
|
|
18
|
+
var version$1 = "0.2.1";
|
|
16
19
|
//#endregion
|
|
17
20
|
//#region ../weapp-vite/package.json
|
|
18
|
-
var version = "6.
|
|
21
|
+
var version = "6.23.0";
|
|
19
22
|
//#endregion
|
|
20
23
|
//#region src/enums.ts
|
|
21
24
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -129,13 +132,13 @@ const TEMPLATE_CATALOG = {
|
|
|
129
132
|
"@babel/types": "^8.0.4",
|
|
130
133
|
"@douyin-microapp/typings": "^1.3.1",
|
|
131
134
|
"@egoist/tailwindcss-icons": "^1.9.2",
|
|
132
|
-
"@icebreakers/eslint-config": "^7.0
|
|
133
|
-
"@icebreakers/stylelint-config": "^5.0.
|
|
135
|
+
"@icebreakers/eslint-config": "^7.1.0",
|
|
136
|
+
"@icebreakers/stylelint-config": "^5.0.6",
|
|
134
137
|
"@iconify-json/mdi": "^1.2.3",
|
|
135
138
|
"@iconify/tailwind4": "^1.2.3",
|
|
136
139
|
"@mini-types/alipay": "^3.0.14",
|
|
137
140
|
"@tailwindcss/vite": "^4.3.3",
|
|
138
|
-
"@types/node": "^26.
|
|
141
|
+
"@types/node": "^26.3.0",
|
|
139
142
|
"@types/semver": "^7.8.0",
|
|
140
143
|
"@vant/weapp": "^1.11.7",
|
|
141
144
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
@@ -154,7 +157,7 @@ const TEMPLATE_CATALOG = {
|
|
|
154
157
|
"lru-cache": "^11.5.2",
|
|
155
158
|
"magic-string": "^1.2.2",
|
|
156
159
|
"miniprogram-api-typings": "^5.2.3",
|
|
157
|
-
"oxc-parser": "^0.
|
|
160
|
+
"oxc-parser": "^0.147.0",
|
|
158
161
|
"oxc-walker": "^1.1.1",
|
|
159
162
|
"pkg-types": "^2.3.1",
|
|
160
163
|
"sass-embedded": "^1.103.1",
|
|
@@ -162,16 +165,16 @@ const TEMPLATE_CATALOG = {
|
|
|
162
165
|
"tailwind-variants": "^3.3.1",
|
|
163
166
|
"tdesign-miniprogram": "^1.16.0",
|
|
164
167
|
"ts-morph": "^28.0.0",
|
|
165
|
-
"uview-plus": "3.8.
|
|
168
|
+
"uview-plus": "3.8.112",
|
|
166
169
|
"vite-plugin-inspect": "^12.0.2",
|
|
167
170
|
"vue-tsc": "^3.3.11",
|
|
168
|
-
"weapp-tailwindcss": "^5.3.
|
|
171
|
+
"weapp-tailwindcss": "^5.3.5",
|
|
169
172
|
autoprefixer: "^10.5.4",
|
|
170
173
|
clsx: "^2.1.1",
|
|
171
174
|
dayjs: "^1.11.23",
|
|
172
175
|
echarts: "^6.1.0",
|
|
173
176
|
esbuild: "^0.28.2",
|
|
174
|
-
eslint: "^10.9.
|
|
177
|
+
eslint: "^10.9.1",
|
|
175
178
|
fdir: "^6.5.0",
|
|
176
179
|
htmlparser2: "^12.0.0",
|
|
177
180
|
lodash: "^4.18.1",
|
|
@@ -192,7 +195,7 @@ const TEMPLATE_CATALOG = {
|
|
|
192
195
|
};
|
|
193
196
|
const TEMPLATE_NAMED_CATALOG = {
|
|
194
197
|
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.16.0" },
|
|
195
|
-
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.3.
|
|
198
|
+
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.3.5" },
|
|
196
199
|
latest: {
|
|
197
200
|
"miniprogram-api-typings": "^5.2.3",
|
|
198
201
|
typescript: "^6.0.3"
|
|
@@ -599,9 +602,10 @@ async function createProject(targetDir = "", templateName = "default", options =
|
|
|
599
602
|
ensureManagedTypeScriptDevDependencies(pkgJson);
|
|
600
603
|
if (!pkgJson.devDependencies) pkgJson.devDependencies = {};
|
|
601
604
|
upsertExistingDependencyVersion(pkgJson, "weapp-vite", toCaretVersion(version));
|
|
602
|
-
upsertExistingDependencyVersion(pkgJson, "@weapp-vite/
|
|
603
|
-
upsertExistingDependencyVersion(pkgJson, "
|
|
604
|
-
upsertExistingDependencyVersion(pkgJson, "
|
|
605
|
+
upsertExistingDependencyVersion(pkgJson, "@weapp-vite/eslint", toCaretVersion(version$1));
|
|
606
|
+
upsertExistingDependencyVersion(pkgJson, "@weapp-vite/react", toCaretVersion(version$4));
|
|
607
|
+
upsertExistingDependencyVersion(pkgJson, "wevu", toCaretVersion(version$3));
|
|
608
|
+
upsertExistingDependencyVersion(pkgJson, "@weapp-vite/dashboard", toCaretVersion(version$2));
|
|
605
609
|
await upsertTailwindcssVersion(pkgJson);
|
|
606
610
|
await writeJsonFile(packageJsonPath, pkgJson);
|
|
607
611
|
await fs.writeFile(path.resolve(targetDir, "AGENTS.md"), createAgentsGuidelines(templateName));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.4",
|
|
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.6.0",
|
|
50
50
|
"pathe": "^2.0.3",
|
|
51
51
|
"pkg-types": "^2.3.1",
|
|
52
|
-
"@weapp-core/init": "6.0.
|
|
52
|
+
"@weapp-core/init": "6.0.15",
|
|
53
53
|
"@weapp-core/logger": "3.1.1",
|
|
54
|
-
"@weapp-core/shared": "3.
|
|
54
|
+
"@weapp-core/shared": "3.2.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
|
|
@@ -28,6 +28,26 @@ export default defineConfig({
|
|
|
28
28
|
vueComponents: true,
|
|
29
29
|
vueComponentsModule: 'wevu',
|
|
30
30
|
},
|
|
31
|
+
npm: {
|
|
32
|
+
packageFiles: {
|
|
33
|
+
'tdesign-miniprogram': {
|
|
34
|
+
exclude: [
|
|
35
|
+
'**/*.d.ts',
|
|
36
|
+
'**/type.js',
|
|
37
|
+
'common/shared/**',
|
|
38
|
+
],
|
|
39
|
+
include: [
|
|
40
|
+
'button/**',
|
|
41
|
+
'common/**',
|
|
42
|
+
'icon/**',
|
|
43
|
+
'loading/**',
|
|
44
|
+
'miniprogram_npm/tslib/**',
|
|
45
|
+
'mixins/**',
|
|
46
|
+
'tag/**',
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
31
51
|
wevu: {
|
|
32
52
|
defaults: {
|
|
33
53
|
component: {
|