create-weapp-vite 2.0.81 → 2.1.0
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-B1Grpbo_.js → src-yFJBBYLM.js} +8 -12
- package/package.json +3 -3
- package/templates/default/package.json +2 -2
- package/templates/default/src/components/HelloWorld/HelloWorld.ts +1 -1
- package/templates/default/src/pages/index/index.ts +1 -1
- package/templates/default/src/pages/layouts/index.ts +1 -1
- package/templates/lib/package.json +3 -5
- package/templates/lib/src/components/HelloWorld/HelloWorld.ts +1 -1
- package/templates/lib/src/pages/index/index.ts +1 -1
- package/templates/lib/src/pages/layouts/index.ts +1 -1
- package/templates/tailwindcss/package.json +2 -2
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.ts +1 -1
- package/templates/tailwindcss/src/pages/index/index.ts +1 -1
- package/templates/tailwindcss/src/pages/layouts/index.ts +1 -1
- package/templates/tdesign/package.json +2 -2
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.ts +1 -1
- package/templates/tdesign/src/pages/index/index.ts +1 -1
- package/templates/tdesign/src/pages/layouts/index.ts +1 -1
- package/templates/vant/package.json +2 -2
- package/templates/vant/src/components/HelloWorld/HelloWorld.ts +1 -1
- package/templates/vant/src/pages/index/index.ts +1 -1
- package/templates/vant/src/pages/layouts/index.ts +1 -1
- package/templates/wevu/package.json +2 -2
- package/templates/wevu/src/app.vue +1 -1
- package/templates/wevu-tdesign/package.json +2 -2
- package/templates/wevu-tdesign/src/app.vue +1 -1
- package/templates/wevu-tdesign/src/hooks/usePullDownRefresh.ts +1 -1
- package/templates/wevu-tdesign/src/pages/ability/index.vue +1 -1
- package/templates/wevu-tdesign/src/pages/index/index.vue +1 -1
- package/templates/wevu-tdesign/src/pages/layouts/index.vue +1 -1
- package/templates/wevu-tdesign/src/subpackages/ability/index.vue +1 -1
- package/templates/wevu-tdesign/src/subpackages/lab/index.vue +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, r as TemplateName, t as createProject } from "./src-
|
|
1
|
+
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, r as TemplateName, t as createProject } from "./src-yFJBBYLM.js";
|
|
2
2
|
import logger from "@weapp-core/logger";
|
|
3
3
|
import { fs } from "@weapp-core/shared";
|
|
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-yFJBBYLM.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -5,14 +5,11 @@ import path from "pathe";
|
|
|
5
5
|
import https from "node:https";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import process from "node:process";
|
|
8
|
-
//#region ../../packages-runtime/weapi/package.json
|
|
9
|
-
var version$2 = "0.2.3";
|
|
10
|
-
//#endregion
|
|
11
8
|
//#region ../../packages-runtime/wevu/package.json
|
|
12
|
-
var version$1 = "6.
|
|
9
|
+
var version$1 = "6.15.0";
|
|
13
10
|
//#endregion
|
|
14
11
|
//#region ../weapp-vite/package.json
|
|
15
|
-
var version = "6.
|
|
12
|
+
var version = "6.15.0";
|
|
16
13
|
//#endregion
|
|
17
14
|
//#region src/enums.ts
|
|
18
15
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -103,7 +100,7 @@ const TEMPLATE_CATALOG = {
|
|
|
103
100
|
"@mini-types/alipay": "^3.0.14",
|
|
104
101
|
"@tailwindcss/postcss": "^4.2.2",
|
|
105
102
|
"@tailwindcss/vite": "^4.2.2",
|
|
106
|
-
"@types/node": "^25.
|
|
103
|
+
"@types/node": "^25.6.0",
|
|
107
104
|
"@types/semver": "^7.7.1",
|
|
108
105
|
"@vant/weapp": "^1.11.7",
|
|
109
106
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
@@ -116,7 +113,7 @@ const TEMPLATE_CATALOG = {
|
|
|
116
113
|
"comment-json": "^4.6.2",
|
|
117
114
|
"estree-walker": "^3.0.3",
|
|
118
115
|
"gm-crypto": "^0.1.12",
|
|
119
|
-
"lru-cache": "^11.3.
|
|
116
|
+
"lru-cache": "^11.3.3",
|
|
120
117
|
"magic-string": "^0.30.21",
|
|
121
118
|
"miniprogram-api-typings": "^5.1.2",
|
|
122
119
|
"oxc-parser": "^0.124.0",
|
|
@@ -125,7 +122,7 @@ const TEMPLATE_CATALOG = {
|
|
|
125
122
|
"sass-embedded": "^1.99.0",
|
|
126
123
|
"tailwind-merge": "^3.5.0",
|
|
127
124
|
"tailwind-variants": "^3.2.2",
|
|
128
|
-
"tdesign-miniprogram": "^1.13.
|
|
125
|
+
"tdesign-miniprogram": "^1.13.2",
|
|
129
126
|
"ts-morph": "^27.0.2",
|
|
130
127
|
"vite-plugin-inspect": "^11.3.3",
|
|
131
128
|
"vue-tsc": "^3.2.6",
|
|
@@ -142,17 +139,17 @@ const TEMPLATE_CATALOG = {
|
|
|
142
139
|
merge: "^2.1.1",
|
|
143
140
|
pathe: "^2.0.3",
|
|
144
141
|
postcss: "^8.5.9",
|
|
145
|
-
rolldown: "1.0.0-rc.
|
|
142
|
+
rolldown: "1.0.0-rc.15",
|
|
146
143
|
sass: "^1.99.0",
|
|
147
144
|
tailwindcss: "^4.2.2",
|
|
148
145
|
tslib: "^2.8.1",
|
|
149
146
|
typescript: "^6.0.2",
|
|
150
|
-
vite: "8.0.
|
|
147
|
+
vite: "8.0.8",
|
|
151
148
|
vue: "^3.5.32",
|
|
152
149
|
zod: "^4.3.6"
|
|
153
150
|
};
|
|
154
151
|
const TEMPLATE_NAMED_CATALOG = {
|
|
155
|
-
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.13.
|
|
152
|
+
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.13.2" },
|
|
156
153
|
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.11.2" },
|
|
157
154
|
latest: {
|
|
158
155
|
"miniprogram-api-typings": "^5.1.2",
|
|
@@ -529,7 +526,6 @@ async function createProject(targetDir = "", templateName = TemplateName.default
|
|
|
529
526
|
if (!pkgJson.devDependencies) pkgJson.devDependencies = {};
|
|
530
527
|
upsertExistingDependencyVersion(pkgJson, "weapp-vite", toCaretVersion(version));
|
|
531
528
|
upsertExistingDependencyVersion(pkgJson, "wevu", toCaretVersion(version$1));
|
|
532
|
-
upsertExistingDependencyVersion(pkgJson, "@wevu/api", toCaretVersion(version$2));
|
|
533
529
|
await upsertTailwindcssVersion(pkgJson);
|
|
534
530
|
await writeJsonFile(packageJsonPath, pkgJson);
|
|
535
531
|
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.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"description": "create-weapp-vite",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@inquirer/prompts": "^8.4.1",
|
|
51
51
|
"pathe": "^2.0.3",
|
|
52
52
|
"pkg-types": "^2.3.0",
|
|
53
|
-
"@weapp-core/
|
|
54
|
-
"@weapp-core/
|
|
53
|
+
"@weapp-core/shared": "^3.0.3",
|
|
54
|
+
"@weapp-core/logger": "^3.1.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"postinstall": "wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
32
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
31
|
+
"@icebreakers/eslint-config": "^4.0.3",
|
|
32
|
+
"@icebreakers/stylelint-config": "^3.0.3",
|
|
33
33
|
"eslint": "^10.2.0",
|
|
34
34
|
"miniprogram-api-typings": "catalog:",
|
|
35
35
|
"sass": "catalog:",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-lib-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "weapp-vite 组件库(lib 模式)模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -29,13 +29,11 @@
|
|
|
29
29
|
"postinstall": "wv prepare"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@wevu/api": "workspace:*",
|
|
33
32
|
"wevu": "workspace:*"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
37
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
38
|
-
"@wevu/api": "workspace:*",
|
|
35
|
+
"@icebreakers/eslint-config": "^4.0.3",
|
|
36
|
+
"@icebreakers/stylelint-config": "^3.0.3",
|
|
39
37
|
"eslint": "^10.2.0",
|
|
40
38
|
"miniprogram-api-typings": "catalog:",
|
|
41
39
|
"sass": "catalog:",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
32
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
33
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
32
|
+
"@icebreakers/eslint-config": "^4.0.3",
|
|
33
|
+
"@icebreakers/stylelint-config": "^3.0.3",
|
|
34
34
|
"@iconify-json/mdi": "catalog:",
|
|
35
35
|
"autoprefixer": "catalog:",
|
|
36
36
|
"eslint": "^10.2.0",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
36
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
35
|
+
"@icebreakers/eslint-config": "^4.0.3",
|
|
36
|
+
"@icebreakers/stylelint-config": "^3.0.3",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
38
|
"autoprefixer": "catalog:",
|
|
39
39
|
"eslint": "^10.2.0",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
36
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
35
|
+
"@icebreakers/eslint-config": "^4.0.3",
|
|
36
|
+
"@icebreakers/stylelint-config": "^3.0.3",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
38
|
"autoprefixer": "catalog:",
|
|
39
39
|
"eslint": "^10.2.0",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"postinstall": "wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
32
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
31
|
+
"@icebreakers/eslint-config": "^4.0.3",
|
|
32
|
+
"@icebreakers/stylelint-config": "^3.0.3",
|
|
33
33
|
"eslint": "^10.2.0",
|
|
34
34
|
"miniprogram-api-typings": "catalog:",
|
|
35
35
|
"stylelint": "^17.6.0",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
36
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
35
|
+
"@icebreakers/eslint-config": "^4.0.3",
|
|
36
|
+
"@icebreakers/stylelint-config": "^3.0.3",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
38
|
"autoprefixer": "catalog:",
|
|
39
39
|
"eslint": "^10.2.0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { QuickActionItem } from '@/types/action'
|
|
3
3
|
|
|
4
|
-
import { wpi } from '@wevu/api'
|
|
5
4
|
import { computed, getCurrentInstance, ref, resolveLayoutBridge, resolveLayoutHost, watch } from 'wevu'
|
|
5
|
+
import { wpi } from 'wevu/api'
|
|
6
6
|
import KpiBoard from '@/components/KpiBoard/index.vue'
|
|
7
7
|
import QuickActionGrid from '@/components/QuickActionGrid/index.vue'
|
|
8
8
|
import { LAYOUT_TOAST_BRIDGE_KEY } from '@/hooks/useLayoutFeedbackBridge'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { wpi } from '@wevu/api'
|
|
3
2
|
import { computed, ref } from 'wevu'
|
|
3
|
+
import { wpi } from 'wevu/api'
|
|
4
4
|
|
|
5
5
|
import SectionTitle from '@/components/SectionTitle/index.vue'
|
|
6
6
|
import { resolveBooleanChangeValue, resolveNumberChangeValue, resolveStringChangeValue } from '@/utils/changeEvent'
|