forked from ByteNadeem/Deanery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMAKEFILE
More file actions
43 lines (32 loc) · 1.26 KB
/
MAKEFILE
File metadata and controls
43 lines (32 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# MAKEFILE for Django project with Tailwind CSS integration (PostCSS CLI)
# Common commands for development and maintenance
.PHONY: help django migrate makemigrations collectstatic tw-dev tw-build npm-install clean
help:
@echo "Available commands":
@echo " make help" # Show this help message
@echo " make django" # Start Django dev server
@echo " make migrate" # Apply database migrations
@echo " make makemigrations" # Create new migrations
@echo " make collectstatic" # Collect static files
@echo " make tw-dev" # Run Tailwind watcher with PostCSS
@echo " make tw-build" # Build Tailwind CSS once (PostCSS)
@echo " make npm-install" # Install npm dependencies
@echo " make clean" # Remove pycache and static build files
django:
python manage.py runserver
migrate:
python manage.py migrate
makemigrations:
python manage.py makemigrations
collectstatic:
python manage.py collectstatic --noinput
dev:
cd theme/static_src && npm run dev
build:
cd theme/static_src && npm run build
npm-install:
cd theme/static_src && npm install
clean:
find . -name "*.pyc" -delete
find . -name "__pycache__" -type d -exec rm -rf {} +
rm -rf theme/static/css/dist/*