Skip to content

Add applicationType/clientFramework/skip{Server,Client} to CoreConfig to remove jhipsterConfig as any#33614

Open
qmonmert wants to merge 1 commit into
jhipster:mainfrom
qmonmert:any310526v2
Open

Add applicationType/clientFramework/skip{Server,Client} to CoreConfig to remove jhipsterConfig as any#33614
qmonmert wants to merge 1 commit into
jhipster:mainfrom
qmonmert:any310526v2

Conversation

@qmonmert

Copy link
Copy Markdown
Contributor

Related to #30120

@qmonmert qmonmert marked this pull request as ready for review May 31, 2026 18:35
@mshima

mshima commented May 31, 2026

Copy link
Copy Markdown
Member

I don’t think we should move these properties to core.
It’s not feasible to have every type hierarchical.
We should use a more specific type and add a comment with the reason that type is used.

entityWithConfig.useMicroserviceJson = entityWithConfig.useMicroserviceJson || entityWithConfig.microserviceName !== undefined;
entityWithConfig.microserviceAppName = '';
if ((generator.jhipsterConfig as any).applicationType === APPLICATION_TYPE_GATEWAY && entityWithConfig.useMicroserviceJson) {
if (generator.jhipsterConfig.applicationType === APPLICATION_TYPE_GATEWAY && entityWithConfig.useMicroserviceJson) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Generator should be BaseApplicationGenerator. It’s the highest level generator that supports entities.

ignoreErrors,
prettierPackageJson: true,
prettierJava: !(this.jhipsterConfig as any).skipServer,
prettierJava: !this.jhipsterConfig.skipServer,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
prettierJava: !this.jhipsterConfig.skipServer,
// Prettier support is implemented in core bootstrap instead of java:bootstrap to improve parallelism in commit.
// Can be replaced by some form of prettier config injection in commit task.
prettierJava: !this.jhipsterConfig.skipServer,

[
{
when: (this.jhipsterConfig as any).clientFramework === ANGULAR,
when: this.jhipsterConfig.clientFramework === ANGULAR,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe CypressConfig should extend ClientConfig or implement coverage support for others clients.

(this.jhipsterConfig as any).skipClient ||
(buildTool !== 'gradle' && buildTool !== 'maven')
) {
if ((preferredPm && preferredPm !== 'npm') || this.jhipsterConfig.skipClient || (buildTool !== 'gradle' && buildTool !== 'maven')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

skyClient may not be relevant anymore.
If java:node is used, wrapper can be safely used.

Suggested change
if ((preferredPm && preferredPm !== 'npm') || this.jhipsterConfig.skipClient || (buildTool !== 'gradle' && buildTool !== 'maven')) {
if ((preferredPm && preferredPm !== 'npm') || (buildTool !== 'gradle' && buildTool !== 'maven')) {

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