forked from gooddata/gooddata-ui-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dependency-cruiser.cjs
193 lines (189 loc) · 8.34 KB
/
.dependency-cruiser.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
const depCruiser = require("../../common/config/dep-cruiser/default.config");
options = {
forbidden: [
...depCruiser.DefaultRules,
...depCruiser.DefaultSdkRules,
...depCruiser.PublicLibraryRules,
depCruiser.isolatedSubmodule("constants", "src/presentation/constants"),
depCruiser.isolatedSubmodule("localization", "src/presentation/localization"),
depCruiser.isolatedSubmodule("presentationComponents", "src/presentation/presentationComponents"),
// TODO: RAIL-3611
// depCruiser.moduleWithDependencies("_staging", "src/_staging",["src/types.ts"]),
depCruiser.moduleWithDependencies("converters", "src/converters", ["src/types.ts"]),
depCruiser.moduleWithDependencies("componentDefinition", "src/presentation/componentDefinition", [
"src/model",
"src/presentation/dashboardContexts/types.ts",
"src/presentation/dragAndDrop/types.ts",
"src/presentation/filterBar/types.ts",
"src/presentation/widget/types.ts",
"src/types.ts",
]),
depCruiser.moduleWithDependencies(
"dashboard",
"src/presentation/dashboard/", // the trailing / is necessary here, otherwise dashboardContexts is matched as well
[
"src/_staging/*",
"src/model",
"src/presentation/constants",
"src/presentation/dashboardContexts",
"src/presentation/dialogs",
"src/presentation/dragAndDrop",
"src/presentation/dragAndDrop/types.ts",
"src/presentation/dragAndDrop/draggableWidget/DraggableInsightListItem.tsx",
"src/presentation/filterBar",
"src/presentation/insightList",
"src/presentation/kpiDeleteDialog",
"src/presentation/layout",
"src/presentation/localization",
"src/presentation/scheduledEmail",
"src/presentation/shareDialog",
"src/presentation/deleteDialog",
"src/presentation/cancelEditDialog",
"src/presentation/saveAs",
"src/presentation/topBar",
"src/presentation/toolbar",
"src/presentation/widget",
"src/presentation/componentDefinition",
"src/presentation/componentDefinition/types.ts",
"src/types.ts",
],
),
depCruiser.moduleWithDependencies("dashboardContexts", "src/presentation/dashboardContexts", [
"src/model",
"src/presentation/componentDefinition/types.ts",
"src/presentation/dashboard/DashboardSidebar/types.ts",
"src/presentation/filterBar/types.ts",
"src/presentation/layout/types.ts",
"src/presentation/saveAs/types.ts",
"src/presentation/scheduledEmail/types.ts",
"src/presentation/shareDialog/types.ts",
"src/presentation/topBar/types.ts",
"src/presentation/toolbar/types.ts",
"src/presentation/widget/types.ts",
"src/presentation/dashboard/types.ts",
"src/types.ts",
]),
depCruiser.moduleWithDependencies("dialogs", "src/presentation/dialogs", [
"src/_staging/*",
"src/presentation/dashboardContexts",
"src/types.ts",
]),
depCruiser.moduleWithDependencies("dragAndDrop", "src/presentation/dragAndDrop", [
"src/_staging/*",
"src/model",
"src/model/types/layoutTypes.ts",
"src/types.ts",
"src/presentation/componentDefinition",
"src/presentation/componentDefinition/types.ts",
"src/presentation/dashboard/DashboardSidebar/DraggableInsightList",
"src/presentation/dashboardContexts",
"src/presentation/filterBar",
"src/presentation/filterBar/types.ts",
"src/presentation/layout/constants.ts",
"src/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.ts",
"src/presentation/widget/types.ts",
"src/presentation/constants/*",
"src/widgets",
]),
depCruiser.moduleWithDependencies("drill", "src/presentation/drill", [
"src/_staging/*",
"src/model",
"src/presentation/constants",
"src/presentation/types.ts",
"src/presentation/localization",
"src/types.ts",
"src/converters",
"src/presentation/widget/common/useWidgetFilters.ts",
"src/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.ts",
]),
depCruiser.moduleWithDependencies("filterBar", "src/presentation/filterBar", [
"src/_staging/*",
"src/model",
"src/presentation/componentDefinition",
"src/presentation/constants",
"src/presentation/dashboardContexts",
"src/presentation/dragAndDrop",
"src/presentation/localization",
"src/presentation/widget/common/configuration/ConfigurationBubble.tsx",
"src/model/store/meta/index.ts",
]),
depCruiser.moduleWithDependencies("layout", "src/presentation/layout", [
"src/_staging/*",
"src/model",
"src/presentation/componentDefinition",
"src/presentation/constants",
"src/presentation/dashboardContexts",
"src/presentation/dragAndDrop",
"src/presentation/dragAndDrop/types.ts",
"src/presentation/localization",
"src/presentation/presentationComponents",
"src/presentation/widget",
"src/types.ts",
"src/widgets",
]),
depCruiser.moduleWithDependencies("logUserInteraction", "src/logUserInteraction", ["src/model"]),
depCruiser.moduleWithDependencies("model", "src/model", [
"src/_staging/*",
"src/converters",
"src/widgets",
"src/types.ts",
"src/presentation/dragAndDrop/types.ts",
]),
depCruiser.moduleWithDependencies("presentation", "src/presentation", [
"src/_staging/*",
"src/converters",
"src/logUserInteraction",
"src/model",
"src/model/events/widget.ts",
"src/model/types/layoutTypes.ts",
"src/types.ts",
"src/widgets",
"src/model/store/meta/index.ts",
]),
depCruiser.moduleWithDependencies("scheduledEmail", "src/presentation/scheduledEmail", [
"src/_staging/*",
"src/model",
"src/presentation/dashboardContexts",
"src/presentation/localization",
"src/presentation/constants/*",
]),
depCruiser.moduleWithDependencies("saveAs", "src/presentation/saveAs", [
"src/model",
"src/presentation/dashboardContexts",
"src/presentation/localization",
"src/presentation/constants/*",
]),
depCruiser.moduleWithDependencies("topBar", "src/presentation/topBar", [
"src/_staging/*",
"src/model",
"src/presentation/dashboardContexts",
"src/presentation/localization",
"src/presentation/constants/*",
"src/presentation/componentDefinition",
"src/types.ts",
]),
depCruiser.moduleWithDependencies("widget", "src/presentation/widget", [
"src/_staging/*",
"src/converters",
"src/logUserInteraction",
"src/model",
"src/model/events/widget.ts",
"src/presentation/componentDefinition",
"src/presentation/constants",
"src/presentation/dashboardContexts",
"src/presentation/dragAndDrop",
"src/presentation/drill",
"src/presentation/drill/DrillSelect/types.ts",
"src/presentation/drill/DrillConfigPanel/*",
"src/presentation/drill/types.ts",
"src/presentation/insightList",
"src/presentation/dashboardList",
"src/presentation/localization",
"src/presentation/presentationComponents",
"src/types.ts",
"src/widgets",
]),
],
options: depCruiser.DefaultOptions,
};
module.exports = options;