-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTaskfile.yml
245 lines (199 loc) · 5.12 KB
/
Taskfile.yml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
version: "3"
tasks:
"protoc:gen:web":
internal: true
cmds:
- docker run --rm -v {{.TASKFILE_DIR}}/proto:/proto -v {{.OUTPUT_DIR}}:/out namely/protoc-all -d /proto -o /out -l web
"core:build":
dir: core
env:
RUST_LOG: warn,lute=debug,lute-postgres-connector=debug
cmds:
- cargo build
"core:run":
dir: core
env:
RUST_LOG: warn,lute=info,lute-postgres-connector=debug
cmds:
- cargo run --release
"core:test":
dir: core
cmds:
- cargo test
"core:lint":
dir: core
cmds:
- cargo clippy
"core:lint:fix":
dir: core
env:
RUST_LOG: warn,lute=debug,lute-postgres-connector=debug
cmds:
- cargo clippy --fix --allow-dirty
"core:fmt":
dir: core
cmds:
- cargo fmt
"core:release":
dir: core
env:
RUST_LOG: warn,lute=info
cmds:
- cargo build --release
"web:proto":
cmds:
- task: "protoc:gen:web"
vars:
OUTPUT_DIR: "{{.TASKFILE_DIR}}/web/src/proto"
"web:run":
deps: ["web:proto"]
dir: web
cmds:
- npm start
"web:build":
deps: ["web:proto"]
dir: web
cmds:
- rm -rf ./dist
- npm i
- npm run build
"web:fmt":
dir: web
cmds:
- npm run fmt
"extension:proto":
cmds:
- task: "protoc:gen:web"
vars:
OUTPUT_DIR: "{{.TASKFILE_DIR}}/extension/src/proto"
"extension:build":
deps: ["extension:proto"]
dir: extension
cmds:
- rm -rf ./dist
- npm i
- npm run build
"proto":
cmds:
- task: "web:proto"
- task: "extension:proto"
- task: "discord-connector:proto"
- task: "mandolin:proto"
- task: "graph:proto"
- task: "scripts:proto"
"build":
cmds:
- task: "core:build"
- task: "web:build"
- task: "extension:build"
"fmt":
cmds:
- task: "core:fmt"
- task: "web:fmt"
"test":
cmds:
- task: "core:test"
"redis:up":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml up redis -d
"core:up":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml up core -d
"core:up:build":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml up core -d --build
"core:run-with-redis":
cmds:
- task: "redis:up"
- task: "core:run"
"core:test:clean_html_resources":
dir: scripts
cmds:
- npm run clean_html_resources ../core/resources/test
"postgres:up":
cmds:
- docker-compose -f ./infra/dev/postgres.docker-compose.yml up -d
"pg-connector:run":
dir: connector/postgres
cmds:
- cargo run -- --postgres-url postgres://lute:password@localhost:25432/lute --subscriber-id dev-pg-connector --stream-id all
"pg-connector:up":
cmds:
- task: "postgres:up"
- task: "pg-connector:run"
"memgraph:up":
cmds:
- docker-compose -f ./infra/dev/memgraph.docker-compose.yml up -d
"bolt-connector:run":
dir: connector/bolt
cmds:
- cargo run -- --subscriber-id dev-mg-connector --stream-id parser --db-name memgraph
"bolt-connector:up":
cmds:
- task: "memgraph:up"
- task: "bolt-connector:run"
"discord-connector:run":
dir: connector/discord
cmds:
- npm run dev
"discord-connector:proto":
dir: connector/discord
cmds:
- protoc -I=../../proto --ts_out=./src/proto --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names lute.proto
"discord-connector:up":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml up discord-bot -d
"discord-connector:up:build":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml up discord-bot -d --build --force-recreate
"discord-connector:down":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml down discord-bot -v
"elasticsearch:up":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml up kibana -d
"mandolin:run":
dir: connector/mandolin
dotenv: [".env"]
cmds:
- mix phx.server
"mandolin:fmt":
dir: connector/mandolin
cmds:
- mix format "lib/**/*.{ex,exs}"
"mandolin:proto":
dir: connector/mandolin
cmds:
- protoc -I=../../proto --elixir_out=plugins=grpc:./lib/ lute.proto
"neo4j:up":
cmds:
- docker-compose -f ./infra/dev/docker-compose.yml up neo4j -d
"graph:run":
dir: connector/graph
cmds:
- poetry install
- poetry run graph
"graph:fmt":
dir: connector/graph
cmds:
- poetry run ruff format
"graph:lint":
dir: connector/graph
cmds:
- poetry run ruff check --fix
"graph:proto":
dir: connector/graph
cmds:
- poetry run python -m grpc_tools.protoc -Igraph/proto=../../proto --python_out=. --pyi_out=. --grpc_python_out=. ../../proto/lute.proto
"graph:notebooks":
dir: connector/graph
cmds:
- poetry run jupyter lab
"scripts:proto":
dir: scripts
cmds:
- protoc -I=../proto --ts_out=./src/proto --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names lute.proto
"scripts:crawl_charts":
dir: scripts
cmds:
- npm run crawl_charts