-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
executable file
·45 lines (40 loc) · 998 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
45
version: '3'
env:
ROOT_DIR: '{{.ROOT_DIR}}'
tasks:
copy:
dir: '{{.ROOT_DIR}}'
env:
TASK_CWD: '{{.cwd}}'
cmds:
- composer run:task -q -- copy {{q .src}} {{q .dest}} {{if .ignore}}{{q .ignore}}{{end}}
requires:
vars: [src, dest]
internal: true
remove:
dir: '{{.ROOT_DIR}}'
env:
TASK_CWD: '{{.cwd}}'
cmds:
- composer run:task -q -- remove {{q .src}} {{if .ignore}}{{q .ignore}}{{end}}
requires:
vars: [src]
internal: true
placeholder:
dir: '{{.ROOT_DIR}}'
env:
TASK_CWD: '{{.cwd}}'
cmds:
- composer run:task -q -- placeholder {{q .src}} {{q (toRawJson .replace)}} {{if .ignore}}{{q .ignore}}{{end}}
requires:
vars: [src, replace]
internal: true
zip:
dir: '{{.ROOT_DIR}}'
env:
TASK_CWD: '{{.cwd}}'
cmds:
- composer run:task -q -- zip {{q .src}} {{q .dest}} {{if .ignore}}{{q .ignore}}{{end}}
requires:
vars: [src, dest]
internal: true