mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 05:04:22 +00:00
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.
89 lines
No EOL
1.5 KiB
JSON
89 lines
No EOL
1.5 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "go: build",
|
|
"type": "shell",
|
|
"command": "go",
|
|
"args": [
|
|
"build",
|
|
"-o",
|
|
"bin/3x-ui.exe",
|
|
"./main.go"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": [
|
|
"$go"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"label": "go: run",
|
|
"type": "shell",
|
|
"command": "go",
|
|
"args": [
|
|
"run",
|
|
"./main.go"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"XUI_DEBUG": "true"
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$go"
|
|
]
|
|
},
|
|
{
|
|
"label": "go: test",
|
|
"type": "shell",
|
|
"command": "go",
|
|
"args": [
|
|
"test",
|
|
"./..."
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": [
|
|
"$go"
|
|
],
|
|
"group": "test"
|
|
},
|
|
{
|
|
"label": "go: vet",
|
|
"type": "shell",
|
|
"command": "go",
|
|
"args": [
|
|
"vet",
|
|
"./..."
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": [
|
|
"$go"
|
|
]
|
|
},
|
|
{
|
|
"label": "go: fmt",
|
|
"type": "shell",
|
|
"command": "gofmt",
|
|
"args": [
|
|
"-l",
|
|
"-w",
|
|
"."
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
} |