-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
75 lines (63 loc) · 1.89 KB
/
Taskfile.yaml
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
67
68
69
70
71
72
73
74
75
version: 3
tasks:
default:
desc: Display available tasks
cmds:
- task -l
generate:
dir: client
cmds:
- curl http://localhost:5715/openapi.json | jq > ../docs/oas/openapi.json
- npx orval --config ./orval.config.cjs
- npx prettier . --write
- npx eslint . --fix
desc: Generate the client
docs:
dir: docs
cmds:
- npm run docs:dev
build-docs:
dir: docs
cmds:
- npm run docs:build
# - poetry run mkdocs serve
fmt-client:
dir: client
cmds:
- npx prettier . --write
- npx eslint . --fix
desc: Format the client
fmt:
cmds:
- poetry run ruff format .
- npx prettier . --write
- npx eslint . --fix
desc: Format common code
tbls-docs:
cmds:
- tbls doc -c .tbls.yml -f
desc: Generate DB Schema Docs
export-server:
cmds:
- poetry export -f requirements.txt --output ./backend/server/requirements.txt --without-hashes --with=server,dev
desc: Export server requirements
export-qcflow:
cmds:
- poetry export -f requirements.txt --output ./backend/qcflow/requirements.txt --without-hashes --with=qcflow,dev
desc: Export qcflow requirements
export-all:
cmds:
- poetry export -f requirements.txt --output ./.devcontainer/requirements.txt --without-hashes --with=server,qcflow,dev
desc: Export all requirements
build-server:
cmds:
- poetry export -f requirements.txt --output ./backend/server/requirements.txt --without-hashes --with=server,dev
- docker compose build --no-cache server
build-qcflow:
cmds:
- poetry export -f requirements.txt --output qcflow.requirements.txt --without-hashes --with=qcflow,dev
- docker compose build --no-cache qcflow
requirements:
cmds:
- poetry export -f requirements.txt --output requirements.txt --without-hashes
desc: Generate requirements.txt