From 020249404f93d1493cfd2b50e01b7412b78623e3 Mon Sep 17 00:00:00 2001 From: Craig Peters Date: Tue, 31 Oct 2023 21:59:46 +0000 Subject: [PATCH 1/3] annotate the devcontainer --- .devcontainer/devcontainer.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f2315ead8..d297849fd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,21 +1,34 @@ { + // See the devcontainer spec at https://containers.dev/implementors/spec/ + "name": "React Codespaces Template", + + // Container image to build environment from + // universal contains many tools making it useful in many contexts https://github.com/devcontainers/images/tree/main/src/universal "image": "mcr.microsoft.com/devcontainers/universal:2", + + // Specify the minimum machine spec for running the dev container "hostRequirements": { "cpus": 4 }, - "waitFor": "onCreateCommand", + + // Upon Codespaces or image prebuild, refresh the npm and node.hs installation (async from environment creation) "updateContentCommand": "npm install", - "postCreateCommand": "", + + // Upon environment create, and after the user session is created, run the server "postAttachCommand": { "server": "npm start" }, + "customizations": { + // Configure Codespaces to open the application source on start "codespaces": { "openFiles": [ "src/App.js" ] } }, + + // Configure the environment to open a browser to the application on port 3000 "portsAttributes": { "3000": { "label": "Application", From e6545aeccab22c5f898c6083a04351874ab8282e Mon Sep 17 00:00:00 2001 From: Craig Peters Date: Wed, 1 Nov 2023 11:13:44 -0700 Subject: [PATCH 2/3] capitalization Co-authored-by: Samruddhi Khandale --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d297849fd..680b50297 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,7 @@ "cpus": 4 }, - // Upon Codespaces or image prebuild, refresh the npm and node.hs installation (async from environment creation) + // Upon codespaces or image prebuild, refresh the npm and node.js installation (async from environment creation) "updateContentCommand": "npm install", // Upon environment create, and after the user session is created, run the server From 2c90762774d5795713408ef0e4195732559c8fcb Mon Sep 17 00:00:00 2001 From: Craig Peters Date: Wed, 1 Nov 2023 11:13:56 -0700 Subject: [PATCH 3/3] capitalization Co-authored-by: Samruddhi Khandale --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 680b50297..6c5d01027 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,7 +20,7 @@ }, "customizations": { - // Configure Codespaces to open the application source on start + // Configure codespaces to open the application source on start "codespaces": { "openFiles": [ "src/App.js"