-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.dist.yaml
84 lines (68 loc) · 1.56 KB
/
Taskfile.dist.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
77
78
79
80
81
82
83
84
version: '3'
output: prefixed
tasks:
setup-local:
cmds:
- task: vendor
- task -d db setup-local
- task -d backend setup-local
- task -d app setup-local
vendor:
deps:
- app:vendor
- backend:vendor
dev:
deps:
- app:dev
- backend:dev
format:
deps:
- app:format
- backend:format
lint:
deps:
- app:lint
- backend:lint
build:
deps:
- app:build
deploy:production:
cmds:
- task: vendor
- task: backend:graphql:export
- task: app:build
- cp -r app/dist/* backend/timeboxx/public
- task -d environments/production deploy
#########################
# Docker
#########################
docker:dev:
deps:
- docker:db:dev
- dev
docker:db:dev:
deps:
- task: docker:container
vars:
CONTAINER: db
docker:container:
internal: true
cmds:
- docker-compose stop {{ .CONTAINER }}
- docker-compose up {{ .CONTAINER }}
#########################
# ./app
#########################
app:vendor: task -d app vendor
app:dev: task -d app dev
app:format: task -d app format
app:lint: task -d app lint
app:build: task -d app build
#########################
# ./backend
#########################
backend:vendor: task -d backend vendor
backend:dev: task -d backend dev
backend:format: task -d backend format
backend:lint: task -d backend lint
backend:graphql:export: task -d backend graphql:export