-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
45 lines (36 loc) · 1.14 KB
/
Taskfile.yml
File metadata and controls
45 lines (36 loc) · 1.14 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
version: "3"
# https://taskfile.dev/usage/#env-files
dotenv: [".env.local", ".env"]
vars:
# https://taskfile.dev/reference/templating/
BASE_URL: '{{.TASK_BASE_URL | default .COMPOSE_SERVER_DOMAIN | default .COMPOSE_DOMAIN | default "http://research.local.itkdev.dk"}}'
DOCKER_COMPOSE: '{{.TASK_DOCKER_COMPOSE | default "docker compose"}}'
tasks:
default:
cmds:
- task --list-all
silent: true
dev:
desc: "Start development server"
cmds:
- "{{.DOCKER_COMPOSE}} up --detach"
build:
desc: "Build static site"
cmds:
- "{{.DOCKER_COMPOSE}} run --rm node sh -c 'npm install && npx vitepress build docs'"
open:
cmds:
- open {{ .BASE_URL }}
silent: true
lint:apply:
desc: "Apply coding standards for Markdown"
cmds:
- "{{.DOCKER_COMPOSE}} run --rm markdownlint markdownlint '**/*.md' --fix"
lint:check:
desc: "Check coding standards for Markdown"
cmds:
- "{{.DOCKER_COMPOSE}} run --rm markdownlint markdownlint '**/*.md'"
lint:yaml:
desc: "Check coding standards for YAML"
cmds:
- "{{.DOCKER_COMPOSE}} run --rm prettier '**/*.{yml,yaml}' --check"