-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
109 lines (93 loc) · 2.27 KB
/
Taskfile.yml
File metadata and controls
109 lines (93 loc) · 2.27 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3'
# GOSUMDB=off go get -u github.com/smurfless1/pathlib
# git clone --separate-git-dir=$HOME/.tasks_repo ssh://git@sinus.smurfless.com:220/smurfless1/go-tasks.git $HOME/code-tmp
# rsync -a --ignore-existing ~/code-tmp/ ~/code/
# alias tgit='git --git-dir=$HOME/.tasks_repo/ --work-tree=$HOME/code'
# git --git-dir=$HOME/.tasks_repo/ --work-tree=$HOME/code config status.showUntrackedFiles no
# rm -rf ~/code-tmp/
includes:
brew: ~/code/tasks.brew.yml
tasks:
go-cli:
desc: go-cli
dir: '{{ .USER_WORKING_DIR }}'
deps:
- "brew:homebrew"
cmds:
- brew install go
status:
- go version
goreleaser:
desc: goreleaser
dir: '{{ .USER_WORKING_DIR }}'
deps:
- go-cli
cmds:
- brew install goreleaser/tap/goreleaser
status:
- goreleaser --version
gofumpt:
desc: gofumpt
deps:
- go-cli
cmds:
- go get -u mvdan.cc/gofumpt
status:
- gofumpt --version
setup:
desc: Set up the dev environment for local (on-workstation) use
dir: '{{ .USER_WORKING_DIR }}'
deps:
- goreleaser
- gofumpt
test:
desc: Run the tests (README instructions)
cmds:
- go test
clean:
desc: Clean
cmds:
- rm -rf ./vendor
build:
desc: Build
dir: '{{ .USER_WORKING_DIR }}'
deps:
- setup
- vendor
- fix
cmds:
- go build .
fix:
desc: auto-format/fix
cmds:
- gofumpt -w ./**/*.go
vendor:
desc: vendor
cmds:
- go mod vendor
install:
desc: Install
deps:
- build
cmds:
- cp -f ./mkbranch ~/go/bin/mkbranch
archetype-cli:
desc: install archetype cli
internal: true
cmds:
- go install github.com/rantav/go-archetype@latest
status:
- go-archetype --help
archetype-run:
desc: make a new project
cmds:
- go-archetype transform --transformations=_dev/transformations.yml --source=. --destination=../newcopy
deps:
- archetype-cli
archetype-testing:
desc: test creating a project
cmds:
- rm -rf tmp
- go-archetype transform --transformations=_dev/transformations.yml --source=. --destination=tmp -- --name bob --bin bob --author bob --owner bob --githubname bob --githubproject bob
deps:
- archetype-cli