create-weapp-vite 2.3.13 → 2.3.15
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-JolaD7Ia.js → src-D8uqfCKh.js} +11 -7
- package/package.json +1 -1
- package/templates/default/.vscode/extensions.json +2 -1
- package/templates/default/package.json +3 -0
- package/templates/lib/.vscode/extensions.json +2 -1
- package/templates/lib/package.json +4 -1
- package/templates/plugin/.vscode/extensions.json +7 -0
- package/templates/plugin/package.json +3 -0
- package/templates/tailwindcss/.vscode/extensions.json +2 -1
- package/templates/tailwindcss/package.json +3 -0
- package/templates/tailwindcss/src/pages/index/index.wxml +1 -1
- package/templates/tailwindcss/src/pages/layouts/index.wxml +1 -1
- package/templates/tdesign/.vscode/extensions.json +2 -1
- package/templates/tdesign/package.json +3 -0
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.wxml +1 -1
- package/templates/vant/.vscode/extensions.json +2 -1
- package/templates/vant/package.json +3 -0
- package/templates/vant/src/pages/index/index.wxml +1 -1
- package/templates/wevu/.vscode/extensions.json +2 -1
- package/templates/wevu/package.json +3 -0
- package/templates/wevu-tdesign/.vscode/extensions.json +2 -1
- package/templates/wevu-tdesign/package.json +3 -0
- package/templates/wevu-tdesign/src/pages/data/index.vue +1 -1
- package/templates/wevu-tdesign/src/pages/index/index.vue +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-D8uqfCKh.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-D8uqfCKh.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -6,10 +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$
|
|
9
|
+
var version$2 = "6.16.2";
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../dashboard/package.json
|
|
12
|
+
var version$1 = "6.16.2";
|
|
10
13
|
//#endregion
|
|
11
14
|
//#region ../weapp-vite/package.json
|
|
12
|
-
var version = "6.16.
|
|
15
|
+
var version = "6.16.2";
|
|
13
16
|
//#endregion
|
|
14
17
|
//#region src/enums.ts
|
|
15
18
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -97,7 +100,7 @@ function createAgentsGuidelines(templateName) {
|
|
|
97
100
|
const TEMPLATE_CATALOG = {
|
|
98
101
|
"@babel/core": "^7.29.0",
|
|
99
102
|
"@babel/generator": "^7.29.1",
|
|
100
|
-
"@babel/parser": "^7.29.
|
|
103
|
+
"@babel/parser": "^7.29.3",
|
|
101
104
|
"@babel/traverse": "^7.29.0",
|
|
102
105
|
"@babel/types": "^7.29.0",
|
|
103
106
|
"@douyin-microapp/typings": "^1.3.1",
|
|
@@ -141,13 +144,13 @@ const TEMPLATE_CATALOG = {
|
|
|
141
144
|
debug: "^4.4.3",
|
|
142
145
|
echarts: "^6.0.0",
|
|
143
146
|
esbuild: "^0.28.0",
|
|
144
|
-
eslint: "^10.
|
|
147
|
+
eslint: "^10.3.0",
|
|
145
148
|
fdir: "^6.5.0",
|
|
146
149
|
htmlparser2: "^12.0.0",
|
|
147
150
|
lodash: "^4.18.1",
|
|
148
151
|
merge: "^2.1.1",
|
|
149
152
|
pathe: "^2.0.3",
|
|
150
|
-
postcss: "^8.5.
|
|
153
|
+
postcss: "^8.5.13",
|
|
151
154
|
rolldown: "1.0.0-rc.17",
|
|
152
155
|
sass: "^1.99.0",
|
|
153
156
|
stylelint: "^17.9.1",
|
|
@@ -156,7 +159,7 @@ const TEMPLATE_CATALOG = {
|
|
|
156
159
|
typescript: "^6.0.3",
|
|
157
160
|
vite: "8.0.10",
|
|
158
161
|
vue: "^3.5.33",
|
|
159
|
-
zod: "^4.
|
|
162
|
+
zod: "^4.4.1"
|
|
160
163
|
};
|
|
161
164
|
const TEMPLATE_NAMED_CATALOG = {
|
|
162
165
|
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.14.0" },
|
|
@@ -552,7 +555,8 @@ async function createProject(targetDir = "", templateName = "default", options =
|
|
|
552
555
|
ensureManagedTypeScriptDevDependencies(pkgJson);
|
|
553
556
|
if (!pkgJson.devDependencies) pkgJson.devDependencies = {};
|
|
554
557
|
upsertExistingDependencyVersion(pkgJson, "weapp-vite", toCaretVersion(version));
|
|
555
|
-
upsertExistingDependencyVersion(pkgJson, "wevu", toCaretVersion(version$
|
|
558
|
+
upsertExistingDependencyVersion(pkgJson, "wevu", toCaretVersion(version$2));
|
|
559
|
+
upsertExistingDependencyVersion(pkgJson, "@weapp-vite/dashboard", toCaretVersion(version$1));
|
|
556
560
|
await upsertTailwindcssVersion(pkgJson);
|
|
557
561
|
await writeJsonFile(packageJsonPath, pkgJson);
|
|
558
562
|
await fs.writeFile(path.resolve(targetDir, "AGENTS.md"), createAgentsGuidelines(templateName));
|
package/package.json
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"lint": "eslint .",
|
|
23
25
|
"lint:fix": "eslint . --fix",
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
"@icebreakers/eslint-config": "catalog:",
|
|
32
34
|
"@icebreakers/stylelint-config": "catalog:",
|
|
33
35
|
"@types/node": "catalog:",
|
|
36
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
34
37
|
"eslint": "catalog:",
|
|
35
38
|
"miniprogram-api-typings": "catalog:",
|
|
36
39
|
"sass": "catalog:",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-lib-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.2",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "weapp-vite 组件库(lib 模式)模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"build:lib": "wv build --config weapp-vite.lib.config.ts",
|
|
23
25
|
"lint": "eslint .",
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
"@icebreakers/eslint-config": "catalog:",
|
|
36
38
|
"@icebreakers/stylelint-config": "catalog:",
|
|
37
39
|
"@types/node": "catalog:",
|
|
40
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
38
41
|
"eslint": "catalog:",
|
|
39
42
|
"miniprogram-api-typings": "catalog:",
|
|
40
43
|
"sass": "catalog:",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"lint": "eslint .",
|
|
23
25
|
"lint:fix": "eslint . --fix",
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
"@icebreakers/eslint-config": "catalog:",
|
|
35
37
|
"@icebreakers/stylelint-config": "catalog:",
|
|
36
38
|
"@types/node": "catalog:",
|
|
39
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
37
40
|
"eslint": "catalog:",
|
|
38
41
|
"miniprogram-api-typings": "catalog:",
|
|
39
42
|
"sass": "catalog:",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"lint": "eslint .",
|
|
23
25
|
"lint:fix": "eslint . --fix",
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
"@iconify-json/mdi": "catalog:",
|
|
35
37
|
"@tailwindcss/postcss": "catalog:",
|
|
36
38
|
"@types/node": "catalog:",
|
|
39
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
37
40
|
"autoprefixer": "catalog:",
|
|
38
41
|
"eslint": "catalog:",
|
|
39
42
|
"miniprogram-api-typings": "catalog:",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<view class="w-24 h-24 bg-[url(https://vite.icebreaker.top/logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
5
5
|
<view class="w-32 h-24 bg-[url(https://vite.icebreaker.top/tw-logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
6
6
|
</view>
|
|
7
|
-
<view class="bg-
|
|
7
|
+
<view class="bg-linear-to-r from-green-400 to-sky-400 bg-clip-text text-xl font-extrabold text-transparent underline">
|
|
8
8
|
weapp-vite & weapp-tailwindcss
|
|
9
9
|
</view>
|
|
10
10
|
<view>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<view class="min-h-screen bg-slate-100 px-4 py-5">
|
|
2
|
-
<view class="rounded-2xl border border-sky-200 bg-
|
|
2
|
+
<view class="rounded-2xl border border-sky-200 bg-linear-to-br from-sky-50 to-white p-5 shadow-sm">
|
|
3
3
|
<view class="text-xs font-semibold uppercase tracking-[0.2em] text-sky-700">Native Layouts</view>
|
|
4
4
|
<view class="mt-3 text-2xl font-bold text-slate-900">Tailwind 原生模板已接入 layouts</view>
|
|
5
5
|
<view class="mt-3 text-sm leading-7 text-slate-600">当前状态:{{currentLayout}}</view>
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"lint": "eslint .",
|
|
23
25
|
"lint:fix": "eslint . --fix",
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
"@iconify-json/mdi": "catalog:",
|
|
38
40
|
"@tailwindcss/postcss": "catalog:",
|
|
39
41
|
"@types/node": "catalog:",
|
|
42
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
40
43
|
"autoprefixer": "catalog:",
|
|
41
44
|
"eslint": "catalog:",
|
|
42
45
|
"miniprogram-api-typings": "catalog:",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view class="w-24 h-24 bg-[url(https://vite.icebreaker.top/logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
3
3
|
<view class="w-32 h-24 bg-[url(https://vite.icebreaker.top/tw-logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
4
4
|
</view>
|
|
5
|
-
<view class="bg-
|
|
5
|
+
<view class="bg-linear-to-r from-green-400 to-sky-400 bg-clip-text text-xl font-extrabold text-transparent underline">
|
|
6
6
|
weapp-vite & weapp-tailwindcss
|
|
7
7
|
</view>
|
|
8
8
|
<view class="w-full max-w-[640rpx] mx-auto rounded-3xl p-8 bg-white/95 shadow-xl shadow-slate-200/70 flex flex-col gap-6">
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"lint": "eslint .",
|
|
23
25
|
"lint:fix": "eslint . --fix",
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
"@iconify-json/mdi": "catalog:",
|
|
38
40
|
"@tailwindcss/postcss": "catalog:",
|
|
39
41
|
"@types/node": "catalog:",
|
|
42
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
40
43
|
"autoprefixer": "catalog:",
|
|
41
44
|
"eslint": "catalog:",
|
|
42
45
|
"miniprogram-api-typings": "catalog:",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<view class="w-24 h-24 bg-[url(https://vite.icebreaker.top/logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
5
5
|
<view class="w-32 h-24 bg-[url(https://vite.icebreaker.top/tw-logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
|
|
6
6
|
</view>
|
|
7
|
-
<view class="bg-
|
|
7
|
+
<view class="bg-linear-to-r from-green-400 to-sky-400 bg-clip-text text-xl font-extrabold text-transparent underline">
|
|
8
8
|
weapp-vite & weapp-tailwindcss
|
|
9
9
|
</view>
|
|
10
10
|
<HelloWorld
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"lint": "eslint .",
|
|
23
25
|
"lint:fix": "eslint . --fix",
|
|
@@ -31,6 +33,7 @@
|
|
|
31
33
|
"@icebreakers/eslint-config": "catalog:",
|
|
32
34
|
"@icebreakers/stylelint-config": "catalog:",
|
|
33
35
|
"@types/node": "catalog:",
|
|
36
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
34
37
|
"eslint": "catalog:",
|
|
35
38
|
"miniprogram-api-typings": "catalog:",
|
|
36
39
|
"stylelint": "catalog:",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "wv dev",
|
|
20
20
|
"dev:open": "wv dev -o",
|
|
21
|
+
"dev:ui": "wv dev --ui",
|
|
22
|
+
"dev:open:ui": "wv dev --ui -o",
|
|
21
23
|
"build": "wv build",
|
|
22
24
|
"lint": "eslint .",
|
|
23
25
|
"lint:fix": "eslint . --fix",
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
"@iconify-json/mdi": "catalog:",
|
|
38
40
|
"@tailwindcss/postcss": "catalog:",
|
|
39
41
|
"@types/node": "catalog:",
|
|
42
|
+
"@weapp-vite/dashboard": "workspace:*",
|
|
40
43
|
"autoprefixer": "catalog:",
|
|
41
44
|
"eslint": "catalog:",
|
|
42
45
|
"miniprogram-api-typings": "catalog:",
|
|
@@ -103,7 +103,7 @@ watch(activeRange, () => {
|
|
|
103
103
|
|
|
104
104
|
<template>
|
|
105
105
|
<view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
|
|
106
|
-
<view class="rounded-[28rpx] bg-
|
|
106
|
+
<view class="rounded-[28rpx] bg-linear-to-br from-[#f1f5ff] via-[#eef2ff] to-[#ffffff] p-[20rpx]">
|
|
107
107
|
<SectionTitle title="经营仪表盘" subtitle="聚焦关键指标与趋势" />
|
|
108
108
|
<view class="mt-[12rpx]">
|
|
109
109
|
<t-tabs :value="activeRange" @change="onRangeChange">
|
|
@@ -238,7 +238,7 @@ async function onQuickAction(action: QuickActionItem) {
|
|
|
238
238
|
|
|
239
239
|
<template>
|
|
240
240
|
<view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[32rpx] text-[#1c1c3c]">
|
|
241
|
-
<view class="rounded-[28rpx] bg-
|
|
241
|
+
<view class="rounded-[28rpx] bg-linear-to-br from-[#2f2b5f] via-[#3b3573] to-[#5a48c5] p-[24rpx] text-white shadow-[0_24rpx_48rpx_rgba(47,43,95,0.35)]">
|
|
242
242
|
<text class="text-[38rpx] font-semibold">
|
|
243
243
|
Weapp Studio
|
|
244
244
|
</text>
|