From 50a3eeb59869e1fc656bf1a842f3b94b3bcff031 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Thu, 11 Jul 2024 10:33:37 +0000 Subject: [PATCH] single dev container --- .devcontainer.json | 55 ------------------------------- .vscode/codeforlife.code-snippets | 16 --------- .vscode/launch.json | 2 +- .vscode/tasks.json | 8 ++++- codeforlife.code-workspace | 25 -------------- 5 files changed, 8 insertions(+), 98 deletions(-) delete mode 100644 .devcontainer.json delete mode 100644 .vscode/codeforlife.code-snippets delete mode 100644 codeforlife.code-workspace diff --git a/.devcontainer.json b/.devcontainer.json deleted file mode 100644 index 9cb651b..0000000 --- a/.devcontainer.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "customizations": { - "vscode": { - "extensions": [ - "visualstudioexptteam.vscodeintellicode", - "github.vscode-pull-request-github", - "redhat.vscode-yaml", - "davidanson.vscode-markdownlint", - "bierner.markdown-mermaid", - "streetsidesoftware.code-spell-checker", - "tamasfe.even-better-toml", - "github.vscode-github-actions", - "codecov.codecov", - "ritwickdey.liveserver", - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode", - "ms-python.python", - "ms-python.debugpy", - "ms-python.pylint", - "ms-python.isort", - "ms-python.vscode-pylance", - "ms-python.mypy-type-checker", - "ms-python.black-formatter", - "qwtel.sqlite-viewer", - "njpwerner.autodocstring" - ] - } - }, - "dockerComposeFile": [ - "../docker-compose.yml" - ], - "features": { - "ghcr.io/devcontainers-contrib/features/pipenv:2": { - "version": "2023.11.15" - }, - "ghcr.io/devcontainers/features/node:1": { - "version": "18" - }, - "ghcr.io/devcontainers/features/python:1": { - "installTools": false, - "version": "3.8" - } - }, - "mounts": [ - "source=./codeforlife-portal-backend,target=/workspace/codeforlife-portal-backend,type=bind,consistency=cached", - "source=./codeforlife-package-javascript,target=/workspace/codeforlife-package-javascript,type=bind,consistency=cached", - "source=./codeforlife-package-python,target=/workspace/codeforlife-package-python,type=bind,consistency=cached" - ], - "name": "portal-frontend", - "postCreateCommand": "sudo chmod u+x scripts/setup && scripts/setup", - "remoteUser": "root", - "service": "base-service", - "shutdownAction": "none", - "workspaceFolder": "/workspace/codeforlife-portal-frontend" -} \ No newline at end of file diff --git a/.vscode/codeforlife.code-snippets b/.vscode/codeforlife.code-snippets deleted file mode 100644 index 28102ef..0000000 --- a/.vscode/codeforlife.code-snippets +++ /dev/null @@ -1,16 +0,0 @@ -{ - "javascript.module.doccomment": { - "body": [ - "/**", - " * \u00a9 Ocado Group", - " * Created on $CURRENT_DATE/$CURRENT_MONTH/$CURRENT_YEAR at $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND($CURRENT_TIMEZONE_OFFSET).", - " *", - " * ${1:__description__}", - " */" - ], - "prefix": [ - "/" - ], - "scope": "javascript,typescript,javascriptreact,typescriptreact" - } -} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 9f1a90e..a01fca9 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,7 @@ "configurations": [ { "name": "Vite Server", - "preLaunchTask": "start-vite-server", + "preLaunchTask": "run", "request": "launch", "type": "chrome", "url": "http://localhost:5173" diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c9c2abe..3cd69a2 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,5 +1,11 @@ { "tasks": [ + { + "command": "sudo chmod u+x scripts/setup && scripts/setup", + "label": "setup", + "problemMatcher": [], + "type": "shell" + }, { "command": "sudo chmod u+x scripts/hard-install && scripts/hard-install", "label": "hard-install", @@ -9,7 +15,7 @@ { "command": "sudo chmod u+x scripts/run && scripts/run", "isBackground": true, - "label": "start-vite-server", + "label": "run", "options": { "env": { "BROWSER": "none" diff --git a/codeforlife.code-workspace b/codeforlife.code-workspace deleted file mode 100644 index 7e623c1..0000000 --- a/codeforlife.code-workspace +++ /dev/null @@ -1,25 +0,0 @@ -{ - "folders": [ - { - "name": "portal-backend", - "path": "../codeforlife-portal-backend" - }, - { - "name": "portal-frontend", - "path": "." - }, - { - "name": "package-python", - "path": "../codeforlife-package-python" - }, - { - "name": "package-javascript", - "path": "../codeforlife-package-javascript" - } - ], - "settings": { - "workbench.colorCustomizations": { - "editorRuler.foreground": "#008000" - } - } -} \ No newline at end of file