-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
54 lines (46 loc) · 999 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
46
47
48
49
50
51
52
53
54
# Required powershell
version: "3"
tasks:
default:
- task: help
help:
silent: true
cmds:
- task -l
build:dev: npm run dev
build: npm run build
watch: watchexec --no-vcs-ignore --exts "js,json,css" cp main.js styles.css manifest.json $USERPROFILE/work/minerva/.obsidian/plugins/various-complements/
init:
desc: Install dependencies
cmds:
- npm install
dev:
desc: Build and copy files when they are updated.
deps:
- build:dev
- watch
test:
desc: Unit tests
cmds:
- npm test
ci:
desc: For CI
cmds:
- task: init
- task: build
- task: test
release:
desc: |
Build
∟ [Ex] task release VERSION=1.2.3
∟ [Ex] task release VERSION=1.2.3-beta
deps:
- ci
cmds:
- npm version {{.VERSION}}
- task: ci
- git push --tags
- git push
preconditions:
- sh: "[ {{.VERSION}} != '' ]"
msg: "VERSION is required."