- packages/core: @aidir/core 底座库(src/pages 页面组件体 1:1 镜像路由树 / kit 站点外壳工厂 / content/blog / scripts) - sites/: 5 个独立 Next.js 网站(ai-stack / launchai / the-ai-ledger / devai-tools / findai) - 每站独立 package.json / next.config / tailwind / messages / .env / 构建 - src/app 约 56 个薄路由文件(re-export 底座页面 + 内联路由段配置 revalidate/dynamic) - src/site/brand.tsx 站点配置 + src/site/home.tsx 站点首页(createMarketingLayout / createHomePage 工厂) - generate-site.mjs: 站点生成器(新增网站 = SITES 加条目,零 Core 修改) - start-all-sites.sh: 一键启动 3001-3005 - next-config.mjs: 底座统一 Next 配置工厂(next-intl + MDX + standalone) - 五站共享同一套 PostgreSQL / Better Auth / Admin(设计文档 §42) - 验证: 5 站 build OK / typecheck OK / 55 路由冒烟 200 / 品牌-内容-截图 差异确认 / 登录-投票-重复检测 e2e PASS
35 lines
861 B
JSON
35 lines
861 B
JSON
{
|
|
"name": "site-the-ai-ledger",
|
|
"version": "1.0.0",
|
|
"description": "The AI Ledger — AI directory site powered by @aidir/core",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev -p 3003",
|
|
"build": "next build",
|
|
"start": "next start -p 3003",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@aidir/core": "workspace:*",
|
|
"next": "16.1.1",
|
|
"react": "^19.2.3",
|
|
"react-dom": "^19.2.3",
|
|
"next-intl": "^4.7.0",
|
|
"next-themes": "^0.4.6",
|
|
"next-view-transitions": "^0.3.5",
|
|
"sonner": "^2.0.7",
|
|
"geist": "^1.3.0",
|
|
"lucide-react": "^0.562.0",
|
|
"framer-motion": "^12.43.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20",
|
|
"@types/react": "^19.2.7",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/mdx": "^2.0.13",
|
|
"typescript": "^5",
|
|
"tailwindcss": "^3.4.1",
|
|
"postcss": "^8"
|
|
}
|
|
}
|