-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathTaskfile.yml
More file actions
50 lines (44 loc) · 1.55 KB
/
Copy pathTaskfile.yml
File metadata and controls
50 lines (44 loc) · 1.55 KB
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
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."
deploy:
desc: Trigger a GH Pages deployment by pushing a new tag for the lastest commit in master. Don't repeatedly tag the same commit with this task, start the deploy Action if needed.
preconditions:
- sh: git switch master
- sh: git pull origin master
vars:
NEW_VERSION_NUMBER:
sh: git describe --tags --abbrev=0 | cut --delimiter "v" --fields 2- | xargs -n 1 expr 1 + # get the latest tag | trim off "v" | increment the result by 1
cmds:
- git tag -a v{{.NEW_VERSION_NUMBER}} -m ""
- git push --tags
# 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
# Run prettier on all md/mdx files, note prettier behaviour is set in .prettier* files
lint:
desc: Run prettier on all .md* files
cmds:
- cmd: yarn prettier