| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- {
- "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": "go",
- "args": [
- "fmt",
- "./..."
- ],
- "options": {
- "cwd": "${workspaceFolder}"
- },
- "problemMatcher": [
- "$go"
- ]
- },
- {
- "label": "go: modernize",
- "type": "shell",
- "command": "modernize",
- "args": [
- "./..."
- ],
- "options": {
- "cwd": "${workspaceFolder}"
- },
- "problemMatcher": [
- "$go"
- ]
- },
- {
- "label": "go: modernize -fix",
- "type": "shell",
- "command": "modernize",
- "args": [
- "-fix",
- "./..."
- ],
- "options": {
- "cwd": "${workspaceFolder}"
- },
- "problemMatcher": [
- "$go"
- ]
- },
- {
- "label": "frontend: ncu -u",
- "type": "shell",
- "command": "npx",
- "args": [
- "npm-check-updates",
- "-u"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": []
- },
- {
- "label": "frontend: install",
- "type": "shell",
- "command": "npm",
- "args": [
- "install"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": []
- },
- {
- "label": "frontend: dev",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "dev"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "isBackground": true,
- "problemMatcher": [],
- "presentation": {
- "panel": "dedicated",
- "group": "dev"
- }
- },
- {
- "label": "frontend: build",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "build"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": [
- "$tsc"
- ],
- "group": "build"
- },
- {
- "label": "frontend: gen",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "gen"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": []
- },
- {
- "label": "frontend: lint",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "lint"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": [
- "$eslint-stylish"
- ]
- },
- {
- "label": "frontend: test",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "test"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": [],
- "group": "test"
- },
- {
- "label": "frontend: test:watch",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "test:watch"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "isBackground": true,
- "problemMatcher": [],
- "group": "test",
- "presentation": {
- "panel": "dedicated",
- "group": "test"
- }
- },
- {
- "label": "frontend: typecheck",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "typecheck"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": [
- "$tsc"
- ]
- },
- {
- "label": "frontend: gen:zod",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "gen:zod"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": []
- },
- {
- "label": "frontend: gen:api",
- "type": "shell",
- "command": "npm",
- "args": [
- "run",
- "gen:api"
- ],
- "options": {
- "cwd": "${workspaceFolder}/frontend"
- },
- "problemMatcher": []
- },
- {
- "label": "build: full (frontend + go)",
- "dependsOrder": "sequence",
- "dependsOn": [
- "frontend: build",
- "go: build"
- ],
- "problemMatcher": [],
- "group": {
- "kind": "build",
- "isDefault": false
- }
- },
- {
- "label": "check: all",
- "dependsOn": [
- "go: vet",
- "go: test",
- "frontend: lint",
- "frontend: typecheck",
- "frontend: test"
- ],
- "problemMatcher": []
- }
- ]
- }
|