-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdepcruise-config.cjs
83 lines (76 loc) · 2.26 KB
/
depcruise-config.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
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
options: {
doNotFollow: {
dependencyTypes: [
"npm",
"npm-dev",
"npm-optional",
"npm-peer",
"npm-bundled",
"npm-no-pkg",
],
},
includeOnly: "^src",
tsPreCompilationDeps: false,
tsConfig: {
fileName: process.env.TSCONFIG_PATH,
},
/* How to resolve external modules - use "yarn-pnp" if you're using yarn's Plug'n'Play.
otherwise leave it out (or set to the default, which is 'node_modules')
externalModuleResolutionStrategy: "yarn-pnp",
*/
progress: { type: "performance-log" },
reporterOptions: {
archi: {
collapsePattern:
"^src/app/[^/]+|^src/processes/[^/]+|^src/pages/[^/]+|^src/widgets/[^/]+|^src/features/[^/]+|^src/entities/[^/]+|^src/shared/[^/]+",
theme: {
modules: [
{
criteria: { collapsed: true },
attributes: { shape: "tab" },
},
{
criteria: { source: "^src/app/[^/]+" },
attributes: { fillcolor: "#ffbdbd" },
},
{
criteria: { source: "^src/layouts/[^/]+" },
attributes: { fillcolor: "#ffbdbd" },
},
{
criteria: { source: "^src/processes/[^/]+" },
attributes: { fillcolor: "#da96ff" },
},
{
criteria: { source: "^src/pages/[^/]+" },
attributes: { fillcolor: "#ffd9a3" },
},
{
criteria: { source: "^src/widgets/[^/]+" },
attributes: { fillcolor: "#94fffa" },
},
{
criteria: { source: "^src/features/[^/]+" },
attributes: { fillcolor: "#aedaff" },
},
{
criteria: { source: "^src/entities/[^/]+" },
attributes: { fillcolor: "#d3ffc6" },
},
{
criteria: { source: "^src/shared/[^/]+" },
attributes: { fillcolor: "#efefef" },
},
],
graph: {
splines: "ortho",
rankdir: "TB",
ranksep: "1",
},
},
},
},
},
};