Skip to content

Commit

Permalink
Merge pull request #3 from andrewarosario/chore/module-boundaries
Browse files Browse the repository at this point in the history
chore: enforce module boundaries
  • Loading branch information
andrewarosario committed Aug 22, 2023
2 parents 92ec3a4 + 0b21c33 commit 9c1793e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
},
{
"sourceTag": "type:feature",
"onlyDependOnLibsWithTags": ["type:feature", "type:ui"]
},
{
"sourceTag": "type:ui",
"onlyDependOnLibsWithTags": ["type:ui"]
},
{
"sourceTag": "scope:orders",
"onlyDependOnLibsWithTags": [
"scope:orders",
"scope:products",
"scope:shared"
]
},
{
"sourceTag": "scope:products",
"onlyDependOnLibsWithTags": ["scope:products", "scope:shared"]
},
{
"sourceTag": "scope:shared",
"onlyDependOnLibsWithTags": ["scope:shared"]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion modules/orders/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "modules/orders/src",
"prefix": "lib",
"tags": [],
"tags": ["type:feature", "scope:orders"],
"projectType": "library",
"targets": {
"test": {
Expand Down
2 changes: 1 addition & 1 deletion modules/products/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "modules/products/src",
"prefix": "lib",
"tags": [],
"tags": ["type:feature", "scope:products"],
"projectType": "library",
"targets": {
"test": {
Expand Down
2 changes: 1 addition & 1 deletion modules/shared/ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "modules/shared/ui/src",
"prefix": "lib",
"tags": [],
"tags": ["type:ui", "scope:shared"],
"projectType": "library",
"targets": {
"test": {
Expand Down

0 comments on commit 9c1793e

Please sign in to comment.