Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(client-common): remove ClientsModulesFactory that was only containing lintstaged configuration #10450

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

murdos
Copy link
Contributor

@murdos murdos commented Jul 29, 2024

ClientsModulesFactory was previously doing more things, but it now only append lintstaged configuration. By moving things to each client, we can use a more fined grained configuration (e.g. vue extension only for vue client, tsx for react, ...).

Preparation for #10421

…ontaining lintstaged configuration

ClientsModulesFactory was previously doing more things, but it now only append lintstaged configuration.
By moving things to each client, we can use a more fined grained configuration (e.g. vue extension only for vue client, tsx for react, ...).
@@ -83,7 +82,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
Assert.notNull(PROPERTIES, properties);

//@formatter:off
return ClientsModulesFactory.clientModuleBuilder(properties)
return moduleBuilder(properties)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@renanfranca : I don't think this was useful for Thymeleaf, since eslint is not even a dependency, so it could be missing.
WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my first issue adding the "frontend" module. I remember using lint in the generated project to help me format the template code, but I am not sure if the Client.... class helped me. However, there is a Prettier configuration in the deleted Client.... class.

Maybe I copied and pasted 🤔 and learned while doing...

Copy link
Contributor

@renanfranca renanfranca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 😁

@murdos murdos merged commit 361a1e8 into jhipster:main Jul 29, 2024
35 checks passed
@murdos murdos deleted the remove-common-client branch July 29, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants