Skip to content

Commit

Permalink
improve tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellourbani committed Sep 29, 2024
1 parent 1591bf4 commit a1caa36
Show file tree
Hide file tree
Showing 8 changed files with 852 additions and 771 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"connor4312.esbuild-problem-matchers"
]
}
31 changes: 29 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Run Native",
"name": "Run Extension (Native)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
Expand All @@ -13,7 +13,25 @@
"outFiles": [
"${workspaceRoot}/out-native/**/*.js"
],
"preLaunchTask": "npm: compile"
"preLaunchTask": "watch-native"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Server (native)",
"address": "localhost",
"smartStep": true,
"showAsyncStacks": true,
"skipFiles": [
"<node_internals>/**"
],
"port": 6009,
"restart": true,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out-native/**/*.js"
],
"preLaunchTask": "watch-native"
},
{
"name": "Run Web",
Expand All @@ -29,5 +47,14 @@
],
"preLaunchTask": "npm: compile"
},
],
"compounds": [
{
"name": "Run Native",
"configurations": [
"Run Extension (Native)",
"Attach to Server (native)"
]
}
]
}
54 changes: 54 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,60 @@
"problemMatcher": [
"$tsc"
]
},
{
"type": "npm",
"script": "esbuild:native:server-watch",
"group": "build",
"isBackground": true,
"problemMatcher": [
"$esbuild-watch"
],
"label": "esbuild:native:server-watch",
"detail": "npm run esbuild:native:server -- --watch"
},
{
"type": "npm",
"script": "esbuild:native:client-watch",
"group": "build",
"isBackground": true,
"problemMatcher": [
"$esbuild-watch"
],
"label": "esbuild:native:client-watch",
"detail": "npm run esbuild:native:client -- --watch"
},
{
"type": "npm",
"script": "watch:client",
"isBackground": true,
"group": "build",
"problemMatcher": [
"$tsc-watch"
],
"label": "watch:client",
"detail": "tsc -w -p ./client/tsconfig.json"
},
{
"type": "npm",
"script": "watch:server",
"group": "build",
"isBackground": true,
"problemMatcher": [
"$tsc-watch"
],
"label": "watch:server",
"detail": "tsc -w -p ./server/tsconfig.json"
},
{
"label": "watch-native",
"dependsOn": [
"watch:client",
"watch:server",
"esbuild:native:client-watch",
"esbuild:native:server-watch"
],
"problemMatcher": []
}
]
}
Loading

0 comments on commit a1caa36

Please sign in to comment.