Skip to content

Instantly share code, notes, and snippets.

@vsanrocha
Created October 10, 2022 13:26
Show Gist options
  • Select an option

  • Save vsanrocha/a90426d972d03423ceb8dc84441d531f to your computer and use it in GitHub Desktop.

Select an option

Save vsanrocha/a90426d972d03423ceb8dc84441d531f to your computer and use it in GitHub Desktop.
Nuxt launch config file
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "client: chrome",
"url": "http://localhost:3333",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "server: nuxt",
"cwd": "${workspaceFolder}",
"autoAttachChildProcesses": true,
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "dev"],
// "program": "${workspaceRoot}/node_modules/nuxt/bin/nuxt.mjs",
// "args": ["dev", "--port", "3333"],
// "runtimeArgs": ["--preserve-symlinks"],
"console": "integratedTerminal"
},
{
"type": "pwa-node",
"request": "launch",
"name": "Debug Current Test File",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"smartStep": true,
"console": "integratedTerminal"
},
{
"type": "pwa-node",
"request": "launch",
"name": "Debug Current Test File in Watch mode",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["${relativeFile}"],
"smartStep": true,
"console": "integratedTerminal"
}
],
"compounds": [
{
"name": "fullstack: nuxt",
"configurations": ["server: nuxt", "client: chrome"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment