forked from getsolus/help-center-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
43 lines (38 loc) · 1.15 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
version: "3"
set: [pipefail]
tasks:
default:
cmds:
- yarn start --host 0.0.0.0
# Ensure people new to go-task and used to 'make help' have an easier time
help:
desc: Show how to list available tasks
cmds:
- |
echo "Use 'go-task -l/--list' to list available tasks."
# Merge "master" into "deploy" branch for GitHub pages deployment
deploy:
desc: Merge the "master" branch into "deploy" to start GitHub Pages build
cmds:
- git switch master
- git pull origin master
- git switch deploy
- git merge master
- git push origin deploy
- git switch master
# Tidy up the allowed-words list
tidy-words:
desc: Tidy and sort the allowed-words list
env:
TARGET: .cspell-allowed-words.txt
cmds:
- awk -i inplace '{print tolower($0)}' $TARGET
- sort -o $TARGET $TARGET
- awk -i inplace '!seen[$0]++' $TARGET
# Run cspell on all .md/mdx docs in the project. Should use project configuration with allow-word list
spellcheck:
desc: Run cspell on all .md* files
shopt: [globstar]
cmds:
- cmd: yarn cspell lint **/*.md*
ignore_error: true