-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathsheriff.config.ts
30 lines (29 loc) · 925 Bytes
/
sheriff.config.ts
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
import { noDependencies, sameTag, SheriffConfig } from '@softarc/sheriff-core';
export const sheriffConfig: SheriffConfig = {
version: 1,
tagging: {
'src/app': {
'shared': {
'feature-<feature>': ['shared', 'type:feature'],
'ui-<ui>': ['shared', 'type:ui'],
'data': ['shared', 'type:data'],
'util-<ui>': ['shared', 'type:util'],
},
'domains/<domain>': {
'feature-<feature>': ['domain:<domain>', 'type:feature'],
'ui-<ui>': ['domain:<domain>', 'type:ui'],
'data': ['domain:<domain>', 'type:data'],
'util-<ui>': ['domain:<domain>', 'type:util'],
},
},
},
depRules: {
'root': ['*'],
'domain:*': [sameTag, 'shared'],
'shared': ['shared'],
'type:feature': ['type:ui', 'type:data', 'type:util'],
'type:ui': ['type:data', 'type:util'],
'type:data': ['type:util'],
'type:util': noDependencies
},
};