Skip to content

Commit ca192a1

Browse files
pauloxnetbmispelon
authored andcommitted
Ordered and fixed Makefile.
1 parent c457725 commit ca192a1

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

Makefile

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
STATIC = djangoproject/static
2-
SCSS = djangoproject/scss
3-
JQUERY_FLOT=djangoproject/static/js/lib/jquery-flot
1+
.PHONY: all ci clean collectstatics compile-scss compile-scss-debug install run test watch-scss
2+
43
APP_LIST ?= accounts aggregator blog contact dashboard djangoproject docs foundation fundraising legacy members releases svntogit tracdb
4+
JQUERY_FLOT=djangoproject/static/js/lib/jquery-flot
5+
SCSS = djangoproject/scss
6+
STATIC = djangoproject/static
57

6-
.PHONY: all ci clean collectstatics compile-scss compile-scss-debug install run test watch-scss
8+
ci: test
9+
@python -m coverage report
710

811
collectstatics: compile-scss
912
python -m manage collectstatic --noinput
1013

1114
compile-scss:
12-
pysassc $(SCSS)/output.scss $(STATIC)/css/output.css -s compressed
15+
python -m pysassc $(SCSS)/output.scss $(STATIC)/css/output.css --style=compressed
1316

1417
compile-scss-debug:
15-
pysassc $(SCSS)/output.scss $(STATIC)/css/output.css --sourcemap
16-
17-
watch-scss:
18-
watchmedo shell-command --patterns=*.scss --recursive --command="make compile-scss-debug" $(SCSS)
19-
20-
run:
21-
python -m manage runserver 0.0.0.0:8000
18+
python -m pysassc $(SCSS)/output.scss $(STATIC)/css/output.css --sourcemap
2219

2320
install:
24-
python -m pip install -r requirements/dev.txt
21+
python -m pip install --requirement requirements/dev.txt
2522
npm install
2623

27-
migrations-check:
28-
python -m manage makemigrations --check --dry-run
29-
30-
test: migrations-check
31-
@python -m coverage run --source=. -m manage test -v2 $(APP_LIST)
32-
33-
ci: test
34-
@python -m coverage report
35-
3624
isort:
3725
python -m isort $(APP_LIST)
3826

3927
isort-check:
40-
python -m isort -c $(APP_LIST)
28+
python -m isort --check $(APP_LIST)
29+
30+
$(JQUERY_FLOT)/:
31+
npm run bower install
4132

4233
$(JQUERY_FLOT)/jquery.flot.min.js: $(JQUERY_FLOT)
4334
cat $(JQUERY_FLOT)/jquery.flot.js $(JQUERY_FLOT)/jquery.flot.time.js > $(JQUERY_FLOT)/jquery.flot.concat.js
4435
yuicompressor $(JQUERY_FLOT)/jquery.flot.concat.js -o $(JQUERY_FLOT)/jquery.flot.min.js
4536

46-
$(JQUERY_FLOT)/:
47-
npm run bower install
37+
migrations-check:
38+
python -m manage makemigrations --check --dry-run
39+
40+
run:
41+
python -m manage runserver 0.0.0.0:8000
42+
43+
test: migrations-check
44+
@python -m coverage run --source=. --module manage test --verbosity 2 $(APP_LIST)
45+
46+
watch-scss:
47+
watchmedo shell-command --patterns=*.scss --recursive --command="make compile-scss-debug" $(SCSS)

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r common.txt
22
django-debug-toolbar==4.4.6
3+
isort==5.13.2
34
pre-commit~=3.5.0
45
watchdog==4.0.2

0 commit comments

Comments
 (0)