chore: change debug server to yarn dev (#2383)

This commit is contained in:
Junyi 2023-08-03 16:04:00 +07:00 committed by GitHub
parent 495c2209c2
commit 05cba94982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

68
.vscode/launch.json vendored
View File

@ -5,21 +5,9 @@
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Debug Server", "name": "Debug Server",
"runtimeArgs": [ "runtimeExecutable": "yarn",
"-r", "runtimeArgs": ["dev", "--server"],
"dotenv/config", "skipFiles": ["<node_internals>/**"],
"-r",
"tsconfig-paths/register",
"-r",
"ts-node/register"
],
"args": [
"${workspaceRoot}/packages/app/server/src/index.ts",
"start"
],
"skipFiles": [
"<node_internals>/**"
],
"console": "integratedTerminal", "console": "integratedTerminal",
"internalConsoleOptions": "neverOpen" "internalConsoleOptions": "neverOpen"
}, },
@ -28,26 +16,12 @@
"request": "launch", "request": "launch",
"name": "Debug Jest Tests", "name": "Debug Jest Tests",
"runtimeExecutable": "yarn", "runtimeExecutable": "yarn",
"runtimeArgs": [ "runtimeArgs": ["run", "--inspect-brk", "test", "--runInBand", "${file}"],
"run", "skipFiles": ["<node_internals>/**"],
"--inspect-brk",
"test",
"--runInBand",
"${file}"
],
"skipFiles": [
"<node_internals>/**"
],
"console": "integratedTerminal", "console": "integratedTerminal",
"internalConsoleOptions": "neverOpen", "internalConsoleOptions": "neverOpen",
"windows": { "windows": {
"runtimeArgs": [ "runtimeArgs": ["run", "--inspect-brk", "test", "--runInBand", "/${fileBasename}"]
"run",
"--inspect-brk",
"test",
"--runInBand",
"/${fileBasename}"
],
} }
}, },
{ {
@ -55,22 +29,12 @@
"request": "launch", "request": "launch",
"name": "Debug Client Tests", "name": "Debug Client Tests",
"runtimeExecutable": "yarn", "runtimeExecutable": "yarn",
"runtimeArgs": [ "runtimeArgs": ["run", "test:client", "${file}"],
"run", "skipFiles": ["<node_internals>/**"],
"test:client",
"${file}"
],
"skipFiles": [
"<node_internals>/**"
],
"console": "integratedTerminal", "console": "integratedTerminal",
"internalConsoleOptions": "neverOpen", "internalConsoleOptions": "neverOpen",
"windows": { "windows": {
"runtimeArgs": [ "runtimeArgs": ["run", "test:client", "${relativeFile}"]
"run",
"test:client",
"${relativeFile}"
],
} }
}, },
{ {
@ -78,18 +42,10 @@
"request": "launch", "request": "launch",
"name": "Debug Migration", "name": "Debug Migration",
"runtimeExecutable": "yarn", "runtimeExecutable": "yarn",
"runtimeArgs": [ "runtimeArgs": ["run", "--inspect-brk", "nocobase", "migrator", "up"],
"run", "skipFiles": ["<node_internals>/**"],
"--inspect-brk",
"nocobase",
"migrator",
"up",
],
"skipFiles": [
"<node_internals>/**"
],
"console": "integratedTerminal", "console": "integratedTerminal",
"internalConsoleOptions": "neverOpen" "internalConsoleOptions": "neverOpen"
}, }
] ]
} }