-
Notifications
You must be signed in to change notification settings - Fork 722
Expand file tree
/
Copy pathmise.toml
More file actions
48 lines (39 loc) · 1.46 KB
/
mise.toml
File metadata and controls
48 lines (39 loc) · 1.46 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
[tools]
hugo-extended = 'latest'
node = 'latest'
go = 'latest'
[tasks.install]
description = "Install root project dependencies"
run = "npm install"
[tasks.update]
description = "Update node dependencies and regenerate Hugo modules"
# AI Note: This is a destructive action (rm file). Good to keep, but Agents should rely on 'install' mostly.
run = ["npm update", "rm package.hugo.json", "hugo mod npm pack"]
[tasks.install-example-deps]
description = "Install example site dependencies (including Hugo modules)"
depends = ["install"]
dir = "exampleSite"
run = ["hugo mod tidy", "hugo mod npm pack", "npm install"]
[tasks.build]
description = "Build the example site for production"
depends = ["install-example-deps"]
dir = "exampleSite"
# Use --cleanDestinationDir so the agent doesn't get confused by old artifacts
run = ["hugo --gc --minify --cleanDestinationDir"]
[tasks.lint]
description = "Run code linters"
depends = ["install"]
run = "npm run lint"
[tasks.example-site]
description = "Start the development server with live reload"
depends = ["install-example-deps"]
dir = "exampleSite"
# Some AI cloud envs (like GitHub Codespaces or IDX) need this to expose the port.
run = "hugo server -w --bind=0.0.0.0"
[tasks.fix-security]
description = "Auto-fix npm security vulnerabilities"
run = "npm audit fix --force"
[tasks.check]
description = "Run all verification steps (Build + Lint)"
# This gives the AI a single 'truth' command to validate its work.
depends = ["lint", "build"]