mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 04:15:19 +00:00
chore(debug): add debug config (#475)
This commit is contained in:
parent
fe02557003
commit
588ee21f4d
46
.vscode/launch.json
vendored
Normal file
46
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
// 使用 IntelliSense 了解相关属性。
|
||||||
|
// 悬停以查看现有属性的描述。
|
||||||
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Debug Server",
|
||||||
|
"cmd": "${workspaceRoot}",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"-r", "dotenv/config",
|
||||||
|
"-r", "tsconfig-paths/register",
|
||||||
|
"-r", "ts-node/register"
|
||||||
|
],
|
||||||
|
"args": ["${workspaceRoot}/packages/app/server/src/index.ts", "start"],
|
||||||
|
"port": 9229,
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
],
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"internalConsoleOptions": "neverOpen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Debug Jest Tests",
|
||||||
|
"runtimeExecutable": "yarn",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"run",
|
||||||
|
"--inspect-brk",
|
||||||
|
"test",
|
||||||
|
"--runInBand",
|
||||||
|
// could be any single file path to debug
|
||||||
|
"${workspaceFolder}/packages/"
|
||||||
|
],
|
||||||
|
"port": 9229,
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
],
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"internalConsoleOptions": "neverOpen"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -73,7 +73,7 @@ module.exports = (cli) => {
|
|||||||
env: {
|
env: {
|
||||||
PORT: clientPort,
|
PORT: clientPort,
|
||||||
APP_ROOT: `packages/${APP_PACKAGE_ROOT}/client`,
|
APP_ROOT: `packages/${APP_PACKAGE_ROOT}/client`,
|
||||||
PROXY_TARGET_URL: serverPort ? `http://127.0.0.1:${serverPort}` : undefined,
|
PROXY_TARGET_URL: process.env.PROXY_TARGET_URL || (serverPort ? `http://127.0.0.1:${serverPort}` : undefined),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -27,5 +27,10 @@
|
|||||||
"packages/core/*/src"
|
"packages/core/*/src"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"ts-node": {
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user