← ソースコード説明書

scripts/ - スクリプト一覧

概要

開発、テスト、デプロイ、バックアップ、ユーティリティのシェルスクリプトと TypeScript スクリプト。合計 39 ファイル。

開発 (5 ファイル)

ファイル行数用途
dev-start.sh125開発サーバー起動(既存プロセス停止→PostgreSQL確認→npm install→起動)
pre-deploy-check.sh32デプロイ前チェック
check-e2e-sync.sh24E2E セレクタ整合性チェック
local-env.sh4ローカル URL/設定表示
azure-env.sh8Azure URL/認証情報表示

dev-start.sh の使い方

./scripts/dev-start.sh             # API + Next.js (デフォルト)
./scripts/dev-start.sh all         # 全サーバー
./scripts/dev-start.sh api editor  # 指定のみ

テストランナー - ローカル (8 ファイル)

ファイル行数用途
test-local.sh145マスター(Phase 1-8 統合)
test-local-health.sh12Phase 1: curl ヘルスチェック
test-local-api.sh48Phase 2: API テスト (8項目)
test-local-unit.sh9Phase 3: ユニットテスト (core, compiler, interpreter)
test-local-e2e.sh16Phase 4: Playwright E2E
test-local-auth.sh12Phase 5: 認証 E2E
test-local-ks-editor.sh12Phase 6: KSC エディタ E2E
test-local-editor.sh8Editor ユニットテスト
test-local-security.sh18セキュリティチェック

test-local.sh の使い方

./scripts/test-local.sh              # 全 Phase
./scripts/test-local.sh --phase 3    # Phase 3 (ユニットテスト) まで
./scripts/test-local.sh --repeat 3   # 3回連続実行(安定性確認)

テストランナー - Azure (6 ファイル)

ファイル行数用途
test-azure.sh168マスター(Phase 1-7 統合)
test-azure-health.sh17Phase 1: 4サービスヘルスチェック
test-azure-api.sh56Phase 2: API テスト (8項目)
test-azure-e2e.sh10Phase 3: Playwright E2E
test-azure-auth.sh13Phase 4: 認証テスト (34テスト)
test-azure-ks-editor.sh9Phase 7: KSC エディタ
test-azure-editor-api.sh24Editor API テスト
test-azure-security.sh18セキュリティチェック

デプロイ (2 ファイル)

ファイル行数用途
deploy-verify.sh184git push → Actions 待ち → 全テスト
deploy-azure.sh使用禁止(ローカルデプロイ禁止、GitHub Actions を使う)

deploy-verify.sh の使い方

./scripts/deploy-verify.sh             # push → 待機 → テスト
./scripts/deploy-verify.sh --no-push   # push 済み → テストのみ
./scripts/deploy-verify.sh --skip-test # push のみ

ビルド / ネイティブ (5 ファイル)

ファイル行数用途
build-title.sh19ゲームタイトル/ロゴアセットビルド
build-sdl.sh48SDL2 ビルド
download-sdl2-sources.sh52SDL2/SDL_image ソースダウンロード
sync-native.sh14ネイティブエンジン更新同期
sync-oss.sh22OSS ライセンス同期

バックアップ / 監視 (6 ファイル)

ファイル行数用途
backup-setup.sh41Azure Backup vault セットアップ
backup-status.sh22バックアップ健全性確認
backup-dump.sh12PostgreSQL バックアップ
backup-restore-test.sh28復元テスト
backup-daily-check.sh32定期バックアップ検証
setup-frontdoor.sh41Azure Front Door CDN セットアップ

配信 / デバッグ (3 ファイル)

ファイル行数用途
obs-stream.sh34OBS WebSocket 配信制御
stream-ending.sh18配信終了
auto-record.sh31ゲームプレイ自動録画

TypeScript スクリプト (19 ファイル)

AI / 執筆支援

ファイル行数用途
assist-cli.ts180AI 執筆支援 CLI (4段階パイプライン)
debug-google-ai.tsGoogle AI デバッグ
debug-google-genai.tsGoogle GenAI デバッグ
debug-google-genai-v2.tsGoogle GenAI v2 デバッグ
debug-vertex-*.ts5種Google Vertex AI デバッグ/テスト
test-gemini-2.tsGemini 2.0 検証
verify-gemini2.tsGemini 2.0 バリデーション
test-api-key.ts18API キー検証
list-models.ts23LLM モデル一覧表示

RAG

ファイル行数用途
init-rag-db.ts47RAG ベクトル DB 初期化
rag-index.ts64RAG ドキュメントインデックス
test-rag-search.ts58RAG 検索検証

ユーティリティ

ファイル行数用途
migrate-to-projects.ts35レガシー → プロジェクトデータ移行
verify-doc-links.ts71ドキュメントリンク有効性チェック
verify-ks-spec.ts89KS コマンド仕様バリデーション
Ad: stickyBottom (728x90)
kaedevn - ノベルゲームを作れるプラットフォーム