-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
57 lines (46 loc) · 1.27 KB
/
Makefile
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Loading environment variables
ifneq (,$(wildcard ./.env))
include .env
export LOCAL_PORT
endif
# Setting defaults for env variables
ifdef LOCAL_PORT
local_port := $(LOCAL_PORT)
else
local_port := 8000
endif
# Commands
checkstyle:
poetry run pre-commit run --all-files
collectstatic:
poetry run python manage.py collectstatic --noinput
init:
poetry install
poetry run pre-commit install
poetry run python manage.py migrate
make collectstatic
poetry run python manage.py import_sample_data
poetry shell
.PHONY: messages
messages:
poetry run django-admin makemessages -l fr --ignore=manage.py,docs/*
.PHONY: compilemessages
compilemessages:
poetry run django-admin compilemessages
runserver:
poetry run python manage.py runserver $(local_port)
test:
poetry run python manage.py test
update_dsfr:
bash scripts/download_latest.sh
poetry run python manage.py trim_dist
poetry run python manage.py integrity_checksums
poetry run python manage.py make_icon_picker_files
make collectstatic
static_server:
python -m http.server 1$(local_port) -d docs/
export_static:
poetry run python manage.py migrate
poetry run python manage.py import_sample_data
poetry run python manage.py distill-local docs --force --collectstatic
poetry run python manage.py export_json