Skip to content

HenryVoid/SwiftUI_Tuist_Template

Repository files navigation

Tuist

4.22.0


1. Tuist 설치하기

2. Dependecy 가져오기

tuist install

3. XCConfig 설정하기

mkdir -p XCConfig && echo '#include "./Shared.xcconfig"' >> XCConfig/Debug.xcconfig && echo '#include "./Shared.xcconfig"' >> XCConfig/Release.xcconfig && echo '// Shared' >> XCConfig/Shared.xcconfig

4. 프로젝트 생성하기

tuist generate

5. Feature 생성하기

tuist scaffold feature --name Auth
tuist edit

 - module.swift 에 feature 정의하기

// module.swift

// MARK: Feature
public extension Module {
    enum Feature: String, CaseIterable {
        case Auth
        case Main
        case Base
        
        public static let name: String = "Feature"
    }
}

6. Core 생성하기

tuist scaffold core --name Utility

 - module.swift 에 core 정의하기

// module.swift

// MARK: Core
public extension Module {
    enum Core: String, CaseIterable {
        case Entity
        case NetworkKit
        case ThirdPartyLibrary
        case Logger
        case Utility
        
        public static let name: String = "Core"
    }
}


✅ Dependency Graph

의존성 그래프


  • 그래프 생성하기
tuist graph
tuist graph -t # 테스트 타겟 제외
tuist graph -d # 외부 라이브러리 제외

graph


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages