Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions MAKEFILE
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,40 @@
.PHONY: help django migrate makemigrations collectstatic tw-dev tw-build npm-install clean

help:
@echo "Available commands":

@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
@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
python manage.py runserver

migrate:
python manage.py migrate
python manage.py migrate

makemigrations:
python manage.py makemigrations
python manage.py makemigrations

collectstatic:
python manage.py collectstatic --noinput
python manage.py collectstatic --noinput

tw-dev:
cd theme/static_src && npm run dev
cd theme/static_src && npm run dev

tw-build:
cd theme/static_src && npm run build
cd theme/static_src && npm run build

npm-install:
cd theme/static_src && 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/*
find . -name "*.pyc" -delete
find . -name "__pycache__" -type d -exec rm -rf {} +
rm -rf theme/static/css/dist/*