File tree 4 files changed +38
-0
lines changed
Tuist/ProjectDescriptionHelpers
4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import ProjectDescription
10
10
public enum Modules {
11
11
case data
12
12
case domain
13
+ case utility
13
14
case presentation
14
15
}
15
16
@@ -51,6 +52,22 @@ public extension Modules {
51
52
}
52
53
}
53
54
55
+ // MARK: - Extension
56
+
57
+ public extension Modules {
58
+ enum Utility : String {
59
+ case Extension
60
+
61
+ var path : String {
62
+ " Utility/ \( self . rawValue) "
63
+ }
64
+
65
+ var targetName : String {
66
+ " \( self . rawValue) "
67
+ }
68
+ }
69
+ }
70
+
54
71
// MARK: - Presentation
55
72
56
73
public extension Modules {
Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ public extension TargetDependency {
22
22
)
23
23
}
24
24
25
+ static func utility( target: Modules . Utility ) -> TargetDependency {
26
+ . project(
27
+ target: target. targetName,
28
+ path: . relativeToRoot( target. path)
29
+ )
30
+ }
31
+
25
32
static func presentation( target: Modules . Presentation ) -> TargetDependency {
26
33
. project(
27
34
target: target. targetName,
Original file line number Diff line number Diff line change
1
+ //
2
+ // Project.swift
3
+ // ProjectDescriptionHelpers
4
+ //
5
+ // Created by eunseou on 1/7/25.
6
+ //
7
+
8
+ import ProjectDescription
9
+ import ProjectDescriptionHelpers
10
+
11
+ let project = Project . dynamicResourceFramework (
12
+ name: Modules . Utility. Extension. rawValue
13
+ )
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ let workspace = Workspace(
14
14
" Data/** " ,
15
15
" Domain/** " ,
16
16
" Presentation/** " ,
17
+ " Utility/** " ,
17
18
] ,
18
19
generationOptions: . options(
19
20
autogeneratedWorkspaceSchemes: . disabled
You can’t perform that action at this time.
0 commit comments