forked from eduardolat/pgbackweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskfile.yaml
85 lines (66 loc) · 1.33 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
77
78
79
80
81
82
83
84
85
version: "3"
dotenv: [".env"]
tasks:
on:
cmds:
- docker compose up -d --build
- docker compose exec app /bin/bash
off:
cmd: docker compose down
dev:
cmd: air -c .air.toml
build:
deps:
- clean
- gen-db
- gen-css
cmds:
- task fmt
- go build -o ./dist/app ./cmd/app/.
- go build -o ./dist/change-password ./cmd/changepw/.
serve:
cmd: ./dist/app
migrate-serve:
cmds:
- task goose -- up
- task serve
run:
cmds:
- task build
- task serve
goose:
cmd: eval $(go run ./cmd/goose/. {{.CLI_ARGS}})
gen-db:
cmd: sqlc generate
reset-db:
cmd: go run ./cmd/resetdb/.
gen-css:
cmd: >
npm run tailwindcss --
--config ./tailwind.config.js
--input ./internal/view/static/css/tailwind.css
--output ./internal/view/static/css/style.css --minify
tidy:
cmd: go mod tidy
fmt:
cmds:
- go fmt ./...
- npm run standard
lint-only:
cmds:
- task gen-db
- golangci-lint run ./...
test-only:
cmds:
- task gen-db
- go test ./...
test:
cmds:
- task lint-only
- task test-only
clean:
cmds:
- rm -rf ./tmp
- rm -rf ./dist
fixperms: # Fixes the permissions of the files in the project
cmd: ./scripts/fixperms.sh