Skip to content

Commit e5e6647

Browse files
Copilothotlong
andcommitted
Add Makefile and Chinese testing documentation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ba5f67a commit e5e6647

File tree

2 files changed

+402
-0
lines changed

2 files changed

+402
-0
lines changed

Makefile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# ObjectDocs Development Tasks
2+
# Run with: make <target> or pnpm run <script>
3+
4+
.PHONY: help install dev build test test-quick test-full clean
5+
6+
# Default target
7+
help:
8+
@echo "ObjectDocs Development Tasks"
9+
@echo ""
10+
@echo "Available targets:"
11+
@echo " install - Install all dependencies"
12+
@echo " dev - Start development server"
13+
@echo " build - Build the site"
14+
@echo " test - Run all tests"
15+
@echo " test-quick - Run quick build test"
16+
@echo " test-full - Run full lifecycle test"
17+
@echo " clean - Clean build artifacts"
18+
@echo ""
19+
20+
install:
21+
pnpm install
22+
23+
dev:
24+
pnpm dev
25+
26+
build:
27+
pnpm build
28+
29+
test: test-quick test-full
30+
31+
test-quick:
32+
@echo "Running quick build test..."
33+
bash test-quick.sh
34+
35+
test-full:
36+
@echo "Running full lifecycle test..."
37+
bash test-site.sh
38+
39+
clean:
40+
rm -rf node_modules
41+
rm -rf .next
42+
rm -rf content/.objectdocs
43+
rm -rf packages/*/node_modules
44+
rm -rf examples/*/node_modules
45+
find . -name ".next" -type d -exec rm -rf {} + 2>/dev/null || true
46+
find . -name "*.tsbuildinfo" -delete 2>/dev/null || true

0 commit comments

Comments
 (0)