Files
shoppy/scripts/build_static.sh
T

19 lines
613 B
Bash

# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# download and install Node.js (you may need to restart the terminal)
nvm install 22
python manage.py tailwind install
python manage.py tailwind build
python manage.py collectstatic --noinput
# Clean npm
rm -rf ~/.nvm
rm -rf ~/.npm
rm -rf ~/.bower
rm -rf /code/theme/static_src/node_modules/