-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
71 lines (53 loc) · 1.65 KB
/
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
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
version: "3"
#
# sub namespace: https://taskfile.dev/#/usage?id=including-other-taskfiles
#
#includes:
# rs:
# taskfile: ./iDev/coding/rs/
# dir: ./iDev/coding/rs/
#
# global vars: https://taskfile.dev/#/usage?id=variables
#
vars:
VAR1: "some-var"
# global env:
env:
ENV1: testing
# env file:
dotenv:
- .env
################################################################################################
tasks:
default:
cmds:
- task: init
init:
cmds:
- cp .env.local .env
- task: install
install:
cmds:
- brew install cookiecutter
- brew install go-task/tap/go-task
################################################################################
# rust monorepo: [email protected]:better-rs/rs-template.git
new:mono:
cmds:
- cookiecutter https://github.com/better-rs/rs-template.git --directory="mono-repo/rs"
new:lib:
cmds:
- cookiecutter https://github.com/better-rs/rs-template.git --directory="library-repo/rs"
# cli app:
new:cli:
cmds:
- cookiecutter https://github.com/better-rs/rs-template.git --directory="app-repo/cli"
# web server app:
new:app:
cmds:
- cookiecutter https://github.com/better-rs/rs-template.git --directory="app-repo/server"
################################################################################
push:
cmds:
- git push origin main --tags
- repo_url=`git remote -v | grep push | awk -F ":" '{print $2}' | awk -F ".git" '{print "https://github.com/"$1}'`; open $repo_url