-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathTaskfile.yml
More file actions
57 lines (49 loc) · 1.44 KB
/
Taskfile.yml
File metadata and controls
57 lines (49 loc) · 1.44 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
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
version: "3"
tasks:
default:
cmd: echo "Run the main Taskfile instead of this one."
api:gen:
desc: Generates API stubs
dir: ./proto
deps:
- task: deps:protoc
- task: deps:bufbuild
# NOTE(ramizpolic): This allows Taskfile YAML parsing to accept '{' as a starting command token.
# In translation, this is interpreted as a regular multi-line shell script.
cmds:
- "{{.BUFBUILD_BIN}} dep update"
- for:
matrix:
TEMPLATE: ["buf.gen.runtime.yaml", "buf.gen.yaml"]
cmd: |
{{.BUFBUILD_BIN}} generate --template {{.ITEM.TEMPLATE}}
- task: runtime:gen
api:clean:
desc: Clean generated API stubs
deps:
# Standard API
- api:clean:go
- api:clean:python
- api:clean:javascript
# Runtime API
- api:clean:runtime:go
api:clean:go:
desc: Clean generated golang API stubs
dir: ./api
cmds:
- find . \( -name "*.pb.go" \) -type f -delete
api:clean:runtime:go:
desc: Clean runtime generated golang API stubs
dir: ./runtime
cmds:
- find . \( -name "*.pb.go" \) -type f -delete
api:clean:python:
desc: Clean generated Python API stubs
dir: ./sdk/dir-py/agntcy
cmd: rm -drf ./dir
api:clean:javascript:
desc: Clean generated JS/TS API stubs
dir: ./sdk/dir-js/
cmd: rm -drf ./api