-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add applicationType/clientFramework/skip{Server,Client} to CoreConfig to remove jhipsterConfig as any #33614
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -190,7 +190,7 @@ export default class BootstrapGenerator extends CommandBaseGenerator<typeof comm | |||||||||
| await createPrettierTransform.call(this, { | ||||||||||
| ignoreErrors, | ||||||||||
| prettierPackageJson: true, | ||||||||||
| prettierJava: !(this.jhipsterConfig as any).skipServer, | ||||||||||
| prettierJava: !this.jhipsterConfig.skipServer, | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| extensions: this.prettierExtensions.join(','), | ||||||||||
| prettierOptions: this.prettierOptions, | ||||||||||
| }), | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ export default class CypressGenerator extends BaseApplicationGenerator<CypressEn | |
| await this.prompt( | ||
| [ | ||
| { | ||
| when: (this.jhipsterConfig as any).clientFramework === ANGULAR, | ||
| when: this.jhipsterConfig.clientFramework === ANGULAR, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe CypressConfig should extend ClientConfig or implement coverage support for others clients. |
||
| type: 'confirm', | ||
| name: 'cypressCoverage', | ||
| message: 'Would you like to generate code coverage for Cypress tests? [Experimental]', | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -103,11 +103,7 @@ export default class NodeGenerator extends JavaApplicationGenerator { | |||||
| this.setFeatures({ | ||||||
| customInstallTask: async (preferredPm, defaultInstallTask) => { | ||||||
| const { buildTool } = this.jhipsterConfigWithDefaults; | ||||||
| if ( | ||||||
| (preferredPm && preferredPm !== 'npm') || | ||||||
| (this.jhipsterConfig as any).skipClient || | ||||||
| (buildTool !== 'gradle' && buildTool !== 'maven') | ||||||
| ) { | ||||||
| if ((preferredPm && preferredPm !== 'npm') || this.jhipsterConfig.skipClient || (buildTool !== 'gradle' && buildTool !== 'maven')) { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. skyClient may not be relevant anymore.
Suggested change
|
||||||
| await defaultInstallTask(); | ||||||
| return; | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
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.