-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 850 Bytes
/
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
venv:
if [ ! -d "$(DIR1)" ]; then \
python3 -m venv .venv; \
fi
freeze:
.venv/bin/pip freeze > requirements.txt
install_pip:
.venv/bin/pip install -r requirements.txt
install_npm:
npm install
install:
.venv/bin/pip install -r requirements.txt
npm install
openapi:
.venv/bin/python backend/gen_openapi.py openapi.json
openapi-generator generate -i ./openapi.json -g typescript-fetch -o ./frontend/packages/api
pretty:
npx nx run-many -t prettier:fix
.venv/bin/black backend
pytest:
.venv/bin/pytest
test: pytest
clean: openapi pretty test
storybook:
npx nx storybook tasks-client
apk:
frontend/tasks-client/android/gradlew -p frontend/tasks-client/android assembleDebug
run:
./cxy.sh -fastapi ".venv/bin/python backend/main.py" -client "npx nx dev tasks-client"
api_docker_image:
docker build -f images/api.Dockerfile .