Skip to content

Commit

Permalink
chore: introduce "type:" Nx tags dimension and set contraints
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Oct 6, 2023
1 parent c38c018 commit a9dc323
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 16 deletions.
32 changes: 24 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,36 @@
"allow": [],
"depConstraints": [
{
"sourceTag": "shared",
"onlyDependOnLibsWithTags": ["shared"]
"sourceTag": "scope:shared",
"onlyDependOnLibsWithTags": ["scope:shared"]
},
{
"sourceTag": "core",
"onlyDependOnLibsWithTags": ["core", "shared"]
"sourceTag": "scope:core",
"onlyDependOnLibsWithTags": ["scope:core", "scope:shared"]
},
{
"sourceTag": "plugin",
"onlyDependOnLibsWithTags": ["shared"]
"sourceTag": "scope:plugin",
"onlyDependOnLibsWithTags": ["scope:shared"]
},
{
"sourceTag": "tooling",
"onlyDependOnLibsWithTags": ["shared"]
"sourceTag": "scope:tooling",
"onlyDependOnLibsWithTags": ["scope:shared"]
},
{
"sourceTag": "type:e2e",
"onlyDependOnLibsWithTags": ["type:app", "type:feature"]
},
{
"sourceTag": "type:app",
"onlyDependOnLibsWithTags": ["type:feature", "type:util"]
},
{
"sourceTag": "type:feature",
"onlyDependOnLibsWithTags": ["type:util"]
},
{
"sourceTag": "type:util",
"onlyDependOnLibsWithTags": ["type:util"]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/cli-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
}
}
},
"tags": []
"tags": ["scope:core", "scope:plugin", "type:e2e"]
}
2 changes: 1 addition & 1 deletion packages/cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
}
}
},
"tags": ["core"]
"tags": ["scope:core", "type:app"]
}
2 changes: 1 addition & 1 deletion packages/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
}
}
},
"tags": ["core"]
"tags": ["scope:core", "type:feature"]
}
2 changes: 1 addition & 1 deletion packages/models/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
}
}
},
"tags": ["shared"]
"tags": ["scope:shared", "type:util"]
}
2 changes: 1 addition & 1 deletion packages/nx-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
}
}
},
"tags": ["tooling"]
"tags": ["scope:tooling", "type:feature"]
}
2 changes: 1 addition & 1 deletion packages/plugin-eslint/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
}
}
},
"tags": ["plugin"]
"tags": ["scope:plugin", "type:feature"]
}
2 changes: 1 addition & 1 deletion packages/plugin-lighthouse/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
}
}
},
"tags": ["plugin"]
"tags": ["scope:plugin", "type:feature"]
}
2 changes: 1 addition & 1 deletion packages/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
}
}
},
"tags": ["shared"]
"tags": ["scope:shared", "type:util"]
}

0 comments on commit a9dc323

Please sign in to comment.