-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (51 loc) · 1.7 KB
/
Copy pathMakefile
File metadata and controls
66 lines (51 loc) · 1.7 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@:
@ echo "No default task"
shell:
@ poetry shell
install:
poetry install
npm ci
release:
make front.build
rm -f ./dist/*
poetry build
# Frontend (JS, webpack, React)
front.watch:
npx webpack --mode=development --watch --progress
front.build:
npx webpack --mode=production
front.check-types:
npx tsc --noEmit
front.profile:
mkdir -p ./build
npx webpack --mode=production --profile --json > build/stats.json && npx webpack-bundle-analyzer build/stats.json
front.gzip:
cd django_forms_plus/static/django_forms_plus; gzip -1 -k -c dfp.build.js > 1.gz
cd django_forms_plus/static/django_forms_plus; gzip -2 -k -c dfp.build.js > 2.gz
cd django_forms_plus/static/django_forms_plus; gzip -3 -k -c dfp.build.js > 3.gz
cd django_forms_plus/static/django_forms_plus; gzip -4 -k -c dfp.build.js > 4.gz
cd django_forms_plus/static/django_forms_plus; gzip -5 -k -c dfp.build.js > 5.gz
cd django_forms_plus/static/django_forms_plus; gzip -6 -k -c dfp.build.js > 6.gz
cd django_forms_plus/static/django_forms_plus; gzip -7 -k -c dfp.build.js > 7.gz
cd django_forms_plus/static/django_forms_plus; gzip -8 -k -c dfp.build.js > 8.gz
cd django_forms_plus/static/django_forms_plus; gzip -9 -k -c dfp.build.js > 9.gz
# Backend (Python, Django)
backend.lint:
ruff check .
backend.run:
cd dev_site && ./manage.py runserver localhost:8001
# Tests
test:
@ pytest
test-debug:
@ pytest --headed --slowmo=1500 # "slowmo" is in milliseconds
# Docs
# see: https://www.mkdocs.org/user-guide/cli/#mkdocs-serve
docs.gen-css:
python docs/.build/build-css.py
docs.serve:
make docs.gen-css
mkdocs serve --dev-addr=127.0.0.1:8002
docs.build:
make docs.gen-css
mkdocs build --clean --strict --theme=mkdocs --site-dir=./build/docs