builder/setup.sh

25 lines
907 B
Bash
Raw Permalink Normal View History

2022-12-08 16:22:51 +00:00
#!/bin/bash
################################################################################
2022-12-08 18:30:14 +00:00
## that's a hell of an act. what do you call it? "JAVASCRIPT"
2022-12-08 16:22:51 +00:00
################################################################################
mkdir -p "$NVM_DIR"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
echo "export NVM_DIR=$NVM_DIR" >> /etc/profile
echo "source \$NVM_DIR/nvm.sh" >> /etc/profile
source /etc/profile
2022-12-08 18:30:14 +00:00
CD="/usr/local/nvm/.cache/bin/node-v18.12.1-linux-arm64/"
2022-12-08 16:22:51 +00:00
mkdir -p "$NCD"
mv /tmp/node-v18.12.1-linux-arm64.tar.xz "$NCD"
nvm ls-remote
nvm install v18.12.1
nvm use v18.12.1
2022-12-08 18:30:14 +00:00
npm install -g npm@9.2.0
2022-12-08 16:22:51 +00:00
npm install -g yarn
2022-12-08 17:15:55 +00:00
yarn global add prettier
2022-12-08 18:30:14 +00:00
################################################################################
## cleanup
################################################################################
2022-12-08 17:15:55 +00:00
rm -rf /usr/local/nvm/.cache /tmp/*