-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
48 lines (47 loc) · 1.06 KB
/
Taskfile.yaml
File metadata and controls
48 lines (47 loc) · 1.06 KB
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
---
# https://taskfile.dev
version: "3"
tasks:
css:
dir: ./internal
desc: Build the assets
cmds:
- tailwindcss.exe -i ./assets/css/tailwind.css -o ./assets/css/input.css
css-watch:
dir: ./internal
desc: Build the assets
cmds:
- tailwindcss.exe -i ./assets/css/tailwind.css -o ./assets/css/input.css --watch
gen:
desc: Generate templ templates
cmds:
- templ generate
winres:
desc: Make windows manifest for icon
cmds:
- go-winres make
assets:
desc: Build assets for project
deps: [css, gen]
run:
desc: Run the application
deps: [css, gen]
env:
TIMETRACKER_DEV: 1
cmds:
- go run .
build:
desc: Run the application
deps: [css, gen, winres]
cmds:
- go build -ldflags "-w -s -H=windowsgui" .
build-debug:
desc: Run the application
deps: [css, gen, winres]
cmds:
- go build -ldflags "-H=windowsgui" .
release:
desc: Tag commit and push to remote
cmds:
- git tag {{.CLI_ARGS}}
- git push origin tag {{.CLI_ARGS}}