forked from django/djangoproject.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (33 loc) · 1.41 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
.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
JQUERY_FLOT=djangoproject/static/js/lib/jquery-flot
SCSS = djangoproject/scss
STATIC = djangoproject/static
ci: test
@python -m coverage report
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
npm install
isort:
python -m isort $(APP_LIST)
isort-check:
python -m isort --check $(APP_LIST)
$(JQUERY_FLOT)/:
npm run bower install
$(JQUERY_FLOT)/jquery.flot.min.js: $(JQUERY_FLOT)
cat $(JQUERY_FLOT)/jquery.flot.js $(JQUERY_FLOT)/jquery.flot.time.js > $(JQUERY_FLOT)/jquery.flot.concat.js
yuicompressor $(JQUERY_FLOT)/jquery.flot.concat.js -o $(JQUERY_FLOT)/jquery.flot.min.js
migrations-check:
python -m manage makemigrations --check --dry-run
run:
python -m manage runserver 0.0.0.0:8000
test: migrations-check
@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)