-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (50 loc) · 1.63 KB
/
Makefile
File metadata and controls
66 lines (50 loc) · 1.63 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
.PHONY: install start dev build serve clean typecheck lint test check help \
seo-audit-frontmatter seo-audit-headings seo-audit-links seo-audit-all seo-analyze-gsc
# Default target
help:
@echo "Available targets:"
@echo " install - Install dependencies"
@echo " start - Start development server"
@echo " dev - Alias for start"
@echo " build - Build static site"
@echo " serve - Serve built site locally"
@echo " clean - Clear Docusaurus cache"
@echo " typecheck - Run TypeScript type checking"
@echo " lint - Run markdown linting"
@echo " test - Run tests"
@echo " check - Run all checks (typecheck, lint, build)"
@echo ""
@echo "SEO audit targets:"
@echo " seo-audit-frontmatter - Audit frontmatter (title, description, keywords)"
@echo " seo-audit-headings - Audit heading structure (H1/H2/H3 hierarchy)"
@echo " seo-audit-links - Audit internal linking (orphans, cross-links)"
@echo " seo-audit-all - Run all SEO audits"
@echo " seo-analyze-gsc - Analyze Google Search Console CSV exports"
install:
npm install
start:
npm start
dev: start
build:
npm run build
serve:
npm run serve
clean:
npm run clear
typecheck:
npm run typecheck
lint:
npm run markdownlint
test:
npm test
check: typecheck lint build
# SEO audit targets
seo-audit-frontmatter:
npx tsx scripts/seo/audit-frontmatter.ts
seo-audit-headings:
npx tsx scripts/seo/audit-headings.ts
seo-audit-links:
npx tsx scripts/seo/audit-internal-links.ts
seo-audit-all: seo-audit-frontmatter seo-audit-headings seo-audit-links
seo-analyze-gsc:
npx tsx scripts/seo/analyze-gsc.ts