-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
99 lines (85 loc) · 1.91 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
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
# https://taskfile.dev
version: '3'
env:
VALE_CONFIG_PATH: .vale.ini
vars: {}
tasks:
default:
desc: If running only "task" print all available tasks
cmd: task --list-all
silent: true
setup:
desc: Install everything needed
run: once
deps: [brew]
cmds:
- pre-commit install
- task: vale-sync
brew:
desc: Install tool dependencies with brew
internal: true
run: once
platforms: [darwin, linux]
cmd: brew bundle --no-lock --verbose
status:
- brew bundle check --verbose
vale-sync:
desc: install tool-internal dependencies
internal: true
run: once
deps: [brew]
cmd: vale sync
status:
- test -d .github/styles/Google
generate:
desc: Generates documentation with antora
aliases: [g, gen]
deps:
- npm-install
env:
ANTORA_LOG_FAILURE_LEVEL: warn
ANTORA_LOG_LEVEL: info
cmd: >-
npx antora
--asciidoc-sourcemap
--stacktrace
--fetch
--clean
antora-playbook.yml
open:
desc: Open the documentation via browser (also see serve)
aliases: [o]
cmd: open build/site/index.html
serve:
desc: Serves the static files with a local http server (also see open)
aliases: [s]
dir: build/site
cmd: npx http-server -o .
npm-install:
desc: Install npm packages
internal: true
preconditions:
- node -v | grep -E "^$(cat .nvmrc)"
cmd: npm install
vale-lint:
desc: check adoc-files
aliases: [vl, lint]
deps: [setup]
run: once
cmds:
- find . -name "*.adoc" -not -path "./node_modules/*" | sort | xargs vale --no-wrap
pre-commit:
desc: run pre-commit checks
aliases: [pc]
deps: [setup]
run: once
cmds:
- pre-commit run --all-files
validate:
desc: run all quality checks
aliases: [v]
deps: [setup]
run: once
cmds:
- task: vale-lint
- task: pre-commit