web/.devcontainer/post-create.sh
2024-06-03 21:12:54 +08:00

10 lines
228 B
Bash

#!/usr/bin/env bash
if [ -f package.json ]; then
bash -i -c "nvm install --lts && nvm install-latest-npm"
npm i
npm run build
fi
# Install dependencies for shfmt extension
curl -sS https://webi.sh/shfmt | sh &>/dev/null