-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
145 lines (121 loc) · 2.8 KB
/
Copy pathTaskfile.yml
File metadata and controls
145 lines (121 loc) · 2.8 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: '3'
vars:
MVNW: '{{if eq OS "windows"}}cmd /c mvnw.cmd{{else}}./mvnw{{end}}'
tasks:
default:
desc: List available tasks
cmds:
- task --list
silent: true
install:
desc: Install npm dependencies for the client and email templates
deps:
- client:install
- emails:install
verify:
desc: Run the full backend Maven verification, including client build and Playwright integration tests
dir: server
cmds:
- '{{.MVNW}} verify'
verify:no-it:
desc: Run backend verification without integration tests
dir: server
cmds:
- '{{.MVNW}} verify -DskipITs'
test:
desc: Run backend unit tests
dir: server
cmds:
- '{{.MVNW}} test'
build:
desc: Build the client and backend jar
deps:
- client:build
dir: server
cmds:
- '{{.MVNW}} package -DskipTests'
run:
desc: Run the Spring Boot backend
deps:
- db:up
dir: server
cmds:
- '{{.MVNW}} spring-boot:run'
clean:
desc: Clean backend build output
dir: server
cmds:
- '{{.MVNW}} clean'
server:format:
desc: Format backend Java sources with Spring Java Format
dir: server
cmds:
- '{{.MVNW}} spring-javaformat:apply'
db:up:
desc: Start the local PostgreSQL database
dir: server
cmds:
- docker compose up -d
db:down:
desc: Stop the local PostgreSQL database
dir: server
cmds:
- docker compose down
db:logs:
desc: Follow local PostgreSQL logs
dir: server
cmds:
- docker compose logs -f otodo_db
db:reset:
desc: Recreate the local PostgreSQL database and remove its volumes
dir: server
cmds:
- docker compose down -v
- docker compose up -d
jooq:generate:
desc: Generate jOOQ sources from the local PostgreSQL database
deps:
- db:up
dir: server
cmds:
- '{{.MVNW}} generate-sources -Pjooq-db'
client:install:
desc: Install client npm dependencies
dir: client
cmds:
- npm install
client:start:
desc: Start the Angular/Ionic development server
dir: client
cmds:
- npm start
client:build:
desc: Build the Angular/Ionic client
dir: client
cmds:
- npm run build
client:lint:
desc: Lint the Angular/Ionic client
dir: client
cmds:
- npm run lint
client:format:
desc: Format the Angular/Ionic client
dir: client
cmds:
- npm run format
client:serve-dist:
desc: Serve the built client and proxy backend requests
dir: client
cmds:
- npm run serve-dist
emails:install:
desc: Install email template npm dependencies
dir: emails
cmds:
- npm install
emails:build:
desc: Compile MJML email templates into backend resources
dir: emails
cmds:
- npm run build