-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathTaskfile.yaml
76 lines (66 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
76
version: "3"
dotenv: [".env.local"]
vars:
DEFAULT_BUILD_COMMIT_IDENTIFIER:
# The default length of the short hash is not gauranteed to be 8, typically 7 in fact.
# To match github `CI_COMMIT_SHORT_SHA` which is 8 characters long, we manually set `--short=8`.
sh: git rev-parse --short=8 HEAD 2>/dev/null || true
DEFAULT_BUILD_COMMIT_TIME:
sh: git log -1 --format=%cd --date=iso-strict 2>/dev/null || true
BUILD_COMMIT_IDENTIFIER: "{{ .BUILD_COMMIT_IDENTIFIER | default .DEFAULT_BUILD_COMMIT_IDENTIFIER }}"
BUILD_COMMIT_TIME: "{{ .BUILD_COMMIT_TIME | default .DEFAULT_BUILD_COMMIT_TIME }}"
BUILD_VERSION: "{{ .BUILD_VERSION | default .BUILD_COMMIT_IDENTIFIER }}"
includes:
frontend: task/frontend.yaml
backend: task/backend.yaml
yjs: task/yjs.yaml
e2e: task/e2e.yaml
container: task/container.yaml
deploy: task/deploy.yaml
proto: task/proto.yaml
docs: task/docs.yaml
python: task/python.yaml
sam: task/sam
tasks:
openapi:
cmds:
- rm -rf openapi/gen
- mkdir -p openapi/gen
- go run cmd/openapi-gen/*.go --output openapi/gen/nutsh.json
- task: backend:openapi
- task: frontend:openapi
proto:
cmds:
- rm -rf proto/gen
- rm -rf app/frontend/src/proto
- task: proto:schema
- task: proto:service
# move to the Python SDK folder
- task: python:proto
build:
cmds:
- rm -f build/nutsh
- task: yjs:build
- task: frontend:build
- task: docs:build
- task: backend:build
build-dev:
cmds:
- rm -f build/nutsh-dev
- task: yjs:build
- task: frontend:build-dev
- task: backend:build
- mv build/nutsh build/nutsh-dev
fmt:
cmds:
- task: frontend:fmt
- task: e2e:fmt
- go fmt ./...
lint:
cmds:
- task: frontend:lint
- task: e2e:lint
test:
cmds:
- task: backend:test
- task: frontend:test