forked from django/djangoproject.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 1.24 KB
/
Makefile
File metadata and controls
42 lines (30 loc) · 1.24 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
.PHONY: all ci clean collectstatics compile-scss compile-scss-debug install run test watch-scss
APP_LIST ?= accounts aggregator blog contact dashboard djangoproject docs foundation fundraising legacy members releases svntogit tracdb
SCSS = djangoproject/scss
STATIC = djangoproject/static
ci: compilemessages test
@python -m coverage report
compilemessages:
python -m manage compilemessages
collectstatics: compile-scss
python -m manage collectstatic --noinput
compile-scss:
python -m pysassc $(SCSS)/output.scss $(STATIC)/css/output.css --style=compressed
compile-scss-debug:
python -m pysassc $(SCSS)/output.scss $(STATIC)/css/output.css --sourcemap
install:
python -m pip install --requirement requirements/dev.txt
migrations-check:
python -m manage makemigrations --check --dry-run
run:
python -m manage runserver 0.0.0.0:8000
test:
@python -m coverage run --source=. --module manage test --verbosity 2 $(APP_LIST)
watch-scss:
watchmedo shell-command --patterns=*.scss --recursive --command="make compile-scss-debug" $(SCSS)
reset-local-db:
python -m manage flush --no-input
python -m manage loaddata dev_sites
python -m manage loaddata doc_releases
python -m manage loaddata dashboard_production_metrics
python -m manage update_metrics