-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
67 lines (64 loc) · 1.33 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
# https://taskfile.dev
version: '2'
vars:
PRETTIER_GLOB: '**/*.{js,jsx,ts,tsx,css,less,scss,vue,json,gql,md,yml,yaml}'
tasks:
default:
cmds:
- task: dependencies
- task: default:all
- task: build
default:all:
deps: [format:check, lint, compile]
dependencies:
cmds:
- yarn
start:
deps: [dependencies]
cmds:
- yarn run parcel src/index.html
format:
desc: ' '
cmds:
- npx prettier --write --list-different "{{.PRETTIER_GLOB}}"
format:check:
desc: ' '
cmds:
- npx prettier --list-different "{{.PRETTIER_GLOB}}"
lint:
desc: ' '
cmds:
- hadolint Dockerfile
build:
desc: ' '
cmds:
- yarn run parcel build src/index.html --out-dir out
compile:
cmds:
- yarn run tsc -p .
compile:watch:
cmds:
- yarn run tsc -p . --watch
hook:format:
desc: ' '
cmds:
- |-
npx prettier --list-different "{{.PRETTIER_GLOB}}"
prerequisites:
deps:
- prerequisites:node
- prerequisites:yarn
- prerequisites:lefthook
- prerequisites:hadolint
prerequisites:node:
status:
- command -v node
prerequisites:yarn:
status:
- command -v yarn
prerequisites:lefthook:
status:
- command -v lefthook
prerequisites:hadolint:
status:
- command -v hadolint