From 0cef264b406eecdb4fd1ed79b8f51e6090e42cf6 Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Thu, 23 Jan 2025 15:59:04 +0100 Subject: [PATCH] fix: remove legacy npm installation --- scripts/build_static.sh | 11 +---------- scripts/run.sh | 4 ---- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/scripts/build_static.sh b/scripts/build_static.sh index 4e7d9eb..93bbfd5 100644 --- a/scripts/build_static.sh +++ b/scripts/build_static.sh @@ -1,12 +1,3 @@ -# 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 +tailwindcss -i theme/static/css/main.css -o theme/static/css/styles.css --minify -# 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 diff --git a/scripts/run.sh b/scripts/run.sh index d442af7..cb14ce5 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -8,10 +8,6 @@ WORKER_NUM_PROCESSES=${WORKER_NUM_PROCESSES:=1} RUN_SERVER=${RUN_SERVER:="FALSE"} RUN_CELERY=${RUN_CELERY:="FALSE"} -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 - python manage.py compilemessages python manage.py build_tailwind_theme