Skip to content

Commit

Permalink
🎱 :: #47 Modul 경둜 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
jjunhaa0211 committed Nov 7, 2023
1 parent 6da8f24 commit 3539965
Showing 1 changed file with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import Foundation
import ProjectDescription

public extension Monster.DesignSystem {
static let foldername = "DesignSystem"
static func project(name: String) -> Monster {
return .project(target: "\(name)", path: .relativeToRoot("\(foldername)"))
}

static let Implement = project(name: "DesignSystem")
}

public extension Monster.Core {
static let folderName = "Core"
static func project(name: String, isInterface: Bool) -> Monster {
let postfix: String = isInterface ? "" : "Impl"
return .project(target: "\(name)\(postfix)",
path: .relativeToRoot("\(folderName)"))
}

static let CSLogger = project(name: "CSLogger", isInterface: true)
static let DefaultsStore = project(name: "DefaultsStore", isInterface: true)
static let RIBsUtil = project(name: "RIBsUtil", isInterface: true)
static let SuperUI = project(name: "SuperUI", isInterface: true)
}

public extension Monster.ResourceKit {
static let folderName = "ResourceKit"
static func project(name: String) -> Monster {
return .project(target: "\(name)",
path: .relativeToRoot("\(folderName)"))
}

static let Implement = project(name: "ResourceKit")
}

// MARK: - Network
public extension Monster.LKNetwork {
static let folderName = "LKNetwork"
static func project(name: String, isInterface: Bool) -> Monster {
let postfix: String = isInterface ? "" : "Impl"
return .project(
target: "\(name)\(postfix)",
path: .relativeToRoot("LKNetwork")
)
}

static let Interface = project(name: "LKNetwork", isInterface: true)
static let Implement = project(name: "LKNetwork", isInterface: false)
}

public extension Monster.TokenManager {
static let folderName = "TokenManager"
static func project(name: String, isInterface: Bool) -> Monster {
let postfix: String = isInterface ? "" : "Impl"
return .project(target: "\(name)\(postfix)",
path: .relativeToRoot("\(folderName)"))
}

static let Interface = project(name: "TokenManager", isInterface: true)
static let Implement = project(name: "TokenManager", isInterface: false)
}

0 comments on commit 3539965

Please sign in to comment.