-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
68 lines (55 loc) · 1.1 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
version: "3"
tasks:
## SHORTCUTS
api:
dotenv: [".env"]
dir: "./swapify_api"
cmds:
- "{{ .CLI_ARGS }}"
web:
dotenv: [".env"]
dir: "./swapify_web"
cmds:
- "{{ .CLI_ARGS }}"
mix:
cmds:
- task: api
vars: { CLI_ARGS: "mix {{ .CLI_ARGS }}" }
iex:
cmds:
- task: api
vars: { CLI_ARGS: "iex -S mix {{ .CLI_ARGS }}" }
pnpm:
cmds:
- task: web
vars: { CLI_ARGS: "pnpm {{ .CLI_ARGS }}" }
compose:
dir: "."
cmds:
- docker-compose -f ./docker-compose.yaml {{ .CLI_ARGS }}
## COMMANDS
docker:up:
cmds:
- task: compose
vars: { CLI_ARGS: 'up -d' }
docker:down:
cmds:
- task: compose
vars: { CLI_ARGS: 'down' }
api:dev:
cmds:
- task: api
vars: { CLI_ARGS: 'mix phx.server' }
api:test:
dotenv: [".env.test"]
dir: "./swapify_api"
cmds:
- "mix test {{ .CLI_ARGS }}"
web:dev:
cmds:
- task: web
vars: { CLI_ARGS: 'pnpm dev'}
run:playground:
cmds:
- task: mix
vars: { CLI_ARGS: 'run playground.exs' }