Skip to content

Instantly share code, notes, and snippets.

@boydaihungst
Last active October 16, 2020 15:00
Show Gist options
  • Save boydaihungst/0289784028ab0c36e411ce044fd9a93f to your computer and use it in GitHub Desktop.
Save boydaihungst/0289784028ab0c36e411ce044fd9a93f to your computer and use it in GitHub Desktop.
Debug nuxtjs (Typescript) using VScode
// launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "client: chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "server: nuxt",
"args": ["dev"],
"console": "integratedTerminal",
"osx": {
"program": "${workspaceFolder}/node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js"
},
"linux": {
"program": "${workspaceFolder}/node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js"
},
"windows": {
"program": "${workspaceFolder}/node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js"
}
}
],
"compounds": [
{
"name": "fullstack: nuxt",
"configurations": ["server: nuxt", "client: chrome"]
}
]
}
// package.json
"scripts": {
"dev": "nuxt-ts"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment