matthew-matvei/freeman

View on GitHub
.vscode/launch.json

Summary

Maintainability
Test Coverage
{
    // Use IntelliSense to learn about possible Node.js debug attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug Main Process",
            "type": "node",
            "request": "launch",
            "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
            "windows": {
                "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
            },
            "runtimeArgs": [
                "--enable-logging",
                "--remote-debugging-port=9222"
            ],
            "cwd": "${workspaceFolder}",
            "program": "${workspaceFolder}/app/main.js",
            "timeout": 20000,
            "sourceMaps": true,
            "preLaunchTask": "build"
        },
        {
            "name": "Launch app",
            "type": "chrome",
            "request": "launch",
            "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
            "windows": {
                "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
            },
            "runtimeArgs": [
                "${workspaceFolder}/app/main.js",
                "--enable-logging",
                "--remote-debugging-port=9222"
            ],
            "webRoot": "${workspaceFolder}",
            "sourceMaps": true,
            "preLaunchTask": "build"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Mocha Tests",
            "program": "${workspaceRoot}/node_modules/.bin/electron-mocha",
            "args": [
                "--renderer",
                "--debug",
                "--ui",
                "tdd",
                "--timeout",
                "999999",
                "${workspaceRoot}/__tests__"
            ],
            "internalConsoleOptions": "openOnSessionStart",
            "preLaunchTask": "build:test"
        }
    ]
}