-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.dependency-cruiser.cjs
More file actions
62 lines (57 loc) · 1.6 KB
/
Copy path.dependency-cruiser.cjs
File metadata and controls
62 lines (57 loc) · 1.6 KB
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
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
options: {
doNotFollow: {
dependencyTypes: [
'npm',
'npm-dev',
'npm-optional',
'npm-peer',
'npm-bundled',
'npm-no-pkg'
]
},
includeOnly: '^src',
exclude: ['^src/server', '^src/env', '^src/utils', '^src/types'],
/* 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/pages/[^/]+|^src/features/.+|^src/ui-kit/[^/]+',
theme: {
modules: [
{
criteria: { collapsed: true },
attributes: { shape: 'tab' }
},
{
criteria: { source: '^src/app/[^/]+' },
attributes: { fillcolor: '#ffbdbd' }
},
{
criteria: { source: '^src/pages/[^/]+' },
attributes: { fillcolor: '#ffd9a3' }
},
{
criteria: { source: '^src/features/[^/]+' },
attributes: { fillcolor: '#aedaff' }
},
{
criteria: { source: '^src/ui-kit/[^/]+' },
attributes: { fillcolor: '#efefef' }
}
],
graph: {
splines: 'ortho',
rankdir: 'TB',
ranksep: '1'
}
}
}
}
}
};