-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
51 lines (46 loc) · 1.15 KB
/
Taskfile.yaml
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
---
version: 3
interval: 1000ms
tasks:
default:
cmds:
- task: serve
serve:
desc: Start Hugo to serve the content locally
summary: |-
Start Hugo in serve mode to serve the content locally during development.
run: once
vars:
date:
sh: date -d 'next month' --iso-8601=seconds
cmds:
- cmd: |
hugo serve \
--environment local \
--buildDrafts \
--clock '{{ .date }}' \
--disableFastRender \
--navigateToChanged \
--forceSyncStatic
fmt:
desc: Format all files with their appropriate tools
cmds:
- task: fmt-md
fmt-md:
desc: Format all markdown with their appropriate tools
sources:
- '.prettierrc'
- 'archetypes/**/*.md'
- 'content/**/*.md'
cmds:
- cmd: |-
find archetypes/ content/ -type f -iname '*.md' \
| xargs prettier -w
build:
desc: Run Hugo to build the content for the website
summary: |-
Run Hugo in build the content locally for the website.
run: once
cmds:
- cmd: |-
hugo --buildDrafts --enableGitInfo --minify