From b4cbbe13b0130b9864816fc9c37fa6aeac9ef5c5 Mon Sep 17 00:00:00 2001 From: Andrew Maguire Date: Fri, 6 Jan 2023 13:56:45 +0000 Subject: [PATCH] add `frontend` devcontainer --- .devcontainer/README.md | 2 ++ .devcontainer/frontend/devcontainer.json | 2 +- .devcontainer/frontend/post_create_command.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/README.md b/.devcontainer/README.md index a7e792da..9be25ac7 100644 --- a/.devcontainer/README.md +++ b/.devcontainer/README.md @@ -8,6 +8,8 @@ devcontainer (either or in your browser via [GitHub Codespaces](https://github.com/features/codespaces)). +**Note**: If you want to chose a specific .devcontainer within GitHub codespaces select "New with options" and you will be able to select any of the pre-defined devcontainers in this repo. + ### Run pre-commit ```bash diff --git a/.devcontainer/frontend/devcontainer.json b/.devcontainer/frontend/devcontainer.json index 22f43374..4f3c61ce 100644 --- a/.devcontainer/frontend/devcontainer.json +++ b/.devcontainer/frontend/devcontainer.json @@ -6,7 +6,7 @@ "version": "latest" } }, - "postCreateCommand": "bash .devcontainer/post_create_command.sh", + "postCreateCommand": "bash .devcontainer/frontend/post_create_command.sh", "customizations": { "vscode": { "extensions": ["GitHub.copilot"] diff --git a/.devcontainer/frontend/post_create_command.sh b/.devcontainer/frontend/post_create_command.sh index 001ea00e..2e5af4e3 100644 --- a/.devcontainer/frontend/post_create_command.sh +++ b/.devcontainer/frontend/post_create_command.sh @@ -4,4 +4,4 @@ pre-commit install # npm install in /website cd website npm install -cd .. \ No newline at end of file +cd ..