From 75fd696d0b38c1581d6a9ab958cc72b3b2e96aac Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Wed, 19 Mar 2025 15:24:37 +0200 Subject: [PATCH] add sasha script --- build.sh | 15 +++++++++++++++ start.sh | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 build.sh create mode 100644 start.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..102515c --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +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..." +zola build + +echo "✅ Build complete!" diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..650d3aa --- /dev/null +++ b/start.sh @@ -0,0 +1,13 @@ +#!/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 + +echo "🚀 Development server running!"