@tomjs/vite-plugin-vscode 1.0.2 → 1.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/README.md +16 -2
- package/README.zh_CN.md +16 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ Based on [Options](https://paka.dev/npm/tsup) of [tsup](https://tsup.egoist.dev/
|
|
|
229
229
|
|
|
230
230
|
## Debug
|
|
231
231
|
|
|
232
|
-
Run `
|
|
232
|
+
Run `Debug Extension` through `vscode` to debug. For debugging tools, refer to [Official Documentation](https://code.visualstudio.com/docs/editor/debugging)
|
|
233
233
|
|
|
234
234
|
`launch.json` is configured as follows:
|
|
235
235
|
|
|
@@ -238,7 +238,7 @@ Run `Run Extension` through `vscode` to debug. For debugging tools, refer to [Of
|
|
|
238
238
|
"version": "0.2.0",
|
|
239
239
|
"configurations": [
|
|
240
240
|
{
|
|
241
|
-
"name": "
|
|
241
|
+
"name": "Debug Extension",
|
|
242
242
|
"type": "extensionHost",
|
|
243
243
|
"request": "launch",
|
|
244
244
|
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
|
|
@@ -287,3 +287,17 @@ Run `Run Extension` through `vscode` to debug. For debugging tools, refer to [Of
|
|
|
287
287
|
]
|
|
288
288
|
}
|
|
289
289
|
```
|
|
290
|
+
|
|
291
|
+
## Examples
|
|
292
|
+
|
|
293
|
+
First execute the following command to install dependencies and generate library files:
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
pnpm install
|
|
297
|
+
pnpm build
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Open the [examples](./examples) directory, there are `vue` and `react` examples.
|
|
301
|
+
|
|
302
|
+
- [react](./examples/react)
|
|
303
|
+
- [vue](./examples/vue)
|
package/README.zh_CN.md
CHANGED
|
@@ -228,7 +228,7 @@ export default defineConfig({
|
|
|
228
228
|
|
|
229
229
|
## Debug
|
|
230
230
|
|
|
231
|
-
通过 `vscode` 运行 `
|
|
231
|
+
通过 `vscode` 运行 `Debug Extension` 调试,调试工具参考 [官方文档](https://code.visualstudio.com/docs/editor/debugging)
|
|
232
232
|
|
|
233
233
|
`launch.json` 配置如下:
|
|
234
234
|
|
|
@@ -237,7 +237,7 @@ export default defineConfig({
|
|
|
237
237
|
"version": "0.2.0",
|
|
238
238
|
"configurations": [
|
|
239
239
|
{
|
|
240
|
-
"name": "
|
|
240
|
+
"name": "Debug Extension",
|
|
241
241
|
"type": "extensionHost",
|
|
242
242
|
"request": "launch",
|
|
243
243
|
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
|
|
@@ -286,3 +286,17 @@ export default defineConfig({
|
|
|
286
286
|
]
|
|
287
287
|
}
|
|
288
288
|
```
|
|
289
|
+
|
|
290
|
+
## 示例
|
|
291
|
+
|
|
292
|
+
先执行以下命令安装依赖,并生成库文件:
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
pnpm install
|
|
296
|
+
pnpm build
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
打开 [examples](./examples) 目录,有 `vue` 和 `react` 示例。
|
|
300
|
+
|
|
301
|
+
- [react](./examples/react)
|
|
302
|
+
- [vue](./examples/vue)
|