From 72c407833fc54db7339c89acf88909bf7064ce03 Mon Sep 17 00:00:00 2001 From: Douglas DUTEIL Date: Mon, 26 May 2025 12:36:57 +0200 Subject: [PATCH] chore(vscode): add code-workspace --- .vscode/proconnect-identite.code-workspace | 139 +++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 .vscode/proconnect-identite.code-workspace diff --git a/.vscode/proconnect-identite.code-workspace b/.vscode/proconnect-identite.code-workspace new file mode 100644 index 000000000..728cfeeb7 --- /dev/null +++ b/.vscode/proconnect-identite.code-workspace @@ -0,0 +1,139 @@ +{ + "folders": [ + { "name": "๐Ÿชช packages/identity/", "path": "../packages/identite" }, + { "name": "๐Ÿช™ packages/core/", "path": "../packages/core" }, + { "name": "๐Ÿ—๏ธ packages/crisp/", "path": "../packages/crisp" }, + { "name": "๐Ÿ—๏ธ packages/debounce/", "path": "../packages/debounce" }, + { "name": "๐Ÿ—๏ธ packages/email/", "path": "../packages/email" }, + { "name": "๐Ÿ—๏ธ packages/entreprise/", "path": "../packages/entreprise" }, + { "name": "๐Ÿ—๏ธ packages/insee/", "path": "../packages/insee" }, + { "name": "โš™๏ธ packages/devtools/", "path": "../packages/devtools" }, + { "name": "๐Ÿšฅ cypress/", "path": "../cypress" }, + { "name": "๐ŸŽญ packages/testing/", "path": "../packages/testing" }, + { "name": "/", "path": ".." }, + ], + "tasks": { + "version": "2.0.0", + "tasks": [ + { + "label": "๐Ÿ‹ Docker Up", + "command": "docker compose up --build --wait", + "type": "shell", + "options": { + "cwd": "${workspaceFolder:/}", + }, + "group": "build", + "runOptions": { + "instanceLimit": 1, + }, + }, + { + "label": "๐Ÿงช Run Test", + "command": "npm test", + "type": "shell", + "group": "build", + "options": { + "cwd": "${workspaceFolder:/}", + }, + "problemMatcher": ["$tsc-watch"], + "runOptions": { "instanceLimit": 1 }, + }, + { + "label": "๐Ÿงช Watch Test : Current file", + "command": "npm test --test-only --watch ${fileDirname}/${fileBasename}", + "type": "shell", + "group": "build", + "options": {}, + "problemMatcher": ["$tsc-watch"], + "runOptions": { "instanceLimit": 1 }, + }, + { + "label": "๐Ÿšฅ Cypress Studio (open)", + "command": "npx cypress open", + "type": "shell", + "group": "build", + "options": { + "cwd": "${workspaceFolder:/}", + }, + "problemMatcher": ["$tsc-watch"], + "runOptions": { "instanceLimit": 1 }, + }, + { + "label": "๐Ÿšฅ Cypress Run Dev : Current file", + "dependsOn": [ + "๐Ÿšฅ Cypress Setup Dev : Current file", + "๐Ÿšฅ Cypress Run Once : Current file", + ], + "group": "build", + }, + { + "label": "๐Ÿšฅ Cypress Run Once : Current file", + "command": "npm run e2e:run ${fileDirnameBasename}", + "dependsOn": ["๐Ÿšฅ Cypress Setup Dev : Current file"], + "type": "shell", + "group": "build", + "options": { + "cwd": "${workspaceFolder:/}", + }, + "problemMatcher": ["$tsc-watch"], + "runOptions": { "instanceLimit": 1 }, + }, + { + "label": "๐Ÿšฅ Cypress Run Dev : Current file", + "command": "npm run e2e:run ${fileDirnameBasename}", + "dependsOn": ["๐Ÿšฅ Cypress Setup Dev : Current file"], + "type": "shell", + "group": "build", + "options": { + "cwd": "${workspaceFolder:/}", + }, + "problemMatcher": ["$tsc-watch"], + "runOptions": { "instanceLimit": 1 }, + }, + { + "label": "๐Ÿšฅ Cypress Setup Dev : Current file", + "command": "npm run e2e:setup ${fileDirnameBasename} -- --dev", + "dependsOn": ["๐Ÿ‹ Docker Up"], + "type": "shell", + "group": "build", + "options": { + "cwd": "${workspaceFolder:/}", + "env": { + "ENABLE_DATABASE_DELETION": "True", + "CI": "kind of", + }, + }, + "isBackground": true, + "problemMatcher": ["$tsc-watch"], + "runOptions": { "instanceLimit": 1 }, + }, + { + "label": "๐Ÿšฅ Cypress Reset Database : Current file", + "command": "npm run delete-database && npm run migrate up && npm run fixtures:load-ci cypress/e2e/${fileDirnameBasename}/fixtures.sql && npm run update-organization-info 0", + "dependsOn": ["๐Ÿ‹ Docker Up"], + "type": "shell", + "group": "build", + "options": { + "cwd": "${workspaceFolder:/}", + "env": { + "ENABLE_DATABASE_DELETION": "True", + "CI": "kind of", + }, + }, + "problemMatcher": ["$tsc-watch"], + "runOptions": { "instanceLimit": 1 }, + }, + ], + }, + "settings": { + "search.exclude": { + "**/*.code-search": true, + "**/bower_components": true, + "**/dist": true, + "**/node_modules": true, + }, + "npm.packageManager": "bun", + "cSpell.language": "en,fr", + "cSpell.words": ["franceconnect", "oidc"], + }, +}