From c7dae792d039e6d5ef76adf7bcc0672eb000e86f Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 17 May 2023 20:03:13 -0400 Subject: [PATCH 1/4] add devcontainer option for developing Gitea --- .devcontainer/devcontainer.json | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000000..e76538f3bd79 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,34 @@ +{ + "name": "Gitea DevContainer", + "image": "mcr.microsoft.com/devcontainers/go:1.20", + // installs nodejs into container + "features": { + "ghcr.io/devcontainers/features/node:1": { + "version": "20" + } + }, + "customizations": { + "vscode": { + "settings": {}, + // same extensions as GitPod + "extensions": [ + "editorconfig.editorconfig", + "dbaeumer.vscode-eslint", + "golang.go", + "stylelint.vscode-stylelint", + "DavidAnson.vscode-markdownlint", + "Vue.volar", + "ms-azuretools.vscode-docker", + "zixuanchen.vitest-explorer", + "alexcvzz.vscode-sqlite" + ] + } + }, + "portsAttributes": { + "3000": { + "label": "Gitea Web", + "onAutoForward": "notify" + } + }, + "postCreateCommand": "make deps" +} From f1db950f3af8809ecfeefb4ba236963e3cd3e930 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 17 May 2023 20:54:57 -0400 Subject: [PATCH 2/4] format tabs vs spaces --- .devcontainer/devcontainer.json | 48 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e76538f3bd79..84c0e6e727bb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,32 +3,32 @@ "image": "mcr.microsoft.com/devcontainers/go:1.20", // installs nodejs into container "features": { - "ghcr.io/devcontainers/features/node:1": { - "version": "20" - } + "ghcr.io/devcontainers/features/node:1": { + "version": "20" + } }, "customizations": { - "vscode": { - "settings": {}, - // same extensions as GitPod - "extensions": [ - "editorconfig.editorconfig", - "dbaeumer.vscode-eslint", - "golang.go", - "stylelint.vscode-stylelint", - "DavidAnson.vscode-markdownlint", - "Vue.volar", - "ms-azuretools.vscode-docker", - "zixuanchen.vitest-explorer", - "alexcvzz.vscode-sqlite" - ] - } - }, + "vscode": { + "settings": {}, + // same extensions as GitPod + "extensions": [ + "editorconfig.editorconfig", + "dbaeumer.vscode-eslint", + "golang.go", + "stylelint.vscode-stylelint", + "DavidAnson.vscode-markdownlint", + "Vue.volar", + "ms-azuretools.vscode-docker", + "zixuanchen.vitest-explorer", + "alexcvzz.vscode-sqlite" + ] + } + }, "portsAttributes": { - "3000": { - "label": "Gitea Web", - "onAutoForward": "notify" - } - }, + "3000": { + "label": "Gitea Web", + "onAutoForward": "notify" + } + }, "postCreateCommand": "make deps" } From 1b8359df4141e57e1e519782714a8aab4d64d817 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 18 May 2023 10:32:51 -0400 Subject: [PATCH 3/4] Update .devcontainer/devcontainer.json Co-authored-by: Yarden Shoham --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 84c0e6e727bb..fd05f964001b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,7 @@ "customizations": { "vscode": { "settings": {}, - // same extensions as GitPod + // same extensions as Gitpod, should match /.gitpod.yml "extensions": [ "editorconfig.editorconfig", "dbaeumer.vscode-eslint", From 8732611328319a5614a34fac5325ee1bb8626f99 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 18 May 2023 10:44:32 -0400 Subject: [PATCH 4/4] whitespace changes --- .devcontainer/devcontainer.json | 46 ++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fd05f964001b..6288e4d367c6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,34 +1,34 @@ { "name": "Gitea DevContainer", "image": "mcr.microsoft.com/devcontainers/go:1.20", - // installs nodejs into container "features": { - "ghcr.io/devcontainers/features/node:1": { - "version": "20" - } + // installs nodejs into container + "ghcr.io/devcontainers/features/node:1": { + "version":"20" + } }, "customizations": { - "vscode": { - "settings": {}, - // same extensions as Gitpod, should match /.gitpod.yml - "extensions": [ - "editorconfig.editorconfig", - "dbaeumer.vscode-eslint", - "golang.go", - "stylelint.vscode-stylelint", - "DavidAnson.vscode-markdownlint", - "Vue.volar", - "ms-azuretools.vscode-docker", - "zixuanchen.vitest-explorer", - "alexcvzz.vscode-sqlite" - ] - } + "vscode": { + "settings": {}, + // same extensions as Gitpod, should match /.gitpod.yml + "extensions": [ + "editorconfig.editorconfig", + "dbaeumer.vscode-eslint", + "golang.go", + "stylelint.vscode-stylelint", + "DavidAnson.vscode-markdownlint", + "Vue.volar", + "ms-azuretools.vscode-docker", + "zixuanchen.vitest-explorer", + "alexcvzz.vscode-sqlite" + ] + } }, "portsAttributes": { - "3000": { - "label": "Gitea Web", - "onAutoForward": "notify" - } + "3000": { + "label": "Gitea Web", + "onAutoForward": "notify" + } }, "postCreateCommand": "make deps" }