Skip to content

Commit ab73bb4

Browse files
committed
chore: introduce "type:" Nx tags dimension and set contraints
1 parent 5f93699 commit ab73bb4

File tree

9 files changed

+32
-16
lines changed

9 files changed

+32
-16
lines changed

.eslintrc.json

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,36 @@
1313
"allow": [],
1414
"depConstraints": [
1515
{
16-
"sourceTag": "shared",
17-
"onlyDependOnLibsWithTags": ["shared"]
16+
"sourceTag": "scope:shared",
17+
"onlyDependOnLibsWithTags": ["scope:shared"]
1818
},
1919
{
20-
"sourceTag": "core",
21-
"onlyDependOnLibsWithTags": ["core", "shared"]
20+
"sourceTag": "scope:core",
21+
"onlyDependOnLibsWithTags": ["scope:core", "scope:shared"]
2222
},
2323
{
24-
"sourceTag": "plugin",
25-
"onlyDependOnLibsWithTags": ["shared"]
24+
"sourceTag": "scope:plugin",
25+
"onlyDependOnLibsWithTags": ["scope:shared"]
2626
},
2727
{
28-
"sourceTag": "tooling",
29-
"onlyDependOnLibsWithTags": ["shared"]
28+
"sourceTag": "scope:tooling",
29+
"onlyDependOnLibsWithTags": ["scope:shared"]
30+
},
31+
{
32+
"sourceTag": "type:e2e",
33+
"onlyDependOnLibsWithTags": ["type:app", "type:feature"]
34+
},
35+
{
36+
"sourceTag": "type:app",
37+
"onlyDependOnLibsWithTags": ["type:feature", "type:util"]
38+
},
39+
{
40+
"sourceTag": "type:feature",
41+
"onlyDependOnLibsWithTags": ["type:util"]
42+
},
43+
{
44+
"sourceTag": "type:util",
45+
"onlyDependOnLibsWithTags": ["type:util"]
3046
}
3147
]
3248
}

examples/cli-e2e/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
}
1515
},
16-
"tags": []
16+
"tags": ["scope:core", "scope:plugin", "type:e2e"]
1717
}

packages/cli/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242
}
4343
}
4444
},
45-
"tags": ["core"]
45+
"tags": ["scope:core", "type:app"]
4646
}

packages/core/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535
}
3636
}
3737
},
38-
"tags": ["core"]
38+
"tags": ["scope:core", "type:feature"]
3939
}

packages/models/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
}
3939
}
4040
},
41-
"tags": ["shared"]
41+
"tags": ["scope:shared", "type:util"]
4242
}

packages/nx-plugin/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
}
6161
}
6262
},
63-
"tags": ["tooling"]
63+
"tags": ["scope:tooling", "type:feature"]
6464
}

packages/plugin-eslint/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
}
3939
}
4040
},
41-
"tags": ["plugin"]
41+
"tags": ["scope:plugin", "type:feature"]
4242
}

packages/plugin-lighthouse/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
}
3535
}
3636
},
37-
"tags": ["plugin"]
37+
"tags": ["scope:plugin", "type:feature"]
3838
}

packages/utils/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343
}
4444
}
4545
},
46-
"tags": ["shared"]
46+
"tags": ["scope:shared", "type:util"]
4747
}

0 commit comments

Comments
 (0)