1+ .PHONY : help test clean collectstatic migrations ui-install collectstatic-ui clean-static collect dev venv-activate activate export format bootstrap
2+
3+ help :
4+ @echo " test - run tests"
5+ @echo " clean - remove all .pyc files"
6+ @echo " collectstatic - collect static files"
7+ @echo " migrations - run migrations"
8+ @echo " ui-install - install ui dependencies"
9+ @echo " collectstatic-ui - collect static files from ui"
10+ @echo " clean-static - remove static files"
11+ @echo " collect - clean-static and collectstatic-ui"
12+ @echo " dev - run server"
13+ @echo " venv-activate - create virtual environment"
14+ @echo " activate - activate virtual environment"
15+ @echo " export - export requirements.txt"
16+ @echo " format - format code"
17+ @echo " bootstrap - install all dependencies"
18+
19+ test :
20+ python src/manage.py test
21+
22+ clean :
23+ find . -name " *.pyc" -exec rm -rf {} \;
24+
25+ collectstatic :
26+ python src/manage.py collectstatic --noinput --clear
27+
28+ migrations :
29+ python src/manage.py makemigrations
30+ python src/manage.py migrate --noinput
31+
32+ ui-install :
33+ pnpm install root=src/ui
34+
35+ collectstatic-ui :
36+ cd src/ui && pnpm collectstatic
37+
38+ clean-static :
39+ rm -rf static-cdn-local
40+ rm -rf src/staticfiles/js
41+ rm -rf src/staticfiles/css
42+
43+ collect : clean-static collectstatic-ui
44+
45+ dev :
46+ python src/manage.py runserver
47+
48+ venv-activate :
49+ python3.10 -m venv .
50+ source bin/activate
51+
52+ activate :
53+ source bin/activate
54+
55+ export :
56+ bash src/commands/export.sh
57+
58+ format :
59+ bash src/commands/format.sh
60+ cd src/ui && pnpm format
61+
62+ bootstrap :
63+ cd src && poetry install
64+ cd src/ui && pnpm install
0 commit comments