create-weapp-vite 2.0.68 → 2.0.69
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/README.md +2 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DmN_mq6C.js → src-Dc6Sfp8O.js} +62 -5
- package/package.json +1 -1
- package/templates/default/package.json +9 -9
- package/templates/default/vite.config.ts +1 -1
- package/templates/lib/package.json +10 -10
- package/templates/lib/vite.config.ts +1 -1
- package/templates/lib/weapp-vite.lib.config.ts +1 -1
- package/templates/tailwindcss/package.json +9 -9
- package/templates/tailwindcss/vite.config.ts +1 -1
- package/templates/tdesign/package.json +9 -9
- package/templates/tdesign/vite.config.ts +1 -1
- package/templates/vant/package.json +9 -9
- package/templates/vant/vite.config.ts +1 -1
- package/templates/wevu/package.json +8 -8
- package/templates/wevu/vite.config.ts +1 -1
- package/templates/wevu-tdesign/package.json +8 -8
- package/templates/wevu-tdesign/vite.config.ts +1 -1
package/README.md
CHANGED
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TemplateName, t as createProject } from "./src-
|
|
1
|
+
import { n as TemplateName, t as createProject } from "./src-Dc6Sfp8O.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -4,10 +4,10 @@ import fs from "fs-extra";
|
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import https from "node:https";
|
|
6
6
|
//#region ../weapp-vite/package.json
|
|
7
|
-
var version$1 = "6.12.
|
|
7
|
+
var version$1 = "6.12.1";
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region ../wevu/package.json
|
|
10
|
-
var version = "6.12.
|
|
10
|
+
var version = "6.12.1";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/enums.ts
|
|
13
13
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -21,6 +21,63 @@ let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
|
21
21
|
return TemplateName;
|
|
22
22
|
}({});
|
|
23
23
|
//#endregion
|
|
24
|
+
//#region src/agents.ts
|
|
25
|
+
function supportsWevu(templateName) {
|
|
26
|
+
return [TemplateName.wevu, TemplateName.wevuTdesign].includes(templateName);
|
|
27
|
+
}
|
|
28
|
+
function supportsNativePages(templateName) {
|
|
29
|
+
return !supportsWevu(templateName);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @description 生成新项目的 AGENTS 指引
|
|
33
|
+
*/
|
|
34
|
+
function createAgentsGuidelines(templateName) {
|
|
35
|
+
const lines = [
|
|
36
|
+
"# AGENTS Guidelines",
|
|
37
|
+
"",
|
|
38
|
+
"## Local Docs First",
|
|
39
|
+
"",
|
|
40
|
+
"- After dependencies are installed, prefer reading local package docs under `node_modules/weapp-vite/dist/docs/` first.",
|
|
41
|
+
"- Start with `node_modules/weapp-vite/dist/docs/index.md`, then read `README.md` and `mcp.md` as needed.",
|
|
42
|
+
"- Prefer local package docs over stale model memory or old web pages when command behavior is unclear.",
|
|
43
|
+
"",
|
|
44
|
+
"## CLI Entry",
|
|
45
|
+
"",
|
|
46
|
+
"- This project supports both `weapp-vite` and `wv` CLI commands.",
|
|
47
|
+
"- Treat `weapp-vite dev` and `wv dev` as equivalent forms.",
|
|
48
|
+
"- Prefer project scripts such as `pnpm dev`, `pnpm build`, `pnpm open`, and `pnpm g` before ad-hoc shell commands.",
|
|
49
|
+
"- Use `weapp-vite prepare` or `wv prepare` when managed support files under `.weapp-vite/` need to be refreshed.",
|
|
50
|
+
"- Prefer `weapp-vite screenshot` or `wv screenshot` for mini-program screenshot acceptance.",
|
|
51
|
+
"- Prefer `weapp-vite ide logs --open` or `wv ide logs --open` for DevTools terminal log bridging.",
|
|
52
|
+
"- Do not default to generic browser screenshot tools when the target is the mini-program runtime in WeChat DevTools.",
|
|
53
|
+
"",
|
|
54
|
+
"## Weapp-vite Workflow",
|
|
55
|
+
"",
|
|
56
|
+
"- Keep `vite.config.ts` as the source of truth for `weapp` config, output behavior, and IDE/MCP automation.",
|
|
57
|
+
"- Confirm `weapp.srcRoot`, routes, subpackages, and auto-import strategy before broad refactors.",
|
|
58
|
+
"- Prefer minimal scoped verification: targeted `pnpm build`, targeted tests, then broader checks only when required.",
|
|
59
|
+
"- If editing package source in a monorepo dependency, rebuild the touched package before validating downstream apps to avoid stale `dist`.",
|
|
60
|
+
"- Keep CLI ownership explicit: native `weapp-vite` commands first, IDE passthrough second.",
|
|
61
|
+
"",
|
|
62
|
+
"## WeChat DevTools",
|
|
63
|
+
"",
|
|
64
|
+
"- Before using screenshot, preview, upload, automator, or `--open`, ensure WeChat DevTools is logged in and the service port is enabled.",
|
|
65
|
+
"- Prefer writing screenshots to workspace paths such as `.tmp/acceptance.png`.",
|
|
66
|
+
"",
|
|
67
|
+
"## AI Skills",
|
|
68
|
+
"",
|
|
69
|
+
"- Recommend installing shared skills with `npx skills add sonofmagic/skills`.",
|
|
70
|
+
"- In Codex/Claude environments, prefer these skills first when available:",
|
|
71
|
+
" - `$weapp-vite-best-practices` for config, build, subpackage, route, and CLI orchestration work.",
|
|
72
|
+
" - `$weapp-vite-vue-sfc-best-practices` for `.vue` SFC macros, JSON blocks, and template compatibility.",
|
|
73
|
+
" - `$weapp-ide-cli-best-practices` for DevTools automation, screenshot, preview, upload, and config commands.",
|
|
74
|
+
" - `$docs-and-website-sync` when documentation or AI guidance must be refreshed together with code changes."
|
|
75
|
+
];
|
|
76
|
+
if (supportsWevu(templateName)) lines.push(" - `$wevu-best-practices` for `wevu` runtime lifecycle, state, store, and event contracts.", "", "## Wevu Authoring", "", "- Import runtime APIs from `wevu` in business code.", "- Register lifecycle hooks synchronously in `setup()` and avoid hook registration after `await`.", "- Prefer `ref`, `reactive`, `computed`, and explicit event contracts over large opaque state writes.", "- Use `storeToRefs` when destructuring store state/getters.", "- Treat mini-program runtime constraints as primary; do not assume Vue web-only behavior.");
|
|
77
|
+
if (supportsNativePages(templateName)) lines.push(" - `$native-to-weapp-vite-wevu-migration` when migrating native mini-program pages/components toward Vue SFC or wevu.", "", "## Native Mini-program Authoring", "", "- Keep native page/component structure consistent with the template unless there is a clear migration goal.", "- Prefer `weapp-vite generate` or `wv generate` for new app/page/component scaffolds.", "- If migrating this project toward Vue SFC or `wevu`, keep the migration explicit and prefer the official weapp-vite / wevu guidance first.");
|
|
78
|
+
return `${lines.join("\n")}\n`;
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
24
81
|
//#region src/generated/catalog.ts
|
|
25
82
|
const TEMPLATE_CATALOG = {
|
|
26
83
|
"@babel/core": "^7.29.0",
|
|
@@ -49,7 +106,6 @@ const TEMPLATE_CATALOG = {
|
|
|
49
106
|
"lru-cache": "^11.2.7",
|
|
50
107
|
"magic-string": "^0.30.21",
|
|
51
108
|
"miniprogram-api-typings": "^5.1.2",
|
|
52
|
-
"miniprogram-automator": "^0.12.1",
|
|
53
109
|
"object-hash": "^3.0.0",
|
|
54
110
|
"oxc-parser": "^0.121.0",
|
|
55
111
|
"oxc-walker": "^0.7.0",
|
|
@@ -61,7 +117,7 @@ const TEMPLATE_CATALOG = {
|
|
|
61
117
|
"ts-morph": "^27.0.2",
|
|
62
118
|
"vite-plugin-inspect": "^11.3.3",
|
|
63
119
|
"vue-tsc": "^3.2.6",
|
|
64
|
-
"weapp-tailwindcss": "^4.11.
|
|
120
|
+
"weapp-tailwindcss": "^4.11.1",
|
|
65
121
|
autoprefixer: "^10.4.27",
|
|
66
122
|
clsx: "^2.1.1",
|
|
67
123
|
dayjs: "^1.11.20",
|
|
@@ -85,7 +141,7 @@ const TEMPLATE_CATALOG = {
|
|
|
85
141
|
};
|
|
86
142
|
const TEMPLATE_NAMED_CATALOG = {
|
|
87
143
|
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.13.1" },
|
|
88
|
-
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.11.
|
|
144
|
+
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.11.1" },
|
|
89
145
|
latest: {
|
|
90
146
|
"miniprogram-api-typings": "^5.1.2",
|
|
91
147
|
typescript: "^6.0.2"
|
|
@@ -428,6 +484,7 @@ async function createProject(targetDir = "", templateName = TemplateName.default
|
|
|
428
484
|
upsertExistingDependencyVersion(pkgJson, "wevu", toCaretVersion(version));
|
|
429
485
|
await upsertTailwindcssVersion(pkgJson);
|
|
430
486
|
await writeJsonFile(packageJsonPath, pkgJson);
|
|
487
|
+
await fs.writeFile(path.resolve(targetDir, "AGENTS.md"), createAgentsGuidelines(templateName));
|
|
431
488
|
await updateGitIgnore({
|
|
432
489
|
root: targetDir,
|
|
433
490
|
write: true
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
20
|
-
"dev:open": "
|
|
21
|
-
"build": "
|
|
19
|
+
"dev": "wv dev",
|
|
20
|
+
"dev:open": "wv dev -o",
|
|
21
|
+
"build": "wv build",
|
|
22
22
|
"lint": "eslint .",
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
|
-
"open": "
|
|
24
|
+
"open": "wv open",
|
|
25
25
|
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
26
|
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
27
|
-
"g": "
|
|
28
|
-
"postinstall": "
|
|
27
|
+
"g": "wv generate",
|
|
28
|
+
"postinstall": "wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@icebreakers/eslint-config": "^2.1.
|
|
32
|
-
"@icebreakers/stylelint-config": "^2.2.
|
|
31
|
+
"@icebreakers/eslint-config": "^2.1.2",
|
|
32
|
+
"@icebreakers/stylelint-config": "^2.2.1",
|
|
33
33
|
"eslint": "^10.1.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": "3.0.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "weapp-vite 组件库(lib 模式)模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
20
|
-
"dev:open": "
|
|
21
|
-
"build": "
|
|
22
|
-
"build:lib": "
|
|
19
|
+
"dev": "wv dev",
|
|
20
|
+
"dev:open": "wv dev -o",
|
|
21
|
+
"build": "wv build",
|
|
22
|
+
"build:lib": "wv build --config weapp-vite.lib.config.ts",
|
|
23
23
|
"lint": "eslint .",
|
|
24
24
|
"lint:fix": "eslint . --fix",
|
|
25
|
-
"open": "
|
|
25
|
+
"open": "wv open",
|
|
26
26
|
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
27
27
|
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
28
|
-
"g": "
|
|
29
|
-
"postinstall": "
|
|
28
|
+
"g": "wv generate",
|
|
29
|
+
"postinstall": "wv prepare"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"wevu": "workspace:*"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@icebreakers/eslint-config": "^2.1.
|
|
36
|
-
"@icebreakers/stylelint-config": "^2.2.
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.2",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.1",
|
|
37
37
|
"eslint": "^10.1.0",
|
|
38
38
|
"miniprogram-api-typings": "catalog:",
|
|
39
39
|
"sass": "catalog:",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-tailwindcss-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite + tailwindcss 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
20
|
-
"dev:open": "
|
|
21
|
-
"build": "
|
|
19
|
+
"dev": "wv dev",
|
|
20
|
+
"dev:open": "wv dev -o",
|
|
21
|
+
"build": "wv build",
|
|
22
22
|
"lint": "eslint .",
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
|
-
"open": "
|
|
24
|
+
"open": "wv open",
|
|
25
25
|
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
26
|
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
27
|
-
"g": "
|
|
28
|
-
"postinstall": "weapp-tw patch &&
|
|
27
|
+
"g": "wv generate",
|
|
28
|
+
"postinstall": "weapp-tw patch && wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
32
|
-
"@icebreakers/eslint-config": "^2.1.
|
|
33
|
-
"@icebreakers/stylelint-config": "^2.2.
|
|
32
|
+
"@icebreakers/eslint-config": "^2.1.2",
|
|
33
|
+
"@icebreakers/stylelint-config": "^2.2.1",
|
|
34
34
|
"@iconify-json/mdi": "catalog:",
|
|
35
35
|
"autoprefixer": "catalog:",
|
|
36
36
|
"eslint": "^10.1.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-tailwindcss-tdesign-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite + tailwindcss + tdesign 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
20
|
-
"dev:open": "
|
|
21
|
-
"build": "
|
|
19
|
+
"dev": "wv dev",
|
|
20
|
+
"dev:open": "wv dev -o",
|
|
21
|
+
"build": "wv build",
|
|
22
22
|
"lint": "eslint .",
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
|
-
"open": "
|
|
24
|
+
"open": "wv open",
|
|
25
25
|
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
26
|
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
27
|
-
"g": "
|
|
28
|
-
"postinstall": "weapp-tw patch &&
|
|
27
|
+
"g": "wv generate",
|
|
28
|
+
"postinstall": "weapp-tw patch && wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tdesign-miniprogram": "catalog:"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
-
"@icebreakers/eslint-config": "^2.1.
|
|
36
|
-
"@icebreakers/stylelint-config": "^2.2.
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.2",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.1",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
38
|
"autoprefixer": "catalog:",
|
|
39
39
|
"eslint": "^10.1.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
|
|
2
|
+
import { defineConfig } from 'weapp-vite'
|
|
2
3
|
import { TDesignResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
3
|
-
import { defineConfig } from 'weapp-vite/config'
|
|
4
4
|
|
|
5
5
|
export default defineConfig({
|
|
6
6
|
weapp: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-tailwindcss-vant-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "原生微信小程序 weapp-vite + tailwindcss 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
20
|
-
"dev:open": "
|
|
21
|
-
"build": "
|
|
19
|
+
"dev": "wv dev",
|
|
20
|
+
"dev:open": "wv dev -o",
|
|
21
|
+
"build": "wv build",
|
|
22
22
|
"lint": "eslint .",
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
|
-
"open": "
|
|
24
|
+
"open": "wv open",
|
|
25
25
|
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
26
|
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
27
|
-
"g": "
|
|
28
|
-
"postinstall": "weapp-tw patch &&
|
|
27
|
+
"g": "wv generate",
|
|
28
|
+
"postinstall": "weapp-tw patch && wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@vant/weapp": "catalog:"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
-
"@icebreakers/eslint-config": "^2.1.
|
|
36
|
-
"@icebreakers/stylelint-config": "^2.2.
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.2",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.1",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
38
|
"autoprefixer": "catalog:",
|
|
39
39
|
"eslint": "^10.1.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
|
|
2
|
+
import { defineConfig } from 'weapp-vite'
|
|
2
3
|
import { VantResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
3
|
-
import { defineConfig } from 'weapp-vite/config'
|
|
4
4
|
|
|
5
5
|
export default defineConfig({
|
|
6
6
|
weapp: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-wevu-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "weapp-vite + wevu (Vue SFC) 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
20
|
-
"dev:open": "
|
|
21
|
-
"build": "
|
|
19
|
+
"dev": "wv dev",
|
|
20
|
+
"dev:open": "wv dev -o",
|
|
21
|
+
"build": "wv build",
|
|
22
22
|
"lint": "eslint .",
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
24
|
"typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
|
|
25
|
-
"open": "
|
|
25
|
+
"open": "wv open",
|
|
26
26
|
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
27
27
|
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
28
|
-
"postinstall": "
|
|
28
|
+
"postinstall": "wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@icebreakers/eslint-config": "^2.1.
|
|
32
|
-
"@icebreakers/stylelint-config": "^2.2.
|
|
31
|
+
"@icebreakers/eslint-config": "^2.1.2",
|
|
32
|
+
"@icebreakers/stylelint-config": "^2.2.1",
|
|
33
33
|
"eslint": "^10.1.0",
|
|
34
34
|
"miniprogram-api-typings": "catalog:",
|
|
35
35
|
"stylelint": "^17.6.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-wevu-tailwindcss-tdesign-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.6",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "weapp-vite + wevu (Vue SFC) 模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"dev": "
|
|
20
|
-
"dev:open": "
|
|
21
|
-
"build": "
|
|
19
|
+
"dev": "wv dev",
|
|
20
|
+
"dev:open": "wv dev -o",
|
|
21
|
+
"build": "wv build",
|
|
22
22
|
"lint": "eslint .",
|
|
23
23
|
"lint:fix": "eslint . --fix",
|
|
24
24
|
"typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
|
|
25
|
-
"open": "
|
|
25
|
+
"open": "wv open",
|
|
26
26
|
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
27
27
|
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
28
|
-
"postinstall": "weapp-tw patch &&
|
|
28
|
+
"postinstall": "weapp-tw patch && wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tdesign-miniprogram": "catalog:"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
-
"@icebreakers/eslint-config": "^2.1.
|
|
36
|
-
"@icebreakers/stylelint-config": "^2.2.
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.2",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.1",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
38
|
"autoprefixer": "catalog:",
|
|
39
39
|
"eslint": "^10.1.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
2
|
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
|
|
3
|
+
import { defineConfig } from 'weapp-vite'
|
|
3
4
|
import { TDesignResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
4
|
-
import { defineConfig } from 'weapp-vite/config'
|
|
5
5
|
|
|
6
6
|
export default defineConfig({
|
|
7
7
|
resolve: {
|