forked from repleo/bounca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (41 loc) · 1.24 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
58
PYTHON_FOLDERS = api bounca certificate_engine vuetifyforms x509_pki
LOCAL_SERVER_PORT ?= 8000
default:
@echo "No default target!"
install: backend frontend
backend:
@# Install Python dependencies
pip install -q --requirement requirements.txt
frontend: frontend_dependencies frontend_collect
frontend_dependencies:
@hash npm 2>/dev/null || (echo 'Command "npm" not found. Please make sure NodeJS is installed.' && exit 1)
@# Install Node dependencies specified in package.json
npm install
frontend_collect:
python manage.py collectstatic --link --noinput
runserver:
python manage.py runserver 0.0.0.0:$(LOCAL_SERVER_PORT)
quality: flake8 npmlint isort_check
isort_check:
find $(PYTHON_FOLDERS) -path '**/migrations' -prune -o -name '*.py' -print | xargs isort -c
isort_fix:
find $(PYTHON_FOLDERS) -path '**/migrations' -prune -o -name '*.py' -print | xargs isort
flake8:
flake8 $(PYTHON_FOLDERS)
autopep8:
autopep8 --in-place --aggressive --aggressive -r $(PYTHON_FOLDERS)
npmlint:
npm run -s lint
eslint:
npm run -s eslint
sass-lint:
npm run -s sass-lint
gitclean:
git clean \
--exclude=*.sublime-* \
--exclude=.idea \
--exclude=etc/conf/services.yaml \
--exclude=*/settings_local.py \
--interactive \
-dx
# --dry-run \