weapp-vite 6.6.16 → 6.7.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/README.md +34 -0
- package/dist/auto-import-components/resolvers.mjs +1 -1
- package/dist/auto-routes.mjs +6 -5
- package/dist/{chunk-B72N3LPV.mjs → chunk-6BLAPZPG.mjs} +2 -2
- package/dist/chunk-6Y4CQBGL.mjs +9911 -0
- package/dist/{chunk-ZK6BEHJG.mjs → chunk-BHF4WHJX.mjs} +1 -1
- package/dist/{chunk-V5CB4KLU.mjs → chunk-EH3FR4SH.mjs} +43 -21
- package/dist/{chunk-YITJ3DB4.mjs → chunk-GTITIIY3.mjs} +7 -2
- package/dist/{chunk-2UZR3XO5.mjs → chunk-KLC6AUWO.mjs} +1 -1
- package/dist/{chunk-IUSUEHMM.mjs → chunk-O2ZCPWFG.mjs} +1 -1
- package/dist/{chunk-LG2VJAAT.mjs → chunk-V4HJMXPN.mjs} +1 -1
- package/dist/chunk-WFHC5POL.mjs +14 -0
- package/dist/{chunk-TJSTTJPE.mjs → chunk-ZVO7KLQN.mjs} +2 -2
- package/dist/cli.mjs +108 -12
- package/dist/{config-CdeM_u7y.d.ts → config-D2DJI97q.d.ts} +42 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/{file-PYPD7TKF.mjs → file-X2RHLBMQ.mjs} +2 -2
- package/dist/{getInstance-FERU3SZV.mjs → getInstance-LGESJJFX.mjs} +4 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +12 -11
- package/dist/json.d.ts +1 -1
- package/dist/json.mjs +2 -2
- package/dist/mcp.d.ts +47 -0
- package/dist/mcp.mjs +18 -0
- package/dist/runtime.mjs +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/types.mjs +2 -2
- package/dist/volar.mjs +1 -1
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -82,6 +82,7 @@ function handleClick() {
|
|
|
82
82
|
|
|
83
83
|
- 配置智能提示文档:[docs/volar.md](./docs/volar.md)
|
|
84
84
|
- defineConfig 重载说明:[docs/define-config-overloads.md](./docs/define-config-overloads.md)
|
|
85
|
+
- MCP 集成使用指南:[docs/mcp.md](./docs/mcp.md)
|
|
85
86
|
|
|
86
87
|
## CLI 中调用 weapp-ide-cli
|
|
87
88
|
|
|
@@ -101,6 +102,39 @@ weapp-vite ide preview --project ./dist/build/mp-weixin
|
|
|
101
102
|
weapp-vite ide config show
|
|
102
103
|
```
|
|
103
104
|
|
|
105
|
+
## CLI 启动 MCP
|
|
106
|
+
|
|
107
|
+
`weapp-vite` 已集成 `@weapp-vite/mcp`:
|
|
108
|
+
|
|
109
|
+
- 默认不自动启动 MCP 服务(可通过配置开启自动启动)
|
|
110
|
+
- 也可以手动启动 MCP Server
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
weapp-vite mcp
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
指定工作区根路径:
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
weapp-vite mcp --workspace-root /absolute/path/to/weapp-vite
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
在 `vite.config.ts` 中开启自动启动:
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
import { defineConfig } from 'weapp-vite/config'
|
|
126
|
+
|
|
127
|
+
export default defineConfig({
|
|
128
|
+
weapp: {
|
|
129
|
+
mcp: {
|
|
130
|
+
autoStart: true,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
})
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
详细说明见:[docs/mcp.md](./docs/mcp.md)
|
|
137
|
+
|
|
104
138
|
## Contribute
|
|
105
139
|
|
|
106
140
|
我们邀请你来贡献和帮助改进 `weapp-vite` 💚💚💚
|
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCompilerContext
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-EH3FR4SH.mjs";
|
|
4
|
+
import "./chunk-ZVO7KLQN.mjs";
|
|
5
|
+
import "./chunk-BHF4WHJX.mjs";
|
|
6
|
+
import "./chunk-O2ZCPWFG.mjs";
|
|
7
|
+
import "./chunk-WFHC5POL.mjs";
|
|
7
8
|
import {
|
|
8
9
|
init_esm_shims
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GTITIIY3.mjs";
|
|
10
11
|
|
|
11
12
|
// src/auto-routes.ts
|
|
12
13
|
init_esm_shims();
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getCompilerContext,
|
|
3
3
|
resetCompilerContext,
|
|
4
4
|
setActiveCompilerContextKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EH3FR4SH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GTITIIY3.mjs";
|
|
9
9
|
|
|
10
10
|
// src/createContext.ts
|
|
11
11
|
init_esm_shims();
|