mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 16:32:15 +08:00
945bd7f2b0
* feat: speedup scripts & make server development faster * feat: fix server debugging + allow attaching to a running node process * feat: make npm run during watch less chatty
38 lines
1.0 KiB
JSON
38 lines
1.0 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Launch Development Server",
|
|
"cwd": "${workspaceFolder}",
|
|
"args": [
|
|
"-r",
|
|
"ts-node/register",
|
|
"-r",
|
|
"tsconfig-paths/register",
|
|
"${workspaceFolder}/src/index.ts"
|
|
],
|
|
"env": {
|
|
"TS_NODE_PROJECT": "${workspaceFolder}/src/tsconfig.json",
|
|
"TS_NODE_FILES": "true",
|
|
"TS_NODE_TRANSPILE_ONLY": "true",
|
|
// Set to 1 here beacuse clustering gets all weird with logging + output.
|
|
"CONCURRENCY": "1"
|
|
},
|
|
"outputCapture": "std"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Node Process",
|
|
"processId": "${command:PickProcess}",
|
|
"restart": true,
|
|
"protocol": "inspector"
|
|
}
|
|
]
|
|
}
|