update scripts to check if tailwind installed

This commit is contained in:
sasha-astiadi 2025-03-19 13:43:03 +01:00
parent 60e1fc5d5d
commit 0025a9cf1a
2 changed files with 16 additions and 2 deletions

View File

@ -1,8 +1,15 @@
#!/bin/bash
echo "Building Tailwind CSS..."
echo "🔍 Checking for Tailwind CSS..."
if ! [ -d "node_modules" ]; then
echo "📦 Installing Tailwind CSS and dependencies..."
npm install
fi
echo "🚀 Building Tailwind CSS..."
npx tailwindcss -i ./static/css/main.css -o ./static/css/output.css --minify
echo "Building Zola site..."
echo "🔨 Building Zola site..."
zola build
echo "✅ Build complete!"

View File

@ -1,4 +1,11 @@
#!/bin/bash
echo "🔍 Checking for Tailwind CSS..."
if ! [ -d "node_modules" ]; then
echo "📦 Installing Tailwind CSS and dependencies..."
npm install
fi
echo "Starting Tailwind CSS watcher & Zola live server..."
npx tailwindcss -i ./static/css/main.css -o ./static/css/output.css --watch & zola serve