Skip to content

Commit

Permalink
feat: module boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Mar 7, 2024
1 parent 1981e7c commit 6e32d21
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
20 changes: 18 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,24 @@
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
"sourceTag": "type:plugin",
"onlyDependOnLibsWithTags": ["type:util", "type:ui", "type:feature"]
},
{
"sourceTag": "type:app",
"onlyDependOnLibsWithTags": [ "type:util", "type:ui", "type:feature"]
},
{
"sourceTag": "type:feature",
"onlyDependOnLibsWithTags": ["type:feature", "type:ui", "type:util"]
},
{
"sourceTag": "type:ui",
"onlyDependOnLibsWithTags": ["type:ui", "type:util"]
},
{
"sourceTag": "type:util",
"onlyDependOnLibsWithTags": ["type:util"]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/example-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/example-plugin/src",
"tags": [],
"tags": ["type:plugin"],
"targets": {}
}
2 changes: 1 addition & 1 deletion apps/example-styles/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/example-styles/src",
"tags": [],
"tags": ["type:app"],
"targets": {}
}
2 changes: 1 addition & 1 deletion apps/rpc-api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
}
}
},
"tags": []
"tags": ["type:app"]
}
2 changes: 1 addition & 1 deletion libs/plugins-data-parser/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"sourceRoot": "libs/plugins-data-parser/src",
"projectType": "library",
"targets": {},
"tags": []
"tags": ["type:util"]
}
2 changes: 1 addition & 1 deletion libs/plugins-runtime/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"sourceRoot": "plugins-runtime/src",
"projectType": "library",
"targets": {},
"tags": []
"tags": ["type:feature"]
}
2 changes: 1 addition & 1 deletion libs/plugins-styles/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"outputs": ["{options.outputFile}"]
}
},
"tags": []
"tags": ["type:ui"]
}

0 comments on commit 6e32d21

Please sign in to comment.