{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "run-backend-tests",
			"type": "process",
			"command": "pwsh",
			"args": [
				"-NoProfile",
				"-NonInteractive",
				"-Command",
				"& { $env:NODE_ENV = 'development'; Set-Location 'd:/Web API/FailDaily/backend-api'; $server = Start-Process -FilePath node -ArgumentList 'server.js' -PassThru; try { Start-Sleep -Seconds 2; node ./tests/run-all-tests.js } finally { if ($server -and -not $server.HasExited) { Stop-Process -Id $server.Id -Force } }; exit $LASTEXITCODE }"
			]
		},
		{
			"label": "rebuild-frontend-local",
			"type": "shell",
			"command": "docker compose -f docker/docker-compose.local.yml build --no-cache frontend && docker compose -f docker/docker-compose.local.yml up -d frontend",
			"isBackground": false,
			"problemMatcher": [],
			"group": "build"
		},
		{
			"label": "chrome-debug: lancer Chrome (port 9222)",
			"type": "shell",
"command": "powershell.exe -NoProfile -WindowStyle Hidden -Command \"Stop-Process -Name chrome -Force -ErrorAction SilentlyContinue; Start-Sleep 2; Start-Process 'C:\\\\Program Files\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe' -ArgumentList '--remote-debugging-port=9222','--remote-allow-origins=*','--no-first-run','--no-default-browser-check','--user-data-dir=C:\\\\chrome-debug-profile','http://localhost:8090'\"",
			"isBackground": true,
			"problemMatcher": [],
			"detail": "Lance Chrome Windows en mode CDP (port 9222) sur l'app locale (port 8090 via Traefik). Ferme d'abord Chrome existant."
		}
	]
}