From d80659646f886264bd318a2193e4c6ff3e911f1f Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Tue, 2 Dec 2025 19:40:13 +0100 Subject: [PATCH] chore: update gitignore and Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update .gitignore with node_modules and build artifacts - Update Makefile with new targets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitignore | 7 +++++++ Makefile | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f11e96b4..93a877b3 100644 --- a/.gitignore +++ b/.gitignore @@ -164,3 +164,10 @@ credentials/ # Note: Keep alembic/versions/ tracked for migrations # alembic/versions/*.pyc is already covered by __pycache__ .aider* + +# Node.js / npm +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +package-lock.json diff --git a/Makefile b/Makefile index 66667723..7eb0686a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Wizamart Multi-Tenant E-Commerce Platform Makefile # Cross-platform compatible (Windows & Linux) -.PHONY: install install-dev install-docs install-all dev test test-coverage lint format check docker-build docker-up docker-down clean help +.PHONY: install install-dev install-docs install-all dev test test-coverage lint format check docker-build docker-up docker-down clean help npm-install tailwind-dev tailwind-build # Detect OS ifeq ($(OS),Windows_NT) @@ -255,6 +255,31 @@ docs-check: @echo "Checking documentation for issues..." $(PYTHON) -m mkdocs build --strict --verbose +# ============================================================================= +# FRONTEND / TAILWIND CSS +# ============================================================================= + +npm-install: + @echo "Installing npm dependencies..." + npm install + @echo "npm dependencies installed" + +tailwind-dev: + @echo "Building Tailwind CSS (development - all classes)..." + npm run tailwind:admin + npm run tailwind:vendor + @echo "Tailwind CSS built (admin + vendor)" + +tailwind-build: + @echo "Building Tailwind CSS (production - purged)..." + npm run build + @echo "Tailwind CSS built for production" + +tailwind-watch: + @echo "Watching Tailwind CSS for changes..." + @echo "Note: This watches admin CSS only. Run in separate terminal." + npx tailwindcss build static/admin/css/tailwind.css -o static/admin/css/tailwind.output.css --watch + # ============================================================================= # DOCKER # ============================================================================= @@ -371,6 +396,12 @@ help: @echo " docs-serve - Start documentation server" @echo " docs-build - Build documentation" @echo "" + @echo "=== FRONTEND / TAILWIND ===" + @echo " npm-install - Install npm dependencies" + @echo " tailwind-dev - Build Tailwind CSS (development)" + @echo " tailwind-build - Build Tailwind CSS (production)" + @echo " tailwind-watch - Watch and rebuild on changes" + @echo "" @echo "=== DOCKER ===" @echo " docker-build - Build Docker containers" @echo " docker-up - Start Docker containers"