|
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 | + |
4 | 3 | 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 |
5 | 7 |
|
6 |
| -.PHONY: all ci clean collectstatics compile-scss compile-scss-debug install run test watch-scss |
| 8 | +ci: test |
| 9 | + @python -m coverage report |
7 | 10 |
|
8 | 11 | collectstatics: compile-scss
|
9 | 12 | python -m manage collectstatic --noinput
|
10 | 13 |
|
11 | 14 | 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 |
13 | 16 |
|
14 | 17 | 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 |
22 | 19 |
|
23 | 20 | install:
|
24 |
| - python -m pip install -r requirements/dev.txt |
| 21 | + python -m pip install --requirement requirements/dev.txt |
25 | 22 | npm install
|
26 | 23 |
|
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 |
| - |
36 | 24 | isort:
|
37 | 25 | python -m isort $(APP_LIST)
|
38 | 26 |
|
39 | 27 | 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 |
41 | 32 |
|
42 | 33 | $(JQUERY_FLOT)/jquery.flot.min.js: $(JQUERY_FLOT)
|
43 | 34 | cat $(JQUERY_FLOT)/jquery.flot.js $(JQUERY_FLOT)/jquery.flot.time.js > $(JQUERY_FLOT)/jquery.flot.concat.js
|
44 | 35 | yuicompressor $(JQUERY_FLOT)/jquery.flot.concat.js -o $(JQUERY_FLOT)/jquery.flot.min.js
|
45 | 36 |
|
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) |
0 commit comments