2025-09-18 12:33:51 +00:00
|
|
|
{
|
|
|
|
|
"version": "2.0.0",
|
|
|
|
|
"tasks": [
|
|
|
|
|
{
|
|
|
|
|
"label": "go: build",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "go",
|
2025-10-01 23:47:12 +00:00
|
|
|
"args": [
|
|
|
|
|
"build",
|
|
|
|
|
"-o",
|
|
|
|
|
"bin/3x-ui.exe",
|
|
|
|
|
"./main.go"
|
|
|
|
|
],
|
2025-09-18 12:33:51 +00:00
|
|
|
"options": {
|
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
|
},
|
2025-10-01 23:47:12 +00:00
|
|
|
"problemMatcher": [
|
|
|
|
|
"$go"
|
|
|
|
|
],
|
|
|
|
|
"group": {
|
|
|
|
|
"kind": "build",
|
|
|
|
|
"isDefault": true
|
|
|
|
|
}
|
2025-09-18 12:33:51 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "go: run",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "go",
|
2025-10-01 23:47:12 +00:00
|
|
|
"args": [
|
|
|
|
|
"run",
|
|
|
|
|
"./main.go"
|
|
|
|
|
],
|
2025-09-18 12:33:51 +00:00
|
|
|
"options": {
|
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
|
"env": {
|
|
|
|
|
"XUI_DEBUG": "true"
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-10-01 23:47:12 +00:00
|
|
|
"problemMatcher": [
|
|
|
|
|
"$go"
|
|
|
|
|
]
|
2025-09-18 12:33:51 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "go: test",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "go",
|
2025-10-01 23:47:12 +00:00
|
|
|
"args": [
|
|
|
|
|
"test",
|
|
|
|
|
"./..."
|
|
|
|
|
],
|
2025-09-18 12:33:51 +00:00
|
|
|
"options": {
|
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
|
},
|
2025-10-01 23:47:12 +00:00
|
|
|
"problemMatcher": [
|
|
|
|
|
"$go"
|
|
|
|
|
],
|
2025-09-18 12:33:51 +00:00
|
|
|
"group": "test"
|
2025-10-01 23:47:12 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "go: vet",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "go",
|
|
|
|
|
"args": [
|
|
|
|
|
"vet",
|
|
|
|
|
"./..."
|
|
|
|
|
],
|
|
|
|
|
"options": {
|
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
|
},
|
|
|
|
|
"problemMatcher": [
|
|
|
|
|
"$go"
|
|
|
|
|
]
|
docs: rewrite CONTRIBUTING with full local-dev setup
The prior three-line CONTRIBUTING left newcomers guessing at every
non-trivial step: which Go / Node versions, where xray comes from, why
the panel goes blank when XUI_DEBUG=true is flipped on, how the Vue
multi-page setup is wired, what to do on Windows when go build trips
on the CGo SQLite driver.
Now covers prerequisites, MinGW-w64 install on Windows (niXman builds
or MSYS2), one-shot first-time setup, two frontend dev workflows with
the XUI_DEBUG asset-cache gotcha called out, the architecture and
conventions of the Vue side, a project-layout map, useful env vars,
and the PR checklist.
2026-05-18 23:45:49 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "go: fmt",
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"command": "gofmt",
|
|
|
|
|
"args": [
|
|
|
|
|
"-l",
|
|
|
|
|
"-w",
|
|
|
|
|
"."
|
|
|
|
|
],
|
|
|
|
|
"options": {
|
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
|
},
|
|
|
|
|
"problemMatcher": []
|
2025-09-18 12:33:51 +00:00
|
|
|
}
|
|
|
|
|
]
|
2025-10-01 23:47:12 +00:00
|
|
|
}
|