-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
44 lines (39 loc) · 874 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
44
# https://taskfile.dev
version: "3"
env:
BINARY_NAME: cockpitserver
tasks:
dev_go:
dir: .
cmds:
- pkger
- go run -ldflags="-X 'main.BuildENV=development'" main.go
build:
dir: .
cmds:
- pkger
- task: build_web
- go build -o ./bin/${BINARY_NAME}.exe -ldflags="-X 'main.BuildENV=production'" main.go
- cp SimConnect.dll bin/SimConnect.dll
build_demo:
dir: .
cmds:
- pkger
- task: build_web
- go build -o ./bin/${BINARY_NAME}.exe -ldflags="-X 'main.BuildENV=production'" main.go
- cp SimConnect.dll bin/SimConnect.dll
dev_web:
dir: web
cmds:
- yarn dev
build_web:
dir: web
cmds:
- yarn build
sources:
- web/src/**/*
method: timestamp
run:
dir: bin
cmds:
- ${BINARY_NAME}.exe