[Improve]: internal_xxx パッケージのバレルファイルをやめる #578#583
Merged
Conversation
- internal_application.dartバレルファイルを削除 - src/operational_settingsをlib/operational_settingsに移動 - src/operational_settingsをtest/operational_settingsに移動 - 不要なinternal_application_base.dartとinternal_application_test.dartを削除 - 依存ファイルのimport文を更新
- internal_infrastructure.dartバレルファイルを削除 - src/operational_settingsをlib/operational_settingsに移動 - src/shared_preferencesをlib/shared_preferencesに移動 - src/theme_settingをlib/theme_settingに移動 - 不要なinternal_infrastructure_base.dartとinternal_infrastructure_test.dartを削除 - 依存ファイルのimport文を更新
- internal_domain_logic.dartバレルファイルを削除 - src/operational_settingsをlib/operational_settingsに移動 - src/theme_settingをlib/theme_settingに移動 - 不要なinternal_domain_logic_base.dartとinternal_domain_logic_test.dartを削除 - 依存ファイルのimport文を更新
- internal_domain_model.dartバレルファイルを削除 - src/内のファイルをlib/直下に移動 - 依存ファイルのimport文を更新 - 不要なimport文を削除し、import順序を修正
- components.dartバレルファイルを削除 - src/componentsをlib/componentsに移動 - src/genをlib/genに移動 - 不要なinternal_design_ui_base.dartとinternal_design_ui_test.dartを削除 - 依存ファイルのimport文を更新
- gen/assets/assets.gen.dartをsrc/gen/assets/assets.gen.dartに移動 - common_assets.dartのimport文を更新 - 外部に直接公開されないようにsrcディレクトリに配置
- operational_settings/ディレクトリを作成し、運用設定関連のモデルを配置 - theme_setting/ディレクトリを作成し、テーマ設定関連のモデルを配置 - 各ファイルのimport文を新しいディレクトリ構造に合わせて更新 - 集約ルートパターンに従った構造に変更
- lib/**.dartを対象にして、集約ルートが増えてもbuild.yamlの更新が不要に - 階層が深くなっても対応できる柔軟な設定に変更
|
Ready for review 🚀 |
auto-merge was automatically disabled
September 3, 2025 07:05
Pull request was converted to draft
Contributor
Author
|
コンフリクト発生してしまっているようなので、いったんドラフトに変更しました 🙏 |
# Conflicts: # apps/app/lib/main.dart # apps/app/lib/presentation/ui/setting/setting_page.dart
|
|
|
Ready for review 🚀 |
Contributor
Author
|
コンフリクト発生したためドラフトにします 🙏 |
|
|
|
Ready for review 🚀 |
blendthink
commented
Sep 4, 2025
Contributor
Author
blendthink
left a comment
There was a problem hiding this comment.
morikann
approved these changes
Sep 4, 2025
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.
概要
internal_xxx パッケージ内に作成されるものは基本的に外部へ公開することになるが、バレルファイルだと export の記載漏れが発生してしまうことが多々あったため、バレルファイルをやめ、構造を
src/xxx/xxx.dartではなく、xxx/xxx.dartに変更しました。また、domain_modelパッケージについては集約ルートパターンに従い、機能ごとにディレクトリを分けて整理しました。
レビュー観点
レビューレベル
レビュー優先度
画像 / 動画
確認したこと
melos bsが正常に実行されることdart analyzeでエラーが発生しないこと動作確認手順
melos bsを実行してパッケージの依存関係が正常に解決されることを確認dart analyzeを実行してコード解析エラーが発生しないことを確認備考
lib/**.dartに設定し、集約ルートが増えてもbuild.yamlの更新が不要になるよう柔軟な設定にしました