11 lines
228 B
Bash
11 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
|