From 668ae605aa3d684adb8df4863043a28df24319d9 Mon Sep 17 00:00:00 2001 From: April Leonard Date: Thu, 27 Oct 2022 16:56:41 -0700 Subject: [PATCH] reorder steps to build, display, run --- .devcontainer/devcontainer.json | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7b14bcda9..8ed2075c2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,15 @@ { + "hostRequirements": {"cpus": 4}, + + "onCreateCommand": "npm install && npm run build", + "postCreateCommand": "", + + "customizations": { + "codespaces": { + "openFiles": ["src/App.js"] + } + }, + "postAttachCommand": { "server": "npm start", }, @@ -8,14 +19,5 @@ "label": "Application", "onAutoForward": "openPreview" } - }, - - "customizations": { - "codespaces": { - "openFiles": ["src/App.js"] - } - }, - "onCreateCommand": "npm install && npm run build", - "postCreateCommand": "", - "hostRequirements": {"cpus": 4} + } }