.vscode/launch.json
{
// 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",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"dist/test",
"--require",
"source-map-support/register",
"${workspaceFolder}/dist/test"
],
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "npm: build"
},
{
"type": "node",
"request": "launch",
"name": "Launch Demo",
"program": "${workspaceFolder}/dist/demo/index.js",
"cwd": "${workspaceFolder}",
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: build"
}
]
}