Skip to content

Latest commit

 

History

History
81 lines (55 loc) · 1.16 KB

File metadata and controls

81 lines (55 loc) · 1.16 KB

Contributing

セットアップ

必要なツール

  • mise (ツールバージョン管理)

インストール

# ツールチェインのインストール
mise install

# Node.jsの依存関係のインストール
bun install

開発

テスト用データベースのセットアップ

# PGliteのセットアップ
bun run setup-test-db
# または
bun run setup-test-db:pglite

# PostgreSQLのセットアップ
DATABASE_URL="postgres://postgres:mypassword@localhost:5432/postgres" bun run setup-test-db:postgres

開発サーバーの起動

bun run dev

ビルド

bun run build

プレビュー

bun run preview

テスト

# 単体テスト+統合テスト
bun run test

# 単体テスト
bun run test:unit

# 統合テスト
bun run test:integration

# E2Eテスト
bun run test:e2e

コード品質

# Formatter, Linter, Import Sortingの実行
bun run check

# Formatting, Linting, Import Sortingの自動修正
bun run check:write

# 型検査
bun run type-check

# インポート依存関係の検査
bun run depcruise