typescript
concurrently
yarn global add typescript concurrently
yarn
yarn start
yarn start
yarn client-dev
yarn server-dev
vscode: 点击调试,添加配置,配置中添加
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"sourceMaps": true,
"program": "${workspaceFolder}/server/build/dev-server.js",
"outFiles": [
"${workspaceFolder}/server/dist/**/*.js"
]
}
然后 tsc启动后端编译就可以在vscode中调试