Make inferred target more customizable with glob pattern #29119
evanliomain
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Inferred targets are great to not duplicating target configuration in project.json libs. However, it did not tackle a great drawback of using Nx: the duplication of configuration files.
I mean, for a librairie that contain a reusable component, I have eslint, stylelint, jest and storybook plugins on it, and it make me have 6 configuration files.
I have actually 192 of this kind of librairies, so
6*192 = 1152
files that are similar and do not provide usefull content.Moreover, it pollute merge request review.
Actually, inferred targets watch if this configuration files are present in the librairie to be defined. But I think it's a mistake to stick with this files. It could be more flexible to watch if some kind of files exists, base on customizable glob pattern.
For example:
stories.ts
, so targets storybook, build-storybook and test-storybook should be onspec.ts
, so target test should be on.css or .scss
, so target stylelint should be onTo base on a glob pattern could be the first step to remove a lot of configuration files.
Beta Was this translation helpful? Give feedback.
All reactions