-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
43 lines (37 loc) · 905 Bytes
/
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
---
version: "3"
tasks:
install:
desc: Install dependencies
cmds:
- npm install
- go install github.com/a-h/templ/cmd/templ@latest
- go get -u github.com/gofiber/fiber/v3
- go install github.com/gofiber/fiber/v2/middleware/adaptor
assets:
desc: Build tailwind
cmds:
- npx tailwindcss -i ./internal/assets/tailwind.css -o ./internal/assets/dist/styles.css --watch
generate:
desc: Generate build output
cmds:
- go generate ./...
# build:
# desc: build and run the app
# cmds: go run .
run:
desc: Run the app
deps:
- assets
- generate
cmds:
- gow run .
test:
desc: Run tests
cmds:
- go test ./...
new-schema:
cmds:
- go run -mod=mod entgo.io/ent/cmd/ent new {{ .CLI_ARGS }}
# User it like `task new-schema -- {Schema name}`
# schema must be uppercase