Skip to content

Commit

Permalink
feat(launch): update vscode launch configs (#6887)
Browse files Browse the repository at this point in the history
### Description

Update the vscode launch configs

1. Update the version to get access to user input and grouping
2. Remove old Go and e2e configs
3. Fix the existing configs to user skip-infer to ensure we're using the
local built turbo and not the one installed in the example
4. Cleans up unused actions

Closes TURBO-1991
  • Loading branch information
tknickman committed Jan 4, 2024
1 parent 52aee0d commit deed498
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 156 deletions.
171 changes: 44 additions & 127 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,152 +2,69 @@
// 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",
"version": "2.0.0",
"configurations": [
{
"name": "E2E",
"runtimeArgs": ["-r", "esbuild-register"],
"cwd": "${workspaceFolder}/cli",
"program": "${workspaceFolder}/cli/scripts/e2e/e2e.ts",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "node",
"preLaunchTask": "prepare e2e"
},
{
"name": "Server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/examples/basic",
"args": ["daemon"]
},
{
"name": "Benchmark Server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/benchmark/large-monorepo",
"args": ["daemon"]
},
{
"name": "Benchmark Client",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/benchmark/large-monorepo",
"args": ["run", "build", "-vvv"]
},
{
"name": "Client",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/examples/basic",
"args": ["run", "build", "-vvv"]
},
{
"name": "turbo --version",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/examples/basic",
"args": ["--version"]
},
{
"name": "Build Basic",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/examples/basic",
"args": ["run", "build"]
},
{
"name": "Build Basic (Dry Run / Debug)",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/examples/basic",
"args": ["run", "build", "--dry-run", "-vv"]
},
{
"name": "Build Kitchen Sink",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/examples/kitchen-sink",
"args": ["run", "build", "-vv"]
},
{
"name": "Build Kitchen Sink (Dry Run)",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/examples/kitchen-sink",
"args": ["run", "build", "--dry-run"]
},
{
"name": "Build All",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}",
"args": ["run", "build"]
},
{
"name": "Build All (Force)",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}",
"args": ["run", "build", "--force"]
},
{
"name": "Testbed",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}/cli/cmd/turbo",
"cwd": "${workspaceRoot}/cli/testbed",
"args": ["run", "build", "--single-package"]
},
{
"name": "Build Basic (Shim)",
"name": "turbo build (example)",
"type": "lldb",
"request": "launch",
"preLaunchTask": "prepare turbo",
"program": "${workspaceRoot}/target/debug/turbo",
"args": ["build"],
"cwd": "${workspaceRoot}/examples/basic"
"args": ["build", "--skip-infer"],
"cwd": "${workspaceRoot}/${input:pickExample}",
"presentation": {
"group": "commands",
"order": 1
}
},
{
"name": "Generators",
"name": "turbo gen",
"type": "lldb",
"request": "launch",
"preLaunchTask": "prepare turbo",
"program": "${workspaceRoot}/target/debug/turbo",
"args": ["gen", "blog - release post", "--args", "1.11.0", "1.10.0", "_", "tagline about my really cool release"],
"cwd": "${workspaceRoot}"
"args": [
"gen",
"blog - release post",
"--args",
"1.11.0",
"1.10.0",
"_",
"tagline about my really cool release"
],
"cwd": "${workspaceRoot}",
"presentation": {
"group": "commands",
"order": 1
}
},
{
"name": "Daemon",
"name": "turbo daemon",
"type": "lldb",
"request": "launch",
"preLaunchTask": "prepare turbo",
"program": "${workspaceRoot}/target/debug/turbo",
"args": ["--skip-infer", "daemon"],
"cwd": "${workspaceRoot}"
"cwd": "${workspaceRoot}",
"presentation": {
"group": "commands",
"order": 1
}
}
],
"inputs": [
{
"id": "pickExample",
"description": "Select the example to use",
"type": "pickString",
"options": [
"examples/basic",
"examples/kitchen-sink",
"examples/design-system",
"examples/non-monorepo",
"examples/non-shell-commands"
],
"default": "examples/basic"
}
]
}
29 changes: 0 additions & 29 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
{
"version": "2.0.0",
"tasks": [
{
"runOptions": {
"runOn": "folderOpen"
},
"label": "Compile protobufs",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}/cli"
},
"presentation": {
"reveal": "silent"
},
"command": "make compile-protos"
},
{
"type": "shell",
"label": "prepare e2e",
"dependsOn": ["make turbo", "make install"]
},
{
"type": "shell",
"command": "cd ${cwd}/cli && make install",
"label": "make install"
},
{
"type": "shell",
"command": "cd ${cwd}/cli && make turbo",
"label": "make turbo"
},
{
"type": "shell",
"label": "prepare turbo",
Expand Down

1 comment on commit deed498

@vercel
Copy link

@vercel vercel bot commented on deed498 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.