Files
ai-directory-platform/scripts/dev-all-themes.sh
T
AI Directory Platform e46b4b52a3 feat: AI Directory Platform 底座升级 + 五套主题站点
- 数据模型: vote/review/submission/claim/use_case/audience/collection/event (+tool 冗余统计列)
- 社区: 投票(限流+原子toggle+API) / 评论(评分+优缺点+Helpful+聚合回写) / 提交(重复检测+审批发布) / 认领(Owner白名单编辑)
- Ranking Engine: trending/popular/most-voted/most-saved/highest-rated/new/editors-choice (纯函数可测)
- 发现体系: Use Case + Audience + Collection 三维发现 / /ai-tools-for / /best SEO 页
- Programmatic SEO: 页面生成器 / sitemap 270条 / AggregateRating/FAQPage/Breadcrumb/ItemList schema / alternatives + vs 对比页
- Analytics: event 事件流 + 外链跳转埋点 + /admin/analytics CTR 与搜索词分析
- Admin: submissions/claims/reviews/discovery/vote-audit/analytics 六个新后台 + 仪表盘扩展
- 主题系统: themes registry + 五套站点 (classic/product/editorial/niche/minimal) 构建期注入
- 认证: GitHub OAuth (env门控) + 登录回跳 redirect
- i18n: 新增 7 个命名空间中英文案 (546 键一致)
- 测试: bun test 32 用例 (ranking/slug/去重/SEO生成器) + Playwright e2e 脚本
- 种子: 14分类/16用例/9受众/40工具/6用户/投票/评论/6合集/7718事件
2026-09-08 17:38:06 +00:00

25 lines
846 B
Bash
Executable File

#!/usr/bin/env bash
# 一键构建并启动五套主题站点(3001-3005)
set -e
cd "$(dirname "$0")/.."
echo "=== 构建 5 套主题 ==="
bun run build
for theme in product editorial niche minimal; do
SITE_THEME=$theme NEXT_DIST_DIR=.next-$theme bun run build
done
echo "=== 启动 5 个站点 ==="
bunx next start -p 3001 &
SITE_THEME=product NEXT_DIST_DIR=.next-product bunx next start -p 3002 &
SITE_THEME=editorial NEXT_DIST_DIR=.next-editorial bunx next start -p 3003 &
SITE_THEME=niche NEXT_DIST_DIR=.next-niche bunx next start -p 3004 &
SITE_THEME=minimal NEXT_DIST_DIR=.next-minimal bunx next start -p 3005 &
echo "classic → http://localhost:3001"
echo "product → http://localhost:3002"
echo "editorial → http://localhost:3003"
echo "niche → http://localhost:3004"
echo "minimal → http://localhost:3005"
wait