Skip to content

Commit 422f9f4

Browse files
committed
chore(dev): add VSCode debug configuration and update gitignore
1 parent 28da10a commit 422f9f4

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ data
1515

1616
.DS_Store
1717
.idea
18-
.vscode
19-
src/webui/BE/server.ts
2018
llonebot-dist.tgz

.vscode/launch.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Dev",
11+
"skipFiles": [
12+
"<node_internals>/**"
13+
],
14+
"runtimeExecutable": "tsx",
15+
"args": ["watch", "src/main/main.ts", "--pmhq-port=${input:pmhqPort}"],
16+
"cwd": "${workspaceFolder}",
17+
"console": "integratedTerminal"
18+
},
19+
{
20+
"type": "node",
21+
"request": "launch",
22+
"name": "Dev WebUI",
23+
"skipFiles": [
24+
"<node_internals>/**"
25+
],
26+
"runtimeExecutable": "npm",
27+
"runtimeArgs": ["--prefix", "src/webui/FE", "run", "dev"],
28+
"cwd": "${workspaceFolder}",
29+
"console": "integratedTerminal",
30+
"env": {
31+
"WEBUI_PORT": "${input:webuiPort}"
32+
}
33+
}
34+
],
35+
"inputs": [
36+
{
37+
"id": "pmhqPort",
38+
"type": "promptString",
39+
"description": "PMHQ Port",
40+
"default": "13000"
41+
},
42+
{
43+
"id": "webuiPort",
44+
"type": "promptString",
45+
"description": "WebUI Server Port",
46+
"default": "3080"
47+
}
48+
]
49+
}

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

src/webui/FE/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default defineConfig({
1717
open: true,
1818
proxy: {
1919
'/api': {
20-
target: 'http://127.0.0.1:3081',
20+
target: `http://127.0.0.1:${process.env.WEBUI_PORT || 3080}`,
2121
changeOrigin: true,
2222
},
2323
},

0 commit comments

Comments
 (0)