Skip to content

Commit

Permalink
npmw created after ./npmw started
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Sep 12, 2024
1 parent 15cdb67 commit d868354
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions generators/app/generator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ describe(`generator - ${generator}`, () => {
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(`
[
"baseName",
"applicationType",
"packageName",
"buildTool",
"applicationType",
"reactive",
"authenticationType",
"serverTestFrameworks",
Expand Down Expand Up @@ -211,9 +211,10 @@ describe(`generator - ${generator}`, () => {
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(`
[
"baseName",
"applicationType",
"packageName",
"buildTool",
"applicationType",
"enableGradleEnterprise",
"serverPort",
"serviceDiscoveryType",
"authenticationType",
Expand All @@ -224,7 +225,6 @@ describe(`generator - ${generator}`, () => {
"cacheProvider",
"enableHibernateCache",
"serverSideOptions",
"enableGradleEnterprise",
"clientFramework",
"microfrontend",
"clientTestFrameworks",
Expand All @@ -250,9 +250,9 @@ describe(`generator - ${generator}`, () => {
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(`
[
"baseName",
"applicationType",
"packageName",
"buildTool",
"applicationType",
"reactive",
"serverPort",
"serviceDiscoveryType",
Expand Down
7 changes: 6 additions & 1 deletion generators/server/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
projectVersion;

async beforeQueue() {
const { skipClient, clientFramework } = this.jhipsterConfigWithDefaults;

if (!this.fromBlueprint) {
loadStoredAppOptions.call(this);
await this.composeWithBlueprints();
Expand All @@ -113,6 +115,9 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
if (!this.delegateToBlueprint) {
await this.dependsOnBootstrapApplication();
await this.dependsOnJHipster(GENERATOR_COMMON);
if (!skipClient && clientFramework !== 'no') {
await this.dependsOnJHipster('jhipster:java:node');
}
}
}

Expand Down Expand Up @@ -349,7 +354,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {

if (field.fieldType === BYTE_BUFFER) {
this.log.warn(
`Cannot use validation in .jhipster/${entityName}.json for field ${stringifyApplicationData(field)}
`Cannot use validation in .jhipster/${entityName}.json for field ${stringifyApplicationData(field)}
Hibernate JPA 2 Metamodel does not work with Bean Validation 2 for LOB fields, so LOB validation is disabled`,
);
field.fieldValidate = false;
Expand Down

0 comments on commit d868354

Please sign in to comment.