-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
34 lines (30 loc) · 796 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
version: "3"
tasks:
markdown:check-links:
desc: Check for broken links
deps:
- task: npm:install-deps
cmds:
- |
npx --package=markdown-link-check --call='
STATUS=0
for file in \
$(find . -type d -name node_modules -prune -o -regex ".*[.]md" -print); do
markdown-link-check \
--quiet \
--config "./.markdown-link-check.json" \
"$file"
STATUS=$(( $STATUS + $? ))
done
exit $STATUS
'
markdown:lint:
desc: Check for problems in Markdown files
deps:
- task: npm:install-deps
cmds:
- npx markdownlint-cli "**/*.md"
npm:install-deps:
desc: Install dependencies managed by npm
cmds:
- npm install