Repository navigation
Expand file tree
/
Copy pathmise.toml
More file actions
133 lines (107 loc) · 4.79 KB
/
Copy pathmise.toml
File metadata and controls
133 lines (107 loc) · 4.79 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[tools]
hugo-extended = '0.169.0'
"github:sass/dart-sass" = { version = "1.108.2", version_prefix = "" }
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-portfolio-deps]
description = "Install portfolio example dependencies (including Hugo modules)"
depends = ["install"]
dir = "exampleSites/portfolio"
run = ["hugo mod tidy", "hugo mod npm pack", "npm install"]
[tasks.install-example-deps]
description = "Install dependencies for all example sites"
depends = ["install-portfolio-deps", "install-docs-deps", "install-blog-deps"]
[tasks.install-blog-deps]
description = "Install blog example dependencies (including Hugo modules)"
depends = ["install"]
dir = "exampleSites/blog"
run = ["hugo mod tidy", "hugo mod npm pack", "npm install"]
[tasks.blog]
description = "Start the blog development server with live reload"
depends = ["install-blog-deps"]
dir = "exampleSites/blog"
run = "hugo server -w --bind=0.0.0.0 --renderToMemory"
[tasks.build-blog]
description = "Build the blog example for production"
depends = ["install-blog-deps"]
dir = "exampleSites/blog"
run = "hugo --gc --minify --cleanDestinationDir"
[tasks.test-blog]
description = "Verify blog homepage selection, pagination, feeds, URLs, and layout combinations"
depends = ["install"]
run = "node --test tests/blog-layout.test.mjs"
[tasks.install-docs-deps]
description = "Install docs example dependencies (including Hugo modules)"
depends = ["install"]
dir = "exampleSites/docs"
run = ["hugo mod tidy", "hugo mod npm pack", "npm install"]
[tasks.build-docs]
description = "Build the docs example for production"
depends = ["install-docs-deps"]
dir = "exampleSites/docs"
run = "hugo --gc --minify --cleanDestinationDir"
[tasks.docs]
description = "Start the docs development server with live reload"
depends = ["install-docs-deps"]
dir = "exampleSites/docs"
run = "hugo server -w --bind=0.0.0.0 --renderToMemory"
[tasks.test-docs]
description = "Verify modern docs, component contracts, and legacy asset isolation"
depends = ["install"]
run = "node --test tests/docs-layout.test.mjs tests/docs-search.test.mjs tests/docs-toc.test.mjs tests/docs-content.test.mjs"
[tasks.build-portfolio]
description = "Build the portfolio example for production"
depends = ["install-portfolio-deps"]
dir = "exampleSites/portfolio"
# Use --cleanDestinationDir so the agent doesn't get confused by old artifacts
run = ["hugo --gc --minify --cleanDestinationDir"]
[tasks.build]
description = "Build all example sites for production"
depends = ["build-portfolio", "build-docs", "build-blog"]
[tasks.lint]
description = "Run code linters"
depends = ["install"]
run = "npm run lint"
[tasks.test-urls]
description = "Verify page and resource URLs in multilingual Hugo builds"
run = "node --test tests/url-resolution.test.mjs"
[tasks.test-seo]
description = "Verify SEO metadata, structured data, and sitemap output"
run = "node --test tests/seo-metadata.test.mjs"
[tasks.test-pagination]
description = "Verify paginated archives and progressive post loading"
run = "node --test tests/pagination.test.mjs tests/lazy-load-posts.test.mjs"
[tasks.test-code-blocks]
description = "Verify code previews, configuration, and complete-source copying"
run = "node --test tests/code-block-panel.test.mjs"
[tasks.test-skill-details]
description = "Verify opt-in skill details, localization, and progressive dialog enhancement"
run = "node --test tests/skill-details.test.mjs"
[tasks.test-scroll-snap]
description = "Verify homepage scroll snapping is opt-in and isolated from other pages"
run = "node --test tests/scroll-snap.test.mjs"
[tasks.test-portfolio-modern]
description = "Verify opt-in modern portfolio homepage, sections, dialogs, slider, search, and isolation"
depends = ["install"]
run = "node --test tests/portfolio-modern.test.mjs"
[tasks.portfolio]
description = "Start the portfolio development server with live reload"
alias = ["example-portfolio", "example-site"]
depends = ["install-portfolio-deps"]
dir = "exampleSites/portfolio"
# 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 build, lint, URL, and SEO regression tests"
# This gives the AI a single 'truth' command to validate its work.
depends = ["lint", "build", "test-urls", "test-seo", "test-pagination", "test-code-blocks", "test-skill-details", "test-scroll-snap", "test-portfolio-modern", "test-docs", "test-blog"]