-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from uyupun/docs/359_bccd
BCCDデザインに関するドキュメントの作成
- Loading branch information
Showing
3 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# アーキテクチャ | ||
|
||
## コンポーネント | ||
|
||
BCCD Designを元に、以下のルールに沿ってコンポーネントの設計を行う。 | ||
|
||
### 分類方法 | ||
|
||
- Base | ||
- 役割: 基礎 | ||
- 品詞: 名詞 | ||
- 説明: 基礎的な機能(名詞)や、事実上の型を表現する | ||
- 例: Button/Icon/Image | ||
- Case | ||
- 役割: 状況 | ||
- 品詞: 動詞/形容詞/名詞 | ||
- 説明: 状況(動詞/形容詞)や状態(名詞)を表現する | ||
- 例: Alert/Edit/Post | ||
- Common | ||
- 役割: サービス横断的な関心 | ||
- 品詞: 名詞 | ||
- 説明: | ||
- 幅広く共通して利用可能な、横断的な関心を表現する | ||
- 複数ページ/箇所で使えるレベルに特化されたコンポーネント | ||
- 例: Category/Error/Tag | ||
- Domain | ||
- 役割: サービス限定的な関心 | ||
- 品詞: 名詞 | ||
- 説明: | ||
- 人(ロール)や物(名詞)など、限定的な関心を表現する | ||
- 特定ページ/箇所でしか使えないレベルに特化されたコンポーネント | ||
- 例: Community/Product/User | ||
|
||
### 留意点 | ||
|
||
- 依存関係の方向はBase <- Case <- Common <- Domainとする | ||
- Domain以外のコンポーネントは同じ分類同士で依存させない | ||
- 本来、Baseに分類されるべきだが、Baseに依存してしまうようなコンポーネントは、Commonに定義する | ||
|
||
### 参照 | ||
|
||
- [https://qiita.com/misuken/items/19f9f603ab165e228fe1](https://qiita.com/misuken/items/19f9f603ab165e228fe1) | ||
- [https://qiita.com/misuken/items/d51c181487cf611821f4](https://qiita.com/misuken/items/d51c181487cf611821f4) | ||
- [https://qiita.com/misuken/items/09498a496511034627af](https://qiita.com/misuken/items/09498a496511034627af) |
This file contains 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