Skip to content

Commit

Permalink
split README fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Sep 22, 2023
1 parent b1e893e commit bd3fef2
Show file tree
Hide file tree
Showing 8 changed files with 452 additions and 394 deletions.
3 changes: 2 additions & 1 deletion generators/app/support/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { applicationTypes, authenticationTypes, databaseTypes, testFrameworkType
import { getHipster, upperFirstCamelCase } from '../../base/support/index.mjs';
import { getDBTypeFromDBValue } from '../../server/support/index.mjs';
import detectLanguage from '../../languages/support/detect-language.mjs';
import { packageJson } from '../../../lib/index.mjs';

const { GATLING, CUCUMBER, CYPRESS } = testFrameworkTypes;
const { GATEWAY, MICROSERVICE, MONOLITH } = applicationTypes;
Expand Down Expand Up @@ -83,7 +84,7 @@ export const loadAppConfig = ({
application.nodeVersion = NODE_VERSION;
}

application.jhipsterVersion = config.jhipsterVersion;
application.jhipsterVersion = config.jhipsterVersion ?? packageJson.version;
application.baseName = config.baseName;
application.applicationType = config.applicationType;
application.reactive = config.reactive;
Expand Down
1 change: 1 addition & 0 deletions generators/base-application/types.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type BaseApplication = {
hipster: string;
lowercaseBaseName: string;
upperFirstCamelCaseBaseName: string;
documentationArchiveUrl: string;

projectVersion: string;
projectDescription: string;
Expand Down
2 changes: 2 additions & 0 deletions generators/bootstrap-application/generator.mts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { preparePostEntityServerDerivedProperties } from '../server/support/inde
import { getDefaultAppName } from '../project-name/support/index.mjs';
import { packageJson } from '../../lib/index.mjs';
import { loadStoredAppOptions } from '../app/support/index.mjs';
import { JHIPSTER_DOCUMENTATION_ARCHIVE_PATH, JHIPSTER_DOCUMENTATION_URL } from '../generator-constants.mjs';

const {
Validations: { MAX, MIN, MAXLENGTH, MINLENGTH, MAXBYTES, MINBYTES, PATTERN },
Expand Down Expand Up @@ -91,6 +92,7 @@ export default class BootstrapApplicationGenerator extends BaseApplicationGenera
prettierExtensions = `${prettierExtensions},java`;
}
application.prettierExtensions = prettierExtensions;
application.documentationArchiveUrl = `${JHIPSTER_DOCUMENTATION_URL}${JHIPSTER_DOCUMENTATION_ARCHIVE_PATH}v${application.jhipsterVersion}`;
},
});
}
Expand Down
Loading

0 comments on commit bd3fef2

Please sign in to comment.