Launch.json code

From Seedbury Square
{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "Tools: BrowserSync",
			"type": "pwa-node",
			"request": "launch",
			"noDebug": true,
			"runtimeExecutable": "npx",
			"runtimeArgs": [
				"browser-sync",
				"start",
				"--config",
				".vscode/bs-config.js"
			],
			"cwd": "${workspaceFolder}",
			"console": "integratedTerminal",
			"internalConsoleOptions": "neverOpen"
		},
		{
			"name": "Server: Node (inspect)",
			"type": "pwa-node",
			"request": "launch",
			"program": "${workspaceFolder}/api/src/webServer/webserver.js",
			"cwd": "${workspaceFolder}/api/src/webServer",
			"runtimeArgs": [
				"--inspect=9229"
			],
			"env": {
				"NODE_ENV": "development"
			},
			"console": "integratedTerminal",
			"restart": true,
			"autoAttachChildProcesses": true,
			"skipFiles": [
				"<node_internals>/**"
			]
		},
		{
			"name": "Server: Nodemon (inspect)",
			"type": "pwa-node",
			"request": "launch",
			"runtimeExecutable": "npx",
			"runtimeArgs": [
				"nodemon",
				"--inspect=9229",
				"--ignore",
				"webServer/ui/**"
			],
			"args": [
				"webServer/webserver.js"
			],
			"cwd": "${workspaceFolder}/api/src",
			"env": {
				"NODE_ENV": "development"
			},
			"console": "integratedTerminal",
			"restart": true,
			"autoAttachChildProcesses": true,
			"skipFiles": [
				"<node_internals>/**"
			]
		},
		{
			"name": "Client: Chrome (direct 1338)",
			"type": "pwa-chrome",
			"request": "launch",
			"url": "http://localhost:1338",
			"webRoot": "${workspaceFolder}/api/src/webServer/ui/src",
			"skipFiles": [
				"**/node_modules/**/*.js"
			]
		},
		{
			"name": "Client: Chrome (BrowserSync 3000)",
			"type": "pwa-chrome",
			"request": "launch",
			"url": "http://localhost:3000",
			"webRoot": "${workspaceFolder}/api/src/webServer/ui/src",
			"skipFiles": [
				"**/node_modules/**/*.js"
			]
		},
		{
			"name": "Attach: Node (9229)",
			"type": "pwa-node",
			"request": "attach",
			"port": 9229,
			"skipFiles": [
				"<node_internals>/**"
			]
		}
	],
	"compounds": [
		{
			"name": "Dev: Nodemon + BrowserSync + Chrome",
			"configurations": [
				"Server: Nodemon (inspect)",
				"Tools: BrowserSync",
				"Client: Chrome (BrowserSync 3000)"
			],
			"stopAll": true
		},
		{
			"name": "Dev: Server + Chrome",
			"configurations": [
				"Server: Node (inspect)",
				"Client: Chrome (direct 1338)"
			],
			"stopAll": true
		},
		{
			"name": "Dev: Nodemon + Chrome",
			"configurations": [
				"Server: Nodemon (inspect)",
				"Client: Chrome (direct 1338)"
			],
			"stopAll": true
		}
	]
}