-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
66 lines (55 loc) · 1.09 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
# https://taskfile.dev
version: '3'
vars:
APP_NAME: remyx
BIN_DIR: ./bin
BIN: "{{.BIN_DIR}}/{{.APP_NAME}}{{exeExt}}"
tasks:
default:
desc: "Executes task 'release'"
deps:
- release
release:
desc: "Builds the backend and frontend ready for releasing."
deps:
- build
build:
desc: "Builds the backend binary and frontend assets."
cmds:
- task: build-fe
- task: build-be
build-be:
desc: "Builds the backend binary."
cmds:
- go build
-v
-o {{.BIN}}
./cmd/{{.APP_NAME}}/main.go
build-fe:
desc: "Builds the frontend."
dir: "web"
cmds:
- yarn run build
run:
desc: "Run backend."
cmds:
- go run ./cmd/{{.APP_NAME}}/main.go
run-fe:
desc: "Run the frontend."
dir: "web"
env:
VITE_SERVER_ADDRESS: http://localhost:8081
cmds:
- yarn run dev
migrate-up:
dir: migrations/postgres
dotenv:
- "../../.env"
cmds:
- goose up
migrate-down:
dir: migrations/postgres
dotenv:
- "../../.env"
cmds:
- goose down