-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
77 lines (77 loc) · 2.75 KB
/
package.json
File metadata and controls
77 lines (77 loc) · 2.75 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
{
"name": "cf-astro-blog-starter",
"version": "0.1.0",
"type": "module",
"private": true,
"description": "基于 Astro、Hono 与 Cloudflare Workers 的内置后台站点模板",
"scripts": {
"dev": "astro dev",
"build": "npm run search:index:auto && astro build",
"preview": "npm run build && wrangler dev",
"deploy": "npm run db:migrate:remote && npm run search:index:remote && astro build && wrangler deploy",
"check": "astro check && biome check src public tests scripts",
"check:fix": "biome check --write src public tests scripts",
"format": "biome format --write src public tests scripts README.md",
"lint": "biome lint src public tests scripts",
"test": "tsx --test tests/integration/*.test.ts tests/unit/*.test.ts",
"search:index:auto": "node scripts/build-pagefind-index.mjs",
"search:index:local": "node scripts/build-pagefind-index.mjs --local",
"search:index:remote": "node scripts/build-pagefind-index.mjs --remote",
"hash:password": "node scripts/hash-password.mjs",
"db:generate": "drizzle-kit generate",
"db:migrate:local": "wrangler d1 migrations apply DB --local",
"db:migrate:remote": "wrangler d1 migrations apply DB --remote",
"db:seed:local": "wrangler d1 execute DB --local --file=scripts/seed.sql",
"db:seed:remote": "wrangler d1 execute DB --remote --file=scripts/seed.sql"
},
"cloudflare": {
"bindings": {
"DB": {
"description": "用于文章、分类、标签和统计数据的 D1 数据库"
},
"MEDIA_BUCKET": {
"description": "用于媒体文件上传的 R2 存储桶"
},
"SESSION": {
"description": "用于后台会话和登录限流的 KV 命名空间"
},
"JWT_SECRET": {
"description": "建议使用 `openssl rand -hex 32` 生成随机密钥"
},
"ADMIN_USERNAME": {
"description": "管理后台登录用户名"
},
"ADMIN_PASSWORD_HASH": {
"description": "后台密码的 PBKDF2 哈希,使用 `npm run hash:password -- 你的密码` 生成"
},
"TURNSTILE_SECRET_KEY": {
"description": "可选的 Cloudflare Turnstile 密钥,用于登录人机验证"
}
}
},
"dependencies": {
"@astrojs/cloudflare": "^13.1.3",
"@fontsource-variable/lora": "^5.2.8",
"@fontsource/cormorant-garamond": "^5.2.11",
"@fontsource/shippori-mincho": "^5.2.8",
"@fontsource/space-grotesk": "^5.2.10",
"@modelcontextprotocol/sdk": "^1.27.1",
"astro": "^6.0.8",
"drizzle-orm": "^0.45.1",
"hono": "^4.12.8",
"jose": "^6.1.3",
"lxgw-wenkai-webfont": "^1.7.0",
"marked": "^15.0.7"
},
"devDependencies": {
"@astrojs/check": "^0.9.6",
"@biomejs/biome": "^2.3.11",
"@cloudflare/workers-types": "^4.20260111.0",
"@types/node": "^24.10.1",
"drizzle-kit": "^0.30.0",
"pagefind": "^1.4.0",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"wrangler": "^4.50.0"
}
}