Exclude Apps in affected scripts by tags from nx.json
See original GitHub issueCurrently the only way to exclude apps and libs from being processed by the affected scripts, is by their names. It would be useful, if we could exclude apps and libs in the affected scripts by their tags which can be defined in nx.json
For example having the following nx.json
....
"booking": {
"tags": ["booking"]
},
"error-page": {
"tags": ["error-page"]
},
"my-nanosite": {
"tags": ["my-nanosite", "nanosites"]
},
"my-other-nanosite": {
"tags": ["my-other-nanosite", "nanosites"]
},
...
and running npm run affected:apps -- --base=origin/develop --exclude="tags:nanosites"
or something similar 😃 only apps should printed out, which are affected by changes and do not have the nanosites
tag.
It should also be possible to pass a list of tags to be excluded.
This would save us a lot of headaches, because we have more than 50 nanosites and adding them by name in the exclude part is tedious and error prone.
I know the nx.json is used for linting, but could that purpose be extended?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:26 (15 by maintainers)
Unstale
Hi,
I saw there is a pullrequest for .nxignore --> PR #1585
However it only works for the
workspace-lint
command and not theaffected
commandsCan it be added in? I see that its added in the
core/file-utils.ts
in the functionallFilesInDir
However thats only use in the
workspace-lint
as i observed.Can we add the ignore machanism for the
affected
as well?From what I observe there are several places this mechanism can be coded in, if someone would guide with me it would be great.
I like the
option the most. Please advise 😄, If so can i work on it and open a PR?