-
Notifications
You must be signed in to change notification settings - Fork 4
/
Taskfile.yml
43 lines (35 loc) · 724 Bytes
/
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
version: '3'
tasks:
build:
cmds:
- task: frontend
- task: backend
prepare:
deps: [prepare-backend, prepare-frontend]
prepare-backend:
dir: ./backend
cmds:
- go install -v github.com/searKing/golang/tools/go-enum
prepare-frontend:
dir: ./frontend
cmds:
- npm install
frontend:
cmds:
- cd ./frontend && npm run build
- cmd: rm -r ./backend/resources
ignore_error: true
- cp -r ./frontend/dist ./backend/resources
backend:
dir: ./backend
cmds:
- go generate -v -x ./...
- go build .
backend-test:
dir: ./backend
cmds:
- go test ./...
test:
dir: ./backend
cmds:
- go test ./...