プロジェクトの初期開発環境をセットアップ - #2
Merged
Merged
Conversation
TypeScript, Vitest, ultracite (Biome), Prettierを導入し、 CLIツールとしてのpackage.json設定、tsconfig.json、各種設定ファイル、 CLAUDE.md、README.md、PRテンプレートを追加。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
planloopコマンドのバージョン出力を検証するテストを追加。 tsconfig.jsonからテストファイルをビルド対象外に設定。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CIのtest:ci (vitest run --coverage) で必要な依存パッケージを追加。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
issueURL
#1
この PR で対応する範囲 / この PR で対応しない範囲
対応する範囲
対応しない範囲
変更点概要
Issue #1 「プロジェクトの初期構築を作成」に対応するPRです。
@nekochans/planloopをグローバルCLIツールとして開発するための基盤を構築しました。ESM + TypeScript 構成
npm install -gでCLIコマンドplanloopとして利用される想定のため、package.jsonのtypeをmoduleに設定し、binフィールドでエントリポイントdist/bin/planloop.jsを指定しています。TypeScriptはmodule: Node16/target: ES2022でESM環境に対応しています。Lint / Format の二段構成
nekochans/lgtm-cat-frontend の方式に準拠し、
.tsファイルは ultracite (Biome) で、.yaml/.yml/.md/.mdxは Prettier でフォーマットする構成にしました。npm run lintとnpm run formatでそれぞれ一括実行できます。依存バージョンの厳密固定
.npmrcにsave-exact=trueを設定し、全パッケージのバージョンを^や~なしで固定しています。再現性の高いビルドを保証するためです。CI
GitHub Actionsで
lint→build→test:ciを実行するワークフローを設定しています。レビュアーに重点的にチェックして欲しい点
tsconfig.jsonの設定がCLIツール開発として適切か補足情報
.serena/) も含めてコミットしています