generator-jhipster 8.0.0-rc.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/cli/environment-builder.mjs +3 -3
- package/dist/cli/jhipster-command.mjs +7 -3
- package/dist/cli/program.mjs +1 -1
- package/dist/generators/angular/generator.mjs +8 -7
- package/dist/generators/angular/resources/package.json +10 -9
- package/dist/generators/angular/templates/package.json.ejs +4 -8
- package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.html.ejs +6 -10
- package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/service/_entityFile_.service.ts.ejs +1 -1
- package/dist/generators/angular/templates/src/main/webapp/app/layouts/navbar/navbar.component.scss.ejs +1 -1
- package/dist/generators/angular/templates/webpack/webpack.microfrontend.js.ejs +48 -126
- package/dist/generators/app/support/config.mjs +3 -3
- package/dist/generators/base/generator.mjs +0 -3
- package/dist/generators/base/support/config.mjs +6 -6
- package/dist/generators/base/support/jhipster7-context.mjs +3 -3
- package/dist/generators/base-application/generator.mjs +2 -2
- package/dist/generators/base-application/support/enum.mjs +1 -1
- package/dist/generators/base-application/support/prepare-entity.mjs +14 -10
- package/dist/generators/base-application/support/prepare-field.mjs +11 -7
- package/dist/generators/base-application/support/prepare-relationship.mjs +12 -14
- package/dist/generators/base-workspaces/internal/docker-prompts.mjs +13 -12
- package/dist/generators/bootstrap/generator.mjs +64 -43
- package/dist/generators/bootstrap/support/auto-crlf-transform.mjs +34 -21
- package/dist/generators/bootstrap/support/eslint-transform.mjs +2 -5
- package/dist/generators/bootstrap/support/java-unused-imports-transform.mjs +2 -2
- package/dist/generators/bootstrap/support/multi-step-transform/index.mjs +17 -28
- package/dist/generators/bootstrap/support/multi-step-transform/template-file-fs.mjs +12 -6
- package/dist/generators/bootstrap/support/multi-step-transform/template-file.mjs +1 -0
- package/dist/generators/bootstrap/support/prettier-support.mjs +2 -2
- package/dist/generators/bootstrap-application/generator.mjs +10 -3
- package/dist/generators/bootstrap-application-base/generator.mjs +9 -6
- package/dist/generators/bootstrap-application-server/generator.mjs +2 -2
- package/dist/generators/client/resources/package.json +3 -3
- package/dist/generators/client/templates/src/main/webapp/content/css/loading.css.ejs +1 -1
- package/dist/generators/client/templates/webpack/webpack.microfrontend.js.jhi.ejs +14 -1
- package/dist/generators/common/files.mjs +1 -1
- package/dist/generators/common/generator.mjs +29 -7
- package/dist/generators/common/resources/package.json +3 -3
- package/dist/generators/common/templates/.lintstagedrc.cjs.ejs +21 -0
- package/dist/generators/common/templates/.prettierrc.ejs +1 -1
- package/dist/generators/common/templates/README.md.jhi.ejs +2 -0
- package/dist/generators/cypress/templates/src/test/javascript/cypress/e2e/account/settings-page.cy.ts.ejs +3 -0
- package/dist/generators/entity/prompts.mjs +123 -306
- package/dist/generators/generator-constants.mjs +5 -5
- package/dist/generators/heroku/generator.mjs +318 -595
- package/dist/generators/heroku/templates/Procfile.ejs +1 -1
- package/dist/generators/heroku/templates/application-heroku.yml.ejs +0 -12
- package/dist/generators/info/generator.mjs +6 -4
- package/dist/generators/init/generator.mjs +2 -2
- package/dist/generators/java/entity-files.mjs +1 -1
- package/dist/generators/java/generator.mjs +12 -13
- package/dist/generators/java/support/package-info-transform.mjs +20 -6
- package/dist/generators/java/templates/src/main/java/_package_/_entityPackage_/domain/_persistClass_.java.jhi.ejs +24 -28
- package/dist/generators/java/templates/src/main/java/_package_/_entityPackage_/domain/enumeration/_enumName_.java.ejs +3 -3
- package/dist/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Test.java.ejs +86 -8
- package/dist/generators/java/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_TestSamples.java.ejs +85 -0
- package/dist/generators/jdl/generator.mjs +14 -5
- package/dist/generators/kubernetes/templates/ingress.yml.ejs +0 -1
- package/dist/generators/languages/command.mjs +5 -0
- package/dist/generators/languages/generator.mjs +20 -13
- package/dist/generators/languages/translation-data.mjs +8 -13
- package/dist/generators/liquibase/generator.mjs +7 -3
- package/dist/generators/project-name/generator.mjs +1 -1
- package/dist/generators/react/generator.mjs +18 -10
- package/dist/generators/react/resources/package.json +19 -18
- package/dist/generators/react/templates/package.json.ejs +4 -5
- package/dist/generators/react/templates/src/main/webapp/app/config/icon-loader.ts.ejs +35 -33
- package/dist/generators/react/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_-update.tsx.ejs +7 -2
- package/dist/generators/react/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_.reducer.ts.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_.tsx.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/modules/home/home.tsx.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/routes.tsx.ejs +9 -2
- package/dist/generators/react/templates/src/main/webapp/app/shared/layout/header/header-components.tsx.ejs +1 -1
- package/dist/generators/react/templates/src/main/webapp/app/shared/layout/header/header.scss.ejs +5 -4
- package/dist/generators/react/templates/src/main/webapp/app/shared/layout/menus/entities.tsx.ejs +10 -1
- package/dist/generators/react/templates/tsconfig.test.json.ejs +1 -1
- package/dist/generators/react/templates/webpack/webpack.microfrontend.js.jhi.react.ejs +13 -58
- package/dist/generators/server/generator.mjs +13 -4
- package/dist/generators/server/resources/Dockerfile +7 -7
- package/dist/generators/server/resources/gradle/libs.versions.toml +1 -1
- package/dist/generators/server/resources/pom.xml +11 -11
- package/dist/generators/server/support/config.mjs +4 -4
- package/dist/generators/server/support/prepare-entity.mjs +5 -5
- package/dist/generators/server/support/prepare-field.mjs +20 -0
- package/dist/generators/server/support/relationship.mjs +2 -1
- package/dist/generators/server/support/templates/field-values.mjs +5 -2
- package/dist/generators/server/templates/README.md.jhi.spring-boot.ejs +0 -1
- package/dist/generators/server/templates/package.json.ejs +0 -5
- package/dist/generators/server/templates/pom.xml.ejs +1 -8
- package/dist/generators/server/templates/src/main/java/_package_/_entityPackage_/_partials_entity_/get_all_template.ejs +3 -3
- package/dist/generators/server/templates/src/main/java/_package_/_entityPackage_/service/dto/_dtoClass_.java.ejs +2 -2
- package/dist/generators/server/templates/src/main/java/_package_/_entityPackage_/web/rest/_entityClass_Resource.java.ejs +11 -11
- package/dist/generators/server/templates/src/main/java/_package_/config/JacksonConfiguration.java.ejs +2 -1
- package/dist/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs +1 -1
- package/dist/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_reactive.java.ejs +2 -0
- package/dist/generators/server/templates/src/main/java/_package_/service/MailService.java.ejs +10 -4
- package/dist/generators/server/templates/src/main/java/_package_/web/rest/PublicUserResource.java.ejs +3 -4
- package/dist/generators/server/templates/src/main/java/_package_/web/rest/UserResource.java.ejs +0 -2
- package/dist/generators/server/templates/src/main/java/_package_/web/rest/errors/ExceptionTranslator.java.ejs +4 -7
- package/dist/generators/server/templates/src/test/java/_package_/_entityPackage_/web/rest/_entityClass_ResourceIT.java.ejs +3 -3
- package/dist/generators/server/templates/src/test/java/_package_/web/rest/AccountResourceIT.java.ejs +4 -4
- package/dist/generators/spring-data-elasticsearch/templates/src/main/java/_package_/_entityPackage_/repository/search/_entityClass_SearchRepository.java.ejs +0 -2
- package/dist/generators/spring-data-neo4j/templates/src/main/java/_package_/_entityPackage_/domain/_persistClass_.java.jhi.spring_data_neo4j.ejs +3 -37
- package/dist/generators/vue/generator.mjs +25 -16
- package/dist/generators/vue/resources/package.json +17 -16
- package/dist/generators/vue/templates/package.json.ejs +3 -5
- package/dist/generators/vue/templates/src/main/webapp/app/core/jhi-navbar/jhi-navbar.component.ts.ejs +10 -3
- package/dist/generators/vue/templates/src/main/webapp/app/core/jhi-navbar/jhi-navbar.vue.ejs +3 -4
- package/dist/generators/vue/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_.service.ts.ejs +1 -1
- package/dist/generators/vue/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_.vue.ejs +12 -0
- package/dist/generators/vue/templates/src/main/webapp/app/router/index.ts.ejs +8 -1
- package/dist/generators/vue/templates/webpack/webpack.microfrontend.js.jhi.vue.ejs +19 -34
- package/dist/jdl/converters/jdl-to-json/jdl-to-json-option-converter.js +2 -2
- package/dist/jdl/converters/jdl-to-json/jdl-to-json-relationship-converter.js +1 -1
- package/dist/jdl/converters/jdl-to-json/jdl-without-application-to-json-converter.js +1 -1
- package/dist/jdl/converters/parsed-jdl-to-jdl-object/application-converter.js +1 -17
- package/dist/jdl/exporters/applications/jhipster-application-formatter.js +17 -1
- package/dist/jdl/exporters/config.js +11 -0
- package/dist/jdl/exporters/export-utils.js +2 -13
- package/dist/jdl/index.js +1 -0
- package/dist/jdl/jdl-importer.js +6 -2
- package/dist/jdl/models/jdl-application-configuration-factory.js +34 -2
- package/dist/jdl/models/jdl-application-configuration.js +6 -3
- package/dist/jdl/models/jdl-application-factory.js +2 -2
- package/dist/jdl/models/jdl-application.js +12 -3
- package/dist/jdl/parsing/jdl-ast-builder-visitor.js +63 -7
- package/dist/jdl/parsing/jdl-parser.js +52 -6
- package/dist/jdl/parsing/lexer/application-tokens.js +1 -1
- package/dist/jdl/validators/entity-validator.js +4 -2
- package/dist/jdl/validators/enum-validator.js +4 -2
- package/dist/jdl/validators/jdl-with-application-validator.js +18 -8
- package/dist/jdl/validators/jdl-without-application-validator.js +30 -29
- package/dist/jdl/validators/validator.js +1 -1
- package/dist/types/generators/base/support/config.d.mts +3 -3
- package/dist/types/generators/base-application/support/prepare-entity.d.mts +6 -1
- package/dist/types/generators/bootstrap/support/auto-crlf-transform.d.mts +3 -2
- package/dist/types/generators/bootstrap/support/multi-step-transform/index.d.mts +3 -20
- package/dist/types/generators/bootstrap/support/multi-step-transform/template-file-fs.d.mts +15 -9
- package/dist/types/generators/bootstrap/support/multi-step-transform/template-file.d.mts +1 -0
- package/dist/types/generators/generator-constants.d.mts +3 -3
- package/dist/types/generators/java/support/package-info-transform.d.mts +1 -4
- package/dist/types/generators/server/support/templates/field-values.d.mts +1 -1
- package/dist/types/jdl/exporters/config.d.ts +1 -0
- package/dist/types/jdl/index.d.ts +1 -0
- package/dist/types/jdl/jdl-importer.d.ts +1 -0
- package/dist/types/jdl/models/jdl-application-configuration-factory.d.ts +1 -0
- package/dist/types/jdl/models/jdl-application-configuration-option.d.ts +2 -2
- package/dist/types/jdl/models/jdl-application-configuration.d.ts +8 -6
- package/dist/types/jdl/models/jdl-application-factory.d.ts +1 -1
- package/dist/types/jdl/models/jdl-application.d.ts +8 -4
- package/dist/types/jdl/models/jdl-object.d.ts +1 -1
- package/dist/types/jdl/models/list-jdl-application-configuration-option.d.ts +1 -1
- package/dist/types/jdl/parsing/jdl-ast-builder-visitor.d.ts +10 -0
- package/dist/types/jdl/parsing/jdl-parser.d.ts +3 -0
- package/dist/types/jdl/parsing/lexer/application-tokens.d.ts +1 -0
- package/dist/types/jdl/validators/entity-validator.d.ts +2 -2
- package/dist/types/jdl/validators/enum-validator.d.ts +2 -2
- package/dist/types/jdl/validators/validator.d.ts +4 -1
- package/package.json +31 -31
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type SimpleGit } from 'simple-git';
|
|
2
1
|
/**
|
|
3
2
|
* Detect the file first line endings
|
|
4
3
|
*/
|
|
5
4
|
export declare function detectCrLf(filePath: string): Promise<boolean>;
|
|
6
|
-
declare const autoCrlfTransform: (
|
|
5
|
+
declare const autoCrlfTransform: ({ baseDir }: {
|
|
6
|
+
baseDir: string;
|
|
7
|
+
}) => Promise<import("p-transform").DuplexWithDebug>;
|
|
7
8
|
export default autoCrlfTransform;
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2013-2023 the original author or authors from the JHipster project.
|
|
4
|
-
*
|
|
5
|
-
* This file is part of the JHipster project, see https://www.jhipster.tech/
|
|
6
|
-
* for more information.
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*/
|
|
20
|
-
import { Duplex } from 'stream';
|
|
21
2
|
import TemplateFileFs from './template-file-fs.mjs';
|
|
22
|
-
export declare const createMultiStepTransform: () => Duplex & {
|
|
3
|
+
export declare const createMultiStepTransform: () => import("stream").Duplex & {
|
|
4
|
+
enableDebug: () => import("stream").Duplex;
|
|
5
|
+
} & {
|
|
23
6
|
templateFileFs: TemplateFileFs;
|
|
24
7
|
};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import type { MemFsEditorFile } from 'mem-fs-editor';
|
|
2
|
+
import TemplateFile from './template-file.mjs';
|
|
1
3
|
export default class TemplateFileFs {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
fragmentFiles: Record<string, TemplateFile>;
|
|
5
|
+
rootFiles: Array<MemFsEditorFile>;
|
|
6
|
+
extension: string;
|
|
7
|
+
delimiter: string;
|
|
8
|
+
constructor(options?: {
|
|
9
|
+
extension?: string;
|
|
10
|
+
delimiter?: string;
|
|
11
|
+
});
|
|
12
|
+
isTemplate(filePath: string): boolean;
|
|
13
|
+
isRootTemplate(filePath: string): boolean;
|
|
14
|
+
isDerivedTemplate(filePath: string): boolean;
|
|
15
|
+
add(file: MemFsEditorFile): TemplateFile;
|
|
16
|
+
get(filePath: string): TemplateFile;
|
|
11
17
|
}
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
export declare const BLUEPRINT_API_VERSION = "jhipster-8";
|
|
20
|
-
export declare const JHIPSTER_DEPENDENCIES_VERSION = "8.0.0
|
|
20
|
+
export declare const JHIPSTER_DEPENDENCIES_VERSION = "8.0.0";
|
|
21
21
|
export declare const JAVA_VERSION = "17";
|
|
22
22
|
export declare const JAVA_COMPATIBLE_VERSIONS: string[];
|
|
23
23
|
export declare const ADD_SPRING_MILESTONE_REPOSITORY = false;
|
|
24
|
-
export declare const NODE_VERSION = "18.18.
|
|
24
|
+
export declare const NODE_VERSION = "18.18.2";
|
|
25
25
|
export declare const OPENAPI_GENERATOR_CLI_VERSION = "2.7.0";
|
|
26
26
|
export declare const javaDependencies: Record<string, string>;
|
|
27
27
|
export declare const ELASTICSEARCH_TAG = "8.7.1";
|
|
@@ -66,4 +66,4 @@ export declare const SERVER_MAIN_SRC_DIR = "src/main/java/";
|
|
|
66
66
|
export declare const SERVER_MAIN_RES_DIR = "src/main/resources/";
|
|
67
67
|
export declare const SERVER_TEST_SRC_DIR = "src/test/java/";
|
|
68
68
|
export declare const SERVER_TEST_RES_DIR = "src/test/resources/";
|
|
69
|
-
export declare const PRETTIER_EXTENSIONS = "md,json,yml,html,cjs,mjs,js,ts,tsx,css,scss,vue,
|
|
69
|
+
export declare const PRETTIER_EXTENSIONS = "md,json,yml,html,cjs,mjs,js,ts,tsx,css,scss,vue,java";
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import { MemFsEditor } from 'mem-fs-editor';
|
|
3
1
|
import { Minimatch } from 'minimatch';
|
|
4
2
|
type PackageInfoTransformOptions = {
|
|
5
3
|
javaRoots: string[];
|
|
6
|
-
editor: MemFsEditor;
|
|
7
4
|
javadocs?: Record<string, string>;
|
|
8
5
|
};
|
|
9
|
-
declare const packageInfoTransform: ({ javaRoots,
|
|
6
|
+
declare const packageInfoTransform: ({ javaRoots, javadocs }: PackageInfoTransformOptions) => import("p-transform").DuplexWithDebug;
|
|
10
7
|
export declare const matchMainJavaFiles: (srcMainJava: string) => Minimatch;
|
|
11
8
|
export default packageInfoTransform;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function getJavaValueGeneratorForType(type: any): "UUID.randomUUID().toString()" | "UUID.randomUUID()" | "
|
|
1
|
+
export function getJavaValueGeneratorForType(type: any): "UUID.randomUUID().toString()" | "UUID.randomUUID()" | "intCount.incrementAndGet()" | "longCount.incrementAndGet()";
|
|
2
2
|
export function getPrimaryKeyValue(primaryKey: string, databaseType: string, defaultValue?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeYoRcContent: (oldConfig: Record<string, Record<string, any>>, newConfig: Record<string, Record<string, any>>) => Record<string, Record<string, any>>;
|
|
@@ -18,3 +18,4 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import JDLApplicationConfiguration from './jdl-application-configuration.js';
|
|
20
20
|
export default function createApplicationConfigurationFromObject(configurationObject?: {}): JDLApplicationConfiguration;
|
|
21
|
+
export declare function createApplicationNamespaceConfigurationFromObject(parsedNamespaceConfigs?: Record<string, Record<string, any>>): Array<JDLApplicationConfiguration>;
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
export default class JDLApplicationConfigurationOption {
|
|
20
|
-
name:
|
|
20
|
+
name: string;
|
|
21
21
|
value: any;
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new application option.
|
|
24
24
|
* @param {String} name - the option's name.
|
|
25
25
|
* @param {any} value - the option's value, can be virtually anything: a String, an Int, a boolean...
|
|
26
26
|
*/
|
|
27
|
-
constructor(name:
|
|
27
|
+
constructor(name: string, value: any);
|
|
28
28
|
getValue(): any;
|
|
29
29
|
toString(): string;
|
|
30
30
|
}
|
|
@@ -16,12 +16,14 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
+
import JDLApplicationConfigurationOption from './jdl-application-configuration-option.js';
|
|
19
20
|
export default class JDLApplicationConfiguration {
|
|
20
|
-
options:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
options: Record<string, JDLApplicationConfigurationOption>;
|
|
22
|
+
namespace?: string;
|
|
23
|
+
constructor(namespace?: string);
|
|
24
|
+
hasOption(optionName: string): boolean;
|
|
25
|
+
getOption(optionName: string): JDLApplicationConfigurationOption | undefined;
|
|
26
|
+
setOption(option: JDLApplicationConfigurationOption): void;
|
|
27
|
+
forEachOption(passedFunction: (option: JDLApplicationConfigurationOption) => void): void;
|
|
26
28
|
toString(indent?: number): string;
|
|
27
29
|
}
|
|
@@ -22,4 +22,4 @@ import JDLApplication from './jdl-application.js';
|
|
|
22
22
|
* @param {Object} config - the application configuration.
|
|
23
23
|
* @returns {JDLApplication} the created JDL application.
|
|
24
24
|
*/
|
|
25
|
-
export default function createJDLApplication(config?: any): JDLApplication;
|
|
25
|
+
export default function createJDLApplication(config?: any, namespaceConfigs?: Record<string, Record<string, any>>): JDLApplication;
|
|
@@ -16,15 +16,19 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
+
import JDLApplicationConfigurationOption from './jdl-application-configuration-option.js';
|
|
20
|
+
import JDLApplicationConfiguration from './jdl-application-configuration.js';
|
|
19
21
|
export default class JDLApplication {
|
|
20
|
-
config:
|
|
22
|
+
config: JDLApplicationConfiguration;
|
|
23
|
+
namespaceConfigs: Array<JDLApplicationConfiguration>;
|
|
21
24
|
entityNames: any;
|
|
22
25
|
options: any;
|
|
23
|
-
constructor({ config, entityNames }?: any);
|
|
26
|
+
constructor({ config, entityNames, namespaceConfigs }?: any);
|
|
24
27
|
setConfigurationOption(option: any): void;
|
|
25
|
-
hasConfigurationOption(optionName: any):
|
|
28
|
+
hasConfigurationOption(optionName: any): boolean;
|
|
26
29
|
getConfigurationOptionValue(optionName: any): any;
|
|
27
|
-
forEachConfigurationOption(passedFunction:
|
|
30
|
+
forEachConfigurationOption(passedFunction: (option: JDLApplicationConfigurationOption) => void): void;
|
|
31
|
+
forEachNamespaceConfiguration(passedFunction: (option: JDLApplicationConfiguration) => void): void;
|
|
28
32
|
addEntityName(entityName: any): void;
|
|
29
33
|
addEntityNames(entityNames?: any): void;
|
|
30
34
|
getEntityNames(): any;
|
|
@@ -74,7 +74,7 @@ export default class JDLObject {
|
|
|
74
74
|
getRelationships(): JDLRelationship[];
|
|
75
75
|
addOption(option: any): void;
|
|
76
76
|
getOptionsForName(optionName: any): any[];
|
|
77
|
-
forEachOption(passedFunction: any): void;
|
|
77
|
+
forEachOption(passedFunction: (option: any) => void): void;
|
|
78
78
|
hasOption(optionName: any): boolean;
|
|
79
79
|
isEntityInMicroservice(entityName: any): boolean;
|
|
80
80
|
getOptionQuantity(): number;
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
import JDLApplicationConfigurationOption from './jdl-application-configuration-option.js';
|
|
20
20
|
export default class ListJDLApplicationConfigurationOption extends JDLApplicationConfigurationOption {
|
|
21
21
|
constructor(name: any, value: any);
|
|
22
|
-
getValue():
|
|
22
|
+
getValue(): any[];
|
|
23
23
|
toString(): string;
|
|
24
24
|
}
|
|
@@ -108,6 +108,7 @@ export default class JDLAstBuilderVisitor extends BaseJDLCSTVisitor {
|
|
|
108
108
|
applicationDeclaration(context: any): any;
|
|
109
109
|
applicationSubDeclaration(context: any): {
|
|
110
110
|
config: any;
|
|
111
|
+
namespaceConfigs: Record<string, Record<string, any>>;
|
|
111
112
|
entities: {
|
|
112
113
|
entityList: any[];
|
|
113
114
|
excluded: any[];
|
|
@@ -115,6 +116,15 @@ export default class JDLAstBuilderVisitor extends BaseJDLCSTVisitor {
|
|
|
115
116
|
options: any;
|
|
116
117
|
useOptions: any[];
|
|
117
118
|
};
|
|
119
|
+
applicationSubNamespaceConfig(context: any): {
|
|
120
|
+
namespace: any;
|
|
121
|
+
config: any;
|
|
122
|
+
};
|
|
123
|
+
applicationNamespaceConfigDeclaration(context: any): {
|
|
124
|
+
key: any;
|
|
125
|
+
value: any;
|
|
126
|
+
};
|
|
127
|
+
namespaceConfigValue(context: any): any;
|
|
118
128
|
applicationSubConfig(context: any): any;
|
|
119
129
|
applicationSubEntities(context: any): any;
|
|
120
130
|
applicationConfigDeclaration(context: any): {
|
|
@@ -54,6 +54,9 @@ export default class JDLParser extends CstParser {
|
|
|
54
54
|
deploymentConfigValue(): any;
|
|
55
55
|
applicationDeclaration(): any;
|
|
56
56
|
applicationSubDeclaration(): any;
|
|
57
|
+
applicationSubNamespaceConfig(): any;
|
|
58
|
+
applicationNamespaceConfigDeclaration(): any;
|
|
59
|
+
namespaceConfigValue(): any;
|
|
57
60
|
applicationSubConfig(): any;
|
|
58
61
|
applicationConfigDeclaration(): any;
|
|
59
62
|
configValue(): any;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
+
export declare const applicationConfigCategoryToken: import("chevrotain").TokenType;
|
|
19
20
|
declare const _default: {
|
|
20
21
|
categoryToken: import("chevrotain").TokenType;
|
|
21
22
|
tokens: import("chevrotain").TokenType[];
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import Validator from './validator.js';
|
|
19
|
+
import Validator, { ValidatorOptions } from './validator.js';
|
|
20
20
|
export default class EntityValidator extends Validator {
|
|
21
21
|
constructor();
|
|
22
|
-
validate(jdlEntity: any): void;
|
|
22
|
+
validate(jdlEntity: any, options?: ValidatorOptions): void;
|
|
23
23
|
}
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import Validator from './validator.js';
|
|
19
|
+
import Validator, { ValidatorOptions } from './validator.js';
|
|
20
20
|
export default class EnumValidator extends Validator {
|
|
21
21
|
constructor();
|
|
22
|
-
validate(jdlEnum: any): void;
|
|
22
|
+
validate(jdlEnum: any, options?: ValidatorOptions): void;
|
|
23
23
|
}
|
|
@@ -16,9 +16,12 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
+
export type ValidatorOptions = {
|
|
20
|
+
checkReservedKeywords?: boolean;
|
|
21
|
+
};
|
|
19
22
|
export default class Validator {
|
|
20
23
|
objectType: any;
|
|
21
24
|
fieldsToCheck: any;
|
|
22
25
|
constructor(objectType: any, fieldsToCheck: any);
|
|
23
|
-
validate(object: any): void;
|
|
26
|
+
validate(object: any, _options?: ValidatorOptions): void;
|
|
24
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-jhipster",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Spring Boot + Angular/React/Vue in one handy generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yeoman-generator",
|
|
@@ -103,30 +103,30 @@
|
|
|
103
103
|
"watch": "concurrently \"tsc --watch\" \"node ./watch.mjs\""
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@faker-js/faker": "8.
|
|
106
|
+
"@faker-js/faker": "8.2.0",
|
|
107
107
|
"@iarna/toml": "3.0.0",
|
|
108
|
-
"@types/ejs": "3.1.
|
|
109
|
-
"@types/lodash": "4.14.
|
|
110
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
111
|
-
"@typescript-eslint/parser": "6.
|
|
112
|
-
"@yeoman/adapter": "1.
|
|
113
|
-
"@yeoman/conflicter": "
|
|
108
|
+
"@types/ejs": "3.1.4",
|
|
109
|
+
"@types/lodash": "4.14.200",
|
|
110
|
+
"@typescript-eslint/eslint-plugin": "6.9.1",
|
|
111
|
+
"@typescript-eslint/parser": "6.9.1",
|
|
112
|
+
"@yeoman/adapter": "1.4.0",
|
|
113
|
+
"@yeoman/conflicter": "2.0.0",
|
|
114
114
|
"@yeoman/namespace": "1.0.0",
|
|
115
115
|
"@yeoman/transform": "1.2.0",
|
|
116
|
-
"@yeoman/types": "1.
|
|
117
|
-
"axios": "1.
|
|
116
|
+
"@yeoman/types": "1.1.1",
|
|
117
|
+
"axios": "1.6.0",
|
|
118
118
|
"chalk": "5.3.0",
|
|
119
119
|
"chevrotain": "11.0.3",
|
|
120
120
|
"commander": "11.1.0",
|
|
121
|
-
"conf": "
|
|
121
|
+
"conf": "12.0.0",
|
|
122
122
|
"debug": "4.3.4",
|
|
123
123
|
"didyoumean": "1.2.2",
|
|
124
124
|
"dockerfile-ast": "0.6.1",
|
|
125
125
|
"dot-properties": "1.0.1",
|
|
126
126
|
"ejs": "3.1.9",
|
|
127
127
|
"escape-string-regexp": "5.0.0",
|
|
128
|
-
"eslint": "8.
|
|
129
|
-
"eslint-plugin-import": "2.
|
|
128
|
+
"eslint": "8.52.0",
|
|
129
|
+
"eslint-plugin-import": "2.29.0",
|
|
130
130
|
"eslint-plugin-unused-imports": "3.0.0",
|
|
131
131
|
"execa": "8.0.1",
|
|
132
132
|
"fast-xml-parser": "4.3.2",
|
|
@@ -137,13 +137,13 @@
|
|
|
137
137
|
"js-yaml": "4.1.0",
|
|
138
138
|
"latest-version": "7.0.0",
|
|
139
139
|
"lodash-es": "4.17.21",
|
|
140
|
-
"mem-fs": "
|
|
141
|
-
"mem-fs-editor": "
|
|
140
|
+
"mem-fs": "4.0.0",
|
|
141
|
+
"mem-fs-editor": "11.0.0",
|
|
142
142
|
"minimatch": "9.0.3",
|
|
143
143
|
"normalize-path": "3.0.0",
|
|
144
144
|
"os-locale": "6.0.2",
|
|
145
145
|
"p-queue": "7.4.1",
|
|
146
|
-
"p-transform": "4.1.
|
|
146
|
+
"p-transform": "4.1.5",
|
|
147
147
|
"parse-gitignore": "2.0.0",
|
|
148
148
|
"pluralize": "8.0.0",
|
|
149
149
|
"prettier": "3.0.3",
|
|
@@ -155,25 +155,25 @@
|
|
|
155
155
|
"run-async": "3.0.0",
|
|
156
156
|
"semver": "7.5.4",
|
|
157
157
|
"simple-git": "3.20.0",
|
|
158
|
-
"type-fest": "4.
|
|
158
|
+
"type-fest": "4.6.0",
|
|
159
159
|
"uuid": "9.0.1",
|
|
160
160
|
"winston": "3.11.0",
|
|
161
|
-
"yaml": "2.3.
|
|
162
|
-
"yeoman-environment": "4.0.0
|
|
163
|
-
"yeoman-generator": "
|
|
161
|
+
"yaml": "2.3.3",
|
|
162
|
+
"yeoman-environment": "4.0.0",
|
|
163
|
+
"yeoman-generator": "7.1.0"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
166
|
"@actions/core": "1.10.1",
|
|
167
|
-
"@node-loaders/esbuildx": "1.
|
|
168
|
-
"@types/chai": "4.3.
|
|
167
|
+
"@node-loaders/esbuildx": "1.4.0",
|
|
168
|
+
"@types/chai": "4.3.9",
|
|
169
169
|
"@types/glob": "npm:noist@1.0.0",
|
|
170
170
|
"@types/minimatch": "npm:noist@1.0.0",
|
|
171
|
-
"@types/mocha": "10.0.
|
|
172
|
-
"@types/node": "18.18.
|
|
173
|
-
"@types/sinon-chai": "3.2.
|
|
171
|
+
"@types/mocha": "10.0.3",
|
|
172
|
+
"@types/node": "18.18.8",
|
|
173
|
+
"@types/sinon-chai": "3.2.11",
|
|
174
174
|
"chai": "4.3.10",
|
|
175
175
|
"chokidar": "3.5.3",
|
|
176
|
-
"concurrently": "8.2.
|
|
176
|
+
"concurrently": "8.2.2",
|
|
177
177
|
"cpy-cli": "5.0.0",
|
|
178
178
|
"ejs-lint": "2.0.0",
|
|
179
179
|
"eslint-config-airbnb-base": "15.0.0",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"eslint-plugin-chai-friendly": "0.7.2",
|
|
182
182
|
"eslint-plugin-mocha": "10.2.0",
|
|
183
183
|
"eslint-plugin-prettier": "5.0.1",
|
|
184
|
-
"esmocha": "1.
|
|
184
|
+
"esmocha": "1.1.1",
|
|
185
185
|
"fs-extra": "11.1.1",
|
|
186
186
|
"jest-extended": "4.0.2",
|
|
187
187
|
"jsdoc": "4.0.2",
|
|
@@ -189,15 +189,15 @@
|
|
|
189
189
|
"open-cli": "7.2.0",
|
|
190
190
|
"prettier2": "npm:prettier@2.8.8",
|
|
191
191
|
"rimraf": "5.0.5",
|
|
192
|
-
"sinon": "
|
|
192
|
+
"sinon": "17.0.1",
|
|
193
193
|
"sinon-chai": "3.7.0",
|
|
194
194
|
"sort-keys": "5.0.0",
|
|
195
195
|
"typescript": "5.2.2",
|
|
196
196
|
"yeoman-assert": "3.1.1",
|
|
197
|
-
"yeoman-test": "8.
|
|
197
|
+
"yeoman-test": "8.2.0"
|
|
198
198
|
},
|
|
199
199
|
"peerDependencies": {
|
|
200
|
-
"yeoman-test": "8.
|
|
200
|
+
"yeoman-test": "8.2.0"
|
|
201
201
|
},
|
|
202
202
|
"peerDependenciesMeta": {
|
|
203
203
|
"yeoman-test": {
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
}
|
|
206
206
|
},
|
|
207
207
|
"engines": {
|
|
208
|
-
"node": "^18.13.0 || >= 20.
|
|
208
|
+
"node": "^18.13.0 || >= 20.6.1",
|
|
209
209
|
"npm": ">=8.0.0"
|
|
210
210
|
},
|
|
211
211
|
"collective": {
|