BookBrainz/bookbrainz-site

View on GitHub
.vscode/launch.json

Summary

Maintainability
Test Coverage
{
    // 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": "attach",
            "name": "Docker: Attach to Node",
            "port": 9229,
            "localRoot": "${workspaceFolder}/src/server/",
            "remoteRoot": "/home/bookbrainz/bookbrainz-site/src/server/",
            "restart": true,
            "sourceMaps": true,
            "smartStep": true,
            "outFiles": [
                "${workspaceFolder}/**/*.js",
                "!**/node_modules/**"
            ],       
            "skipFiles": [
            "/home/bookbrainz/bookbrainz-site/node_modules/**/*.js",
            "<node_internals>/**"
            ]
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "env": {"DEBUG":"bbsite"},
            "program": "${workspaceFolder}/lib/server/app.js",
            "args": ["--config", "./config/config.local.json"],
            "sourceMaps": true,
            "preLaunchTask": "build-website"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Webserver Mocha Tests",
            "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
            "args": [
                "--timeout", "999999",
                "--colors",
                // You can point to a specific file or folder to run only those tests
                "${workspaceFolder}/test/"
            ],
            "env": {"NODE_ENV":"test", "DEBUG":"bbsite"},
            "internalConsoleOptions": "openOnSessionStart",
            "preLaunchTask": ""
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Launch API",
            "program": "${workspaceFolder}/lib/api/app.js",
            "args": ["--config", "./config/config.local.json"],
            "preLaunchTask": "build-api-with-sourcemaps"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "API Mocha Tests",
            "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
            "args": [
                "--timeout", "999999",
                "--colors",
                // If you want to run only on test file, put the path here:
                "${workspaceFolder}/test/src/api/routes/test-search.js"
            ],
            "env": {"NODE_ENV":"test","DEBUG":"bbsite"},
            "internalConsoleOptions": "openOnSessionStart",
            "preLaunchTask": "build-api-with-sourcemaps"
        }
    ]
}