From c0a8126a827c8bd2cb3c401e8751cc8fd756dedb Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Wed, 25 Oct 2023 17:28:51 +0000 Subject: [PATCH] updated devcontainer --- .devcontainer/devcontainer.json | 14 +++++++------- .devcontainer/setup.sh | 23 ++++------------------- 2 files changed, 11 insertions(+), 26 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b1061ef..0fef939 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,13 +5,13 @@ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/javascript-node", "features": { - "ghcr.io/devcontainers-contrib/features/act:1": {} + "ghcr.io/devcontainers-contrib/features/act:1": {}, + "ghcr.io/devcontainers/features/git-lfs": {} }, "customizations": { "vscode": { "extensions": [ - "budparr.language-hugo-vscode", - "tamasfe.even-better-toml", + "astro-build.astro-vscode", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "bradlc.vscode-tailwindcss", @@ -35,14 +35,14 @@ "updateContentCommand": "", "postCreateCommand": "", "postAttachCommand": { - "server": "source /etc/environment && hugo server" + "server": "source /etc/environment && npm run dev" }, "portsAttributes": { - "1313": { - "label": "Hugo Blog", + "4321": { + "label": "Astro Dev Server", "onAutoForward": "openPreview" } }, - "forwardPorts": [1313] + "forwardPorts": [4321] } diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index f0db8a6..70a4819 100755 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -1,21 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -export HUGO_VERSION="0.119.0" -export GO_VERSION="1.21.3" - -pushd /tmp -curl -LO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" -tar -xvf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz -sudo mv hugo /usr/local/bin/ -rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz -curl -LO "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" -sudo tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz -rm go${GO_VERSION}.linux-amd64.tar.gz -export PATH=$PATH:/usr/local/go/bin -echo PATH="/usr/local/share/nvm/current/bin:/usr/local/share/npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin" |sudo tee -a /etc/environment -echo "PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc -source ~/.bashrc -go version -popd -hugo version -yarn install \ No newline at end of file +npm install +git lfs install +git lfs fetch +git lfs pull \ No newline at end of file