-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
hexagonal-layers.depfile.yml
40 lines (39 loc) · 1.14 KB
/
hexagonal-layers.depfile.yml
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
# This file contains dependency rules of interaction between hexagonal layers.
#
# Use `make deptrac` to verify these rules.
deptrac:
paths:
- ./src
layers:
- name: Domain
collectors:
- type: directory
regex: src/[A-Za-z0-9]+/Domain/.*
- type: directory
regex: test/[A-Za-z0-9]+/Domain/.*
- name: Infrastructure
collectors:
- type: directory
regex: src/[A-Za-z0-9]+/Infrastructure/.*
- type: directory
regex: test/[A-Za-z0-9]+/Infrastructure/.*
- name: Application
collectors:
- type: directory
regex: src/[A-Za-z0-9]+/Application/.*
- type: directory
regex: test/[A-Za-z0-9]+/Application/.*
- name: vendor
collectors:
- type: directory
regex: vendor
ruleset:
# domain should stay tool-agnostic
Domain: ~
# this is where we integrate external technologies with the domain
Infrastructure:
- Domain
# glue code: it bootstraps the entire system, and wires HTTP/CLI interactions with infrastructure and domain
Application:
- Infrastructure
- Domain