Skip to content

High performance self-hosted photo and video management solution.

chore: move devcontainer specific tasks to devcontainer.json (#25881)

Min Idzelis440b3b4c6fab
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 7584eb8075..c6c2b3b51e 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -26,7 +26,81 @@
"vitest.explorer",
"ms-playwright.playwright",
"ms-azuretools.vscode-docker"
- ]
+ ],
+ "settings": {
+ "tasks": {
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "Fix Permissions, Install Dependencies",
+ "type": "shell",
+ "command": "[ -f /immich-devcontainer/container-start.sh ] && /immich-devcontainer/container-start.sh || exit 0",
+ "isBackground": true,
+ "presentation": {
+ "echo": true,
+ "reveal": "always",
+ "focus": false,
+ "panel": "dedicated",
+ "showReuseMessage": true,
+ "clear": false,
+ "group": "Devcontainer tasks",
+ "close": true
+ },
+ "runOptions": {
+ "runOn": "default"
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Immich API Server (Nest)",
+ "dependsOn": ["Fix Permissions, Install Dependencies"],
+ "type": "shell",
+ "command": "[ -f /immich-devcontainer/container-start-backend.sh ] && /immich-devcontainer/container-start-backend.sh || exit 0",
+ "isBackground": true,
+ "presentation": {
+ "echo": true,
+ "reveal": "always",
+ "focus": false,
+ "panel": "dedicated",
+ "showReuseMessage": true,
+ "clear": false,
+ "group": "Devcontainer tasks",
+ "close": true
+ },
+ "runOptions": {
+ "runOn": "folderOpen"
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Immich Web Server (Vite)",
+ "dependsOn": ["Fix Permissions, Install Dependencies"],
+ "type": "shell",
+ "command": "[ -f /immich-devcontainer/container-start-frontend.sh ] && /immich-devcontainer/container-start-frontend.sh || exit 0",
+ "isBackground": true,
+ "presentation": {
+ "echo": true,
+ "reveal": "always",
+ "focus": false,
+ "panel": "dedicated",
+ "showReuseMessage": true,
+ "clear": false,
+ "group": "Devcontainer tasks",
+ "close": true
+ },
+ "runOptions": {
+ "runOn": "folderOpen"
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Build Immich CLI",
+ "type": "shell",
+ "command": "pnpm --filter cli build:dev"
+ }
+ ]
+ }
+ }
}
},
"features": {
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
deleted file mode 100644
index 478a46b4bd..0000000000
--- a/.vscode/tasks.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "version": "2.0.0",
- "tasks": [
- {
- "label": "Fix Permissions, Install Dependencies",
- "type": "shell",
- "command": "[ -f /immich-devcontainer/container-start.sh ] && /immich-devcontainer/container-start.sh || exit 0",
- "isBackground": true,
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": true,
- "clear": false,
- "group": "Devcontainer tasks",
- "close": true
- },
- "runOptions": {
- "runOn": "default"
- },
- "problemMatcher": []
- },
- {
- "label": "Immich API Server (Nest)",
- "dependsOn": ["Fix Permissions, Install Dependencies"],
- "type": "shell",
- "command": "[ -f /immich-devcontainer/container-start-backend.sh ] && /immich-devcontainer/container-start-backend.sh || exit 0",
- "isBackground": true,
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": true,
- "clear": false,
- "group": "Devcontainer tasks",
- "close": true
- },
- "runOptions": {
- "runOn": "default"
- },
- "problemMatcher": []
- },
- {
- "label": "Immich Web Server (Vite)",
- "dependsOn": ["Fix Permissions, Install Dependencies"],
- "type": "shell",
- "command": "[ -f /immich-devcontainer/container-start-frontend.sh ] && /immich-devcontainer/container-start-frontend.sh || exit 0",
- "isBackground": true,
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "dedicated",
- "showReuseMessage": true,
- "clear": false,
- "group": "Devcontainer tasks",
- "close": true
- },
- "runOptions": {
- "runOn": "default"
- },
- "problemMatcher": []
- },
- {
- "label": "Immich Server and Web",
- "dependsOn": ["Immich Web Server (Vite)", "Immich API Server (Nest)"],
- "runOptions": {
- "runOn": "folderOpen"
- },
- "problemMatcher": []
- },
- {
- "label": "Build Immich CLI",
- "type": "shell",
- "command": "pnpm --filter cli build:dev"
- }
- ]
-}