generated from Xixn2/Tuist_Modular_Template
-
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.
- Loading branch information
Showing
1 changed file
with
21 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,21 @@ | ||
# Template ๊ฐ์ | ||
## Template ์ฌ์ฉ๋ฒ | ||
- ํด๋น ๋ ํฌ์งํ ๋ฆฌ์์ `Use this template` ๋ฅผ ์ฌ์ฉํ์ฌ Github์ Repo๋ฅผ ๋ง๋ค์ด ์์ | ||
- ํด๋น ๋ ํฌ์งํ ๋ฆฌ๋ฅผ Fork ํน์ Downloadํ์ฌ ์์ | ||
|
||
## ๋ ์ด์ด | ||
Features - Services - Core - UserInterface - Shared | ||
5๊ฐ์ ๋ ์ด์ด๋ฅผ ๊ฐ์ง๋๋ค. | ||
|
||
- Feature | ||
- ์ฌ์ฉ์์ ์ก์ ์ ์ฒ๋ฆฌํ๊ฑฐ๋ ๋ฐ์ดํฐ๋ฅผ ๋ณด์ฌ์ฃผ๋, ์ฌ์ฉ์์ ์ง์ ๋ง๋ฟ๋ ๋ ์ด์ด | ||
- ex) AuthFeature, ProfileFeature | ||
- Domain | ||
- ๋๋ฉ์ธ ๋ก์ง์ด ์งํ๋๋ ๋ ์ด์ด | ||
- ex) AuthDomain, ProfileDomain | ||
- Core | ||
- ์ฑ์ ๋น์ฆ๋์ค๋ฅผ ํฌํจํ์ง ์๊ณ ์์ ๊ธฐ๋ฅ์ฑ ๋ชจ๋์ด ์์นํ ๋ ์ด์ด | ||
- ex) NetworkingModule, DatabaseModule | ||
- UserInterface | ||
- ๊ณต์ฉ View, ๋์์ธ ์์คํ , ๋ฆฌ์์ค ๋ฑ UI ์์ ๋ชจ๋์ด ์์นํ ๋ ์ด์ด | ||
- ex) DesignSystem, LocalizableManager | ||
- Shared | ||
- ๋ก๊น , extension ๋ฑ ๋ชจ๋ ๋ ์ด์ด์์ ๊ณต์ฉ์ผ๋ก ์ฌ์ฌ์ฉ๋ ๋ชจ๋์ด ์์นํ ๋ ์ด์ด | ||
- ex) UtilityModule, LoggingModule | ||
|
||
์ ์๊ฐํ์ฌ ๋ ์ด์ด๋ฅผ ๋ถ๋ฆฌํ์์ต๋๋ค. | ||
|
||
## Micro Feature | ||
๊ฐ ๋ชจ๋์ Micro Feature ๊ตฌ์กฐ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ค๊ณ๋ฉ๋๋ค. | ||
ํ์ฅ ๊ฐ๋ฅํ๊ณ ์ปค์ง๋ ํ๋ก์ ํธ๋ฅผ ๊ธฐ๋ฅ๋ณ๋ก ์ํ ํ์ฅ์ด ๊ฐ๋ฅํ๋๋ก Micro Service์์ ์๊ฐ์ ์ป์ ์ํคํ ์ณ์ ๋๋ค. | ||
|
||
<img src="https://user-images.githubusercontent.com/74440939/210211725-5ac7c9fe-bf25-4707-9775-4f46f1c0c522.png" width="200"> | ||
|
||
##### https://docs.tuist.io/building-at-scale/microfeatures/#product | ||
|
||
## ํ๋ก์ ํธ ์ธํ | ||
ํ๋ก์ ํธ ๋ฃจํธ์์ `make init` ๋ฅผ ์คํํ์ฌ, ํ๋ก์ ํธ ์ด๋ฆ๊ณผ organization ์ด๋ฆ์ ์ ๋ ฅํ์ฌ ๊ธฐ๋ณธ ์ค์ ์ ํ ์ ์์ต๋๋ค. | ||
|
||
ํ๋ก์ ํธ ๋ฃจํธ์์ `make signing`๋ฅผ ์คํํ๋ฉด ํ๋ก์ ํธ Team Signing์ ํ ์ ์์ต๋๋ค. | ||
|
||
## ๋ชจ๋ ์์ฑ | ||
ํ๋ก์ ํธ ๋ฃจํธ์์ `make module`๋ฅผ ์คํํ๋ฉด ๋ชจ๋ ๋ ์ด์ด, ์ด๋ฆ, Micro Feature ์ข ๋ฅ๋ฅผ ์ ํํ์ฌ ์ ๋ชจ๋์ ์์ฑํฉ๋๋ค. | ||
|
||
## Makefile | ||
ํ๋ก์ ํธ ๋ฃจํธ์์ ์คํํ ์ ์๋ ๋ช ๋ น์ด์ ๋๋ค. | ||
- make init : `ํ๋ก์ ํธ ์ด๋ฆ๊ณผ organization์ ์ ๋ ฅํ์ฌ ํ๋ก์ ํธ ๊ธฐ๋ณธ ์ธํ ` | ||
- swift Scripts/InitEnvironment.swift | ||
|
||
- make signing : `ํ๋ก์ ํธ Team Signing` | ||
- swift Scripts/CodeSigning.swift | ||
|
||
- make generate : `์ธ๋ถ ๋ํ๋์ fetch ๋ฐ ํ๋ก์ ํธ generate` | ||
- tuist fetch | ||
- tuist generate | ||
|
||
- make module : `๋ชจ๋ ์์ฑ` | ||
- swift Scripts/GenerateModule.swift | ||
|
||
- make dependency : `๋ํ๋์ ์ถ๊ฐ` | ||
- swift Scripts/NewDependency.swift | ||
|
||
- make ci_generate : `๋ํ๋์ fetch ๋ฐ CI์ฉ ํ๋ก์ ํธ generate (SwiftLint X)` | ||
- tuist fetch | ||
- TUIST_ENV=CI tuist generate | ||
|
||
- make cd_generate : `๋ํ๋์ fetch ๋ฐ CI์ฉ ํ๋ก์ ํธ generate (SwiftLint X)` | ||
- tuist fetch | ||
- TUIST_ENV=CD tuist generate | ||
|
||
- make clean : `์ ์ฒด xcodeproj, xcworkspace ํ์ผ ์ญ์ ` | ||
- rm -rf **/*.xcodeproj | ||
- rm -rf *.xcworkspace | ||
|
||
- make reset : `tuist clean ํ, ์ ์ฒด xcodeproj, xcworkspace ํ์ผ ์ญ์ ` | ||
- tuist clean | ||
- rm -rf **/*.xcodeproj | ||
- rm -rf *.xcworkspace | ||
|
||
## Scaffold | ||
```sh | ||
tuist Scaffold(Demo/Interface/Sources/Testing/Tests/UITests) | ||
--layer (Features/Services/Core/Shared/UserInterface ๋ ์ด์ด ์ด๋ฆ) | ||
--name (๋ชจ๋ ์ด๋ฆ) | ||
``` | ||
|
||
์ผ๋ก Project ๋ชจ๋์ Target ๋ชจ๋์ ์ง์ ์์ฑ ๊ฐ๋ฅํฉ๋๋ค. | ||
![ppt](https://github.com/user-attachments/assets/fe8c2b3e-e0ee-49bd-9ac7-b2f8e8d30515) | ||
ใ ค | ||
# ๐คใ ฃGPle? | ||
"**GPle์ด๋?** GSM Place์ ์ค์๋ง๋ก, GSM ์์ด๋์ดํ์คํฐ๋ฒ์ ์ํด 7๊ธฐ ํ์๋ค์ด ํ ํ์ด ๋์ด ๋ง๋ ํ๋ก์ ํธ์ ๋๋ค. | ||
์ด ์ฑ์ GSM์ ๋ค์ํ ์ฅ์์์ ์ดฌ์ํ ์ฌ์ง์ **์์ฝ๊ฒ ๊ณต์ **ํ๊ณ , ์์น๋ณ๋ก ๋ชจ์ธ ์ฌ์ง๋ค์ ํตํด | ||
**์๋ก์ ์ถ์ต**์ ๋์๊ธฐ๋ฉฐ **์ฆ๊ฑฐ์ด ์๊ฐ**๋ค์ ํจ๊ป ๋๋๋ ๊ฒฝํ์ ์ ๊ณตํฉ๋๋ค." | ||
|
||
ใ ค | ||
### GPle ํ๋ฉด | ||
|์จ๋ณด๋ฉ|๋ฉ์ธ|์์ธํ๋ณด๊ธฐ|๋ญํน|๋ง์ดํ์ด์ง | ||
|:---:|:---:|:---:|:---:|:---:| | ||
|<img src="https://github.com/user-attachments/assets/f7aca390-8a24-4985-8ec9-6da2e7a4f71f" width="300px">|<img src="https://github.com/user-attachments/assets/ed773ab8-3493-44fc-a514-d187205bc07d" width="300px">|<img src="https://github.com/user-attachments/assets/474197f5-67a6-41a4-ac1a-9402fc8a43ea" width="300px">|<img src="https://github.com/user-attachments/assets/1bbc992b-3106-4b50-a1f3-6769ae82d2f8" width="300px">|<img src="https://github.com/user-attachments/assets/d440e43f-f377-4c81-b126-b751164823e5" width="300px"> | ||
|
||
ใ ค | ||
# ๐ ๏ธใ ฃTechStack | ||
- SwiftUI | ||
- Tuist | ||
- Mvvm | ||
- Github Action | ||
- Moya | ||
- GoogleSignIn |