generator-jhipster 7.2.0 → 7.4.1
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/cli/environment-builder.js +1 -0
- package/cli/import-jdl.js +3 -2
- package/cli/jdl.js +1 -0
- package/cli/jhipster-command.js +2 -2
- package/cli/program.js +32 -29
- package/generators/app/index.js +35 -26
- package/generators/aws/index.js +8 -8
- package/generators/aws/lib/eb.js +1 -1
- package/generators/azure-app-service/index.js +16 -9
- package/generators/azure-app-service/templates/github/workflows/azure-app-service.yml.ejs +2 -2
- package/generators/azure-spring-cloud/index.js +16 -9
- package/generators/azure-spring-cloud/templates/github/workflows/azure-spring-cloud.yml.ejs +2 -2
- package/generators/bootstrap/index.js +57 -61
- package/generators/ci-cd/index.js +11 -8
- package/generators/ci-cd/templates/github-actions.yml.ejs +1 -1
- package/generators/ci-cd/templates/travis.yml.ejs +9 -4
- package/generators/client/__workflow/devserver-angular.json +1 -1
- package/generators/client/__workflow/devserver-react.json +1 -1
- package/generators/client/__workflow/devserver-vue.json +1 -1
- package/generators/client/files-angular.js +6 -0
- package/generators/client/files-common.js +6 -2
- package/generators/client/files-react.js +13 -2
- package/generators/client/files-vue.js +56 -6
- package/generators/client/index.js +114 -32
- package/generators/client/needle-api/needle-client-angular.js +1 -1
- package/generators/client/needle-api/needle-client-vue.js +57 -7
- package/generators/client/templates/angular/.eslintrc.json.ejs +1 -0
- package/generators/client/templates/angular/package.json +19 -19
- package/generators/client/templates/angular/package.json.ejs +2 -1
- package/generators/client/templates/angular/src/main/webapp/app/account/activate/activate.component.spec.ts.ejs +52 -54
- package/generators/client/templates/angular/src/main/webapp/app/account/activate/activate.service.spec.ts.ejs +65 -0
- package/generators/client/templates/angular/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.spec.ts.ejs +35 -37
- package/generators/client/templates/angular/src/main/webapp/app/account/password/password.component.spec.ts.ejs +78 -80
- package/generators/client/templates/angular/src/main/webapp/app/account/password/password.service.spec.ts.ejs +41 -0
- package/generators/client/templates/angular/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.spec.ts.ejs +73 -75
- package/generators/client/templates/angular/src/main/webapp/app/account/password-reset/finish/password-reset-finish.service.spec.ts.ejs +62 -0
- package/generators/client/templates/angular/src/main/webapp/app/account/password-reset/init/password-reset-init.component.spec.ts.ejs +44 -46
- package/generators/client/templates/angular/src/main/webapp/app/account/password-reset/init/password-reset-init.service.spec.ts.ejs +61 -0
- package/generators/client/templates/angular/src/main/webapp/app/account/register/register.component.spec.ts.ejs +116 -118
- package/generators/client/templates/angular/src/main/webapp/app/account/register/register.service.spec.ts.ejs +66 -0
- package/generators/client/templates/angular/src/main/webapp/app/account/sessions/sessions.component.spec.ts.ejs +75 -77
- package/generators/client/templates/angular/src/main/webapp/app/account/settings/settings.component.spec.ts.ejs +74 -76
- package/generators/client/templates/angular/src/main/webapp/app/admin/configuration/configuration.component.spec.ts.ejs +48 -50
- package/generators/client/templates/angular/src/main/webapp/app/admin/configuration/configuration.service.spec.ts.ejs +50 -52
- package/generators/client/templates/angular/src/main/webapp/app/admin/health/health.component.spec.ts.ejs +45 -47
- package/generators/client/templates/angular/src/main/webapp/app/admin/health/health.service.spec.ts.ejs +66 -0
- package/generators/client/templates/angular/src/main/webapp/app/admin/health/modal/health-modal.component.spec.ts.ejs +99 -101
- package/generators/client/templates/angular/src/main/webapp/app/admin/logs/logs.component.spec.ts.ejs +61 -63
- package/generators/client/templates/angular/src/main/webapp/app/admin/logs/logs.service.spec.ts.ejs +19 -21
- package/generators/client/templates/angular/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.html.ejs +2 -2
- package/generators/client/templates/angular/src/main/webapp/app/admin/metrics/metrics.component.spec.ts.ejs +28 -30
- package/generators/client/templates/angular/src/main/webapp/app/admin/metrics/metrics.service.spec.ts.ejs +62 -64
- package/generators/client/templates/angular/src/main/webapp/app/admin/user-management/delete/user-management-delete-dialog.component.spec.ts.ejs +35 -37
- package/generators/client/templates/angular/src/main/webapp/app/admin/user-management/detail/user-management-detail.component.spec.ts.ejs +40 -42
- package/generators/client/templates/angular/src/main/webapp/app/admin/user-management/list/user-management.component.spec.ts.ejs +87 -89
- package/generators/client/templates/angular/src/main/webapp/app/admin/user-management/service/user-management.service.spec.ts.ejs +41 -43
- package/generators/client/templates/angular/src/main/webapp/app/admin/user-management/update/user-management-update.component.spec.ts.ejs +81 -83
- package/generators/client/templates/angular/src/main/webapp/app/app.module.ts.ejs +3 -0
- package/generators/client/templates/angular/src/main/webapp/app/core/auth/account.service.spec.ts.ejs +178 -180
- package/generators/client/templates/angular/src/main/webapp/app/core/config/application-config.service.ts.ejs +9 -0
- package/generators/client/templates/angular/src/main/webapp/app/entities/user/user.service.spec.ts.ejs +87 -89
- package/generators/client/templates/angular/src/main/webapp/app/home/home.component.spec.ts.ejs +93 -95
- package/generators/client/templates/angular/src/main/webapp/app/layouts/main/main.component.spec.ts.ejs +166 -168
- package/generators/client/templates/angular/src/main/webapp/app/layouts/navbar/navbar.component.spec.ts.ejs +66 -68
- package/generators/client/templates/angular/src/main/webapp/app/layouts/profiles/page-ribbon.component.spec.ts.ejs +27 -29
- package/generators/client/templates/angular/src/main/webapp/app/login/login.component.spec.ts.ejs +112 -114
- package/generators/client/templates/angular/src/main/webapp/app/shared/alert/alert-error.component.spec.ts.ejs +132 -134
- package/generators/client/templates/angular/src/main/webapp/app/shared/alert/alert.component.spec.ts.ejs +29 -31
- package/generators/client/templates/angular/webpack/webpack.custom.js.ejs +2 -3
- package/generators/client/templates/common/README.md.jhi.client.ejs +34 -0
- package/generators/client/templates/common/package.json +7 -7
- package/generators/client/templates/common/webpack/webpack.microfrontend.js.jhi.ejs +56 -0
- package/generators/client/templates/react/.eslintrc.json.ejs +1 -0
- package/generators/client/templates/react/package.json +57 -56
- package/generators/client/templates/react/package.json.ejs +5 -2
- package/generators/client/templates/react/src/main/webapp/app/app.scss.ejs +0 -3
- package/generators/client/templates/react/src/main/webapp/app/modules/account/password/password.tsx.ejs +2 -2
- package/generators/client/templates/react/src/main/webapp/app/modules/administration/configuration/configuration.tsx.ejs +2 -2
- package/generators/client/templates/react/src/main/webapp/app/modules/administration/gateway/gateway.tsx.ejs +2 -2
- package/generators/client/templates/react/src/main/webapp/app/modules/administration/metrics/metrics.tsx.ejs +6 -6
- package/generators/client/templates/react/src/main/webapp/app/modules/administration/user-management/user-management.tsx.ejs +8 -8
- package/generators/client/templates/react/src/main/webapp/app/modules/home/home.tsx.ejs +1 -1
- package/generators/client/templates/react/src/main/webapp/app/shared/layout/header/header.tsx.ejs +1 -1
- package/generators/client/templates/react/src/main/webapp/app/shared/layout/menus/account.tsx.ejs +3 -3
- package/generators/client/templates/react/src/main/webapp/app/shared/layout/menus/admin.tsx.ejs +7 -7
- package/generators/client/templates/react/src/main/webapp/app/shared/layout/menus/menu-components.tsx.ejs +1 -1
- package/generators/client/templates/react/webpack/webpack.dev.js.ejs +17 -1
- package/generators/client/templates/react/webpack/webpack.prod.js.ejs +13 -1
- package/generators/client/templates/vue/.eslintrc.js.ejs +8 -5
- package/generators/client/templates/vue/package.json +40 -49
- package/generators/client/templates/vue/package.json.ejs +14 -18
- package/generators/client/templates/vue/src/main/webapp/app/account/account.service.ts.ejs +6 -5
- package/generators/client/templates/vue/src/main/webapp/app/account/settings/settings.vue.ejs +7 -1
- package/generators/client/templates/vue/src/main/webapp/app/admin/configuration/configuration.service.ts.ejs +1 -1
- package/generators/client/templates/vue/src/main/webapp/app/admin/configuration/configuration.vue.ejs +1 -1
- package/generators/client/templates/vue/src/main/webapp/app/admin/metrics/metrics.component.ts.ejs +1 -1
- package/generators/client/templates/vue/src/main/webapp/app/admin/tracker/tracker.service.ts.ejs +5 -4
- package/generators/client/templates/vue/src/main/webapp/app/admin/user-management/user-management-edit.component.ts.ejs +9 -0
- package/generators/client/templates/vue/src/main/webapp/app/admin/user-management/user-management-view.component.ts.ejs +5 -0
- package/generators/client/templates/vue/src/main/webapp/app/admin/user-management/user-management.component.ts.ejs +5 -0
- package/generators/client/templates/vue/src/main/webapp/app/constants.ts.ejs +16 -6
- package/generators/client/templates/vue/src/main/webapp/app/core/jhi-navbar/jhi-navbar.component.ts.ejs +27 -8
- package/generators/client/templates/vue/src/main/webapp/app/core/jhi-navbar/jhi-navbar.vue.ejs +6 -0
- package/generators/client/templates/vue/src/main/webapp/app/declarations.d.ts.ejs +41 -0
- package/generators/client/templates/vue/src/main/webapp/app/entities/entities-menu.component.ts.ejs +34 -0
- package/generators/client/templates/vue/src/main/webapp/app/entities/entities-menu.vue.ejs +13 -0
- package/generators/client/templates/vue/src/main/webapp/app/entities/entities.component.ts.ejs +14 -0
- package/generators/client/templates/vue/src/main/webapp/app/entities/entities.vue.ejs +5 -0
- package/generators/client/templates/vue/{webpack/utils.js.ejs → src/main/webapp/app/index.ts.ejs} +1 -12
- package/generators/client/templates/vue/src/main/webapp/app/locale/translation.service.ts.ejs +26 -9
- package/generators/client/templates/vue/src/main/webapp/app/main.ts.ejs +23 -11
- package/generators/client/templates/vue/src/main/webapp/app/router/admin.ts.ejs +4 -4
- package/generators/client/templates/vue/src/main/webapp/app/router/entities.ts.ejs +45 -3
- package/generators/client/templates/vue/src/main/webapp/app/router/index.ts.ejs +19 -3
- package/generators/client/templates/vue/src/main/webapp/app/shared/alert/alert.service.ts.ejs +61 -0
- package/generators/client/templates/vue/src/main/webapp/app/shared/config/axios-interceptor.ts.ejs +0 -2
- package/generators/client/templates/vue/src/main/webapp/app/shared/data/data-utils.service.ts.ejs +3 -1
- package/generators/client/templates/vue/src/main/webapp/app/shims-vue.d.ts.ejs +17 -3
- package/generators/client/templates/vue/src/test/javascript/jest.conf.js.ejs +25 -10
- package/generators/client/templates/vue/src/test/javascript/spec/app/account/account.service.spec.ts.ejs +2 -2
- package/generators/client/templates/vue/src/test/javascript/spec/app/account/login-form/login-form.component.spec.ts.ejs +2 -2
- package/generators/client/templates/vue/src/test/javascript/spec/app/admin/tracker/tracker.component.spec.ts.ejs +12 -12
- package/generators/client/templates/vue/src/test/javascript/spec/app/admin/tracker/tracker.service.spec.ts.ejs +2 -1
- package/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-edit.component.spec.ts.ejs +5 -1
- package/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management-view.component.spec.ts.ejs +2 -1
- package/generators/client/templates/vue/src/test/javascript/spec/app/admin/user-management/user-management.component.spec.ts.ejs +5 -1
- package/generators/client/templates/vue/src/test/javascript/spec/app/core/jhi-navbar/jhi-navbar.component.spec.ts.ejs +10 -4
- package/generators/client/templates/vue/src/test/javascript/spec/app/entities/entities-menu.spec.ts.ejs +52 -0
- package/generators/client/templates/vue/src/test/javascript/spec/app/microfrontends/entities-menu.component.ts.ejs +4 -0
- package/generators/client/templates/vue/src/test/javascript/spec/app/microfrontends/entities-menu.vue.ejs +7 -0
- package/generators/client/templates/vue/src/test/javascript/spec/app/microfrontends/entities-router.ts.ejs +1 -0
- package/generators/client/templates/vue/src/test/javascript/spec/app/shared/alert/alert.service.spec.ts.ejs +124 -0
- package/generators/client/templates/vue/src/test/javascript/spec/app/shared/config/axios-interceptor.spec.ts.ejs +0 -1
- package/generators/client/templates/vue/tsconfig.json.ejs +6 -10
- package/generators/client/templates/vue/tsconfig.spec.json.ejs +37 -0
- package/generators/client/templates/vue/webpack/config.js.ejs +50 -0
- package/generators/client/templates/vue/webpack/vue.utils.js.ejs +33 -32
- package/generators/client/templates/vue/webpack/webpack.common.js.ejs +152 -126
- package/generators/client/templates/vue/webpack/webpack.dev.js.ejs +19 -76
- package/generators/client/templates/vue/webpack/webpack.microfrontend.js.jhi.vue.ejs +77 -0
- package/generators/client/templates/vue/webpack/webpack.prod.js.ejs +5 -41
- package/generators/cloudfoundry/index.js +9 -9
- package/generators/common/index.js +12 -10
- package/generators/common/templates/.husky/pre-commit +1 -1
- package/generators/common/templates/.prettierrc.ejs +1 -1
- package/generators/common/templates/README.md.jhi.ejs +21 -0
- package/generators/common/templates/package.json +4 -4
- package/generators/cypress/index.js +12 -9
- package/generators/cypress/templates/cypress.json.ejs +9 -2
- package/generators/cypress/templates/src/test/javascript/cypress/plugins/index.ts.ejs +4 -4
- package/generators/cypress/templates/src/test/javascript/cypress/support/commands.ts.ejs +30 -2
- package/generators/cypress/templates/src/test/javascript/cypress/support/entity.ts.ejs +4 -4
- package/generators/cypress/templates/src/test/javascript/cypress/support/index.ts.ejs +1 -1
- package/generators/cypress/templates/src/test/javascript/cypress/support/management.ts.ejs +1 -1
- package/generators/cypress/templates/src/test/javascript/cypress/support/navbar.ts.ejs +1 -1
- package/generators/database-changelog/index.js +33 -22
- package/generators/database-changelog-liquibase/index.js +12 -8
- package/generators/database-changelog-liquibase/templates/src/main/resources/config/liquibase/changelog/updated_entity_constraints.xml.ejs +1 -1
- package/generators/docker-compose/index.js +11 -12
- package/generators/docker-compose/templates/realm-config/jhipster-realm.json.ejs +13 -12
- package/generators/entities/index.js +35 -26
- package/generators/entities-client/index.js +10 -7
- package/generators/entity/index.js +49 -29
- package/generators/entity-client/files.js +7 -16
- package/generators/entity-client/index.js +74 -11
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/delete/entity-management-delete-dialog.component.spec.ts.ejs +42 -44
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/detail/entity-management-detail.component.spec.ts.ejs +58 -60
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/entity-management.module.ts.ejs +1 -1
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/list/entity-management.component.spec.ts.ejs +105 -107
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/list/entity-management.component.ts.ejs +8 -1
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/route/entity-management-routing-resolve.service.spec.ts.ejs +52 -54
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/route/entity-management-routing.module.ts.ejs +1 -1
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/service/entity.service.spec.ts.ejs +173 -175
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.html.ejs +2 -4
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.spec.ts.ejs +193 -195
- package/generators/entity-client/templates/angular/src/main/webapp/app/entities/update/entity-management-update.component.ts.ejs +7 -0
- package/generators/entity-client/templates/common/src/test/javascript/cypress/integration/entity/entity.spec.ts.ejs +269 -109
- package/generators/entity-client/templates/react/src/main/webapp/app/entities/entity-delete-dialog.tsx.ejs +5 -2
- package/generators/entity-client/templates/react/src/main/webapp/app/entities/entity-update.tsx.ejs +17 -14
- package/generators/entity-client/templates/react/src/main/webapp/app/entities/entity.tsx.ejs +11 -13
- package/generators/entity-client/templates/vue/src/main/webapp/app/entities/entity-details.component.ts.ejs +5 -0
- package/generators/entity-client/templates/vue/src/main/webapp/app/entities/entity-update.component.ts.ejs +23 -8
- package/generators/entity-client/templates/vue/src/main/webapp/app/entities/entity-update.vue.ejs +6 -9
- package/generators/entity-client/templates/vue/src/main/webapp/app/entities/entity.component.ts.ejs +9 -1
- package/generators/entity-client/templates/vue/src/main/webapp/app/entities/entity.model.ts.ejs +1 -1
- package/generators/entity-client/templates/vue/src/main/webapp/app/entities/entity.service.ts.ejs +2 -6
- package/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity-details.component.spec.ts.ejs +2 -1
- package/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity-update.component.spec.ts.ejs +8 -1
- package/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity.component.spec.ts.ejs +8 -2
- package/generators/entity-client/templates/vue/src/test/javascript/spec/app/entities/entity.service.spec.ts.ejs +1 -1
- package/generators/entity-i18n/index.js +7 -4
- package/generators/entity-server/files-couchbase.js +2 -2
- package/generators/entity-server/files.js +35 -30
- package/generators/entity-server/index.js +12 -8
- package/generators/entity-server/templates/couchbase/src/main/java/package/repository/EntityRepository.java.ejs +2 -2
- package/generators/entity-server/templates/couchbase/src/main/resources/config/couchmove/changelog/entity.fts.ejs +1 -1
- package/generators/entity-server/templates/src/main/java/package/domain/Entity.java.jhi.ejs +6 -2
- package/generators/entity-server/templates/src/main/java/package/domain/enumeration/Enum.java.ejs +1 -1
- package/generators/entity-server/templates/src/main/java/package/repository/EntityRepository.java.ejs +2 -2
- package/generators/entity-server/templates/src/main/java/package/repository/EntityRepositoryInternalImpl_reactive.java.ejs +17 -30
- package/generators/entity-server/templates/src/main/java/package/repository/EntityRepository_reactive.java.ejs +5 -5
- package/generators/entity-server/templates/src/main/java/package/repository/EntitySqlHelper_reactive.java.ejs +46 -0
- package/generators/entity-server/templates/src/main/java/package/repository/rowmapper/EntityRowMapper.java.ejs +3 -3
- package/generators/entity-server/templates/src/main/java/package/repository/search/EntitySearchRepository.java.ejs +2 -2
- package/generators/entity-server/templates/src/main/java/package/service/EntityQueryService.java.ejs +8 -8
- package/generators/entity-server/templates/src/main/java/package/service/EntityService.java.ejs +4 -4
- package/generators/entity-server/templates/src/main/java/package/service/criteria/EntityCriteria.java.ejs +4 -4
- package/generators/entity-server/templates/src/main/java/package/service/dto/EntityDTO.java.ejs +7 -3
- package/generators/entity-server/templates/src/main/java/package/service/impl/EntityServiceImpl.java.ejs +8 -8
- package/generators/entity-server/templates/src/main/java/package/service/mapper/BaseEntityMapper.java.ejs +1 -1
- package/generators/entity-server/templates/src/main/java/package/service/mapper/EntityMapper.java.ejs +7 -3
- package/generators/entity-server/templates/src/main/java/package/web/rest/EntityResource.java.ejs +51 -53
- package/generators/entity-server/templates/src/test/java/package/domain/EntityTest.java.ejs +1 -1
- package/generators/entity-server/templates/src/test/java/package/repository/search/EntitySearchRepositoryMockConfiguration.java.ejs +1 -1
- package/generators/entity-server/templates/src/test/java/package/service/dto/EntityDTOTest.java.ejs +1 -1
- package/generators/entity-server/templates/src/test/java/package/service/mapper/EntityMapperTest.java.ejs +1 -1
- package/generators/entity-server/templates/src/test/java/package/web/rest/EntityResourceIT.java.ejs +17 -14
- package/generators/gae/index.js +10 -10
- package/generators/generator-base-blueprint.js +14 -46
- package/generators/generator-base-private.js +42 -22
- package/generators/generator-base.js +57 -20
- package/generators/generator-constants.js +29 -21
- package/generators/generator-transforms.js +39 -27
- package/generators/heroku/index.js +27 -48
- package/generators/init/constants.cjs +1 -1
- package/generators/init/templates/.husky/pre-commit +1 -1
- package/generators/java/constants.cjs +1 -1
- package/generators/kubernetes/files.js +3 -0
- package/generators/kubernetes/index.js +10 -10
- package/generators/kubernetes/templates/db/couchbase.yml.ejs +1 -1
- package/generators/kubernetes/templates/deployment.yml.ejs +8 -3
- package/generators/kubernetes/templates/istio/destination-rule.yml.ejs +1 -1
- package/generators/kubernetes/templates/istio/gateway/grafana-gateway.yml.ejs +5 -2
- package/generators/kubernetes/templates/istio/gateway/jhipster-grafana-gateway.yml.ejs +5 -2
- package/generators/kubernetes/templates/istio/gateway/kiali-gateway.yml.ejs +10 -8
- package/generators/kubernetes/templates/istio/gateway/zipkin-gateway.yml.ejs +5 -2
- package/generators/kubernetes/templates/istio/gateway.yml.ejs +7 -5
- package/generators/kubernetes/templates/secret/couchbase-secret.yml.ejs +9 -0
- package/generators/kubernetes-base.js +1 -0
- package/generators/kubernetes-helm/files.js +3 -8
- package/generators/kubernetes-helm/index.js +10 -10
- package/generators/kubernetes-helm/templates/README-KUBERNETES-HELM.md.ejs +0 -1
- package/generators/kubernetes-helm/templates/app/Chart.yml.ejs +27 -0
- package/generators/kubernetes-helm/templates/app/helpers.tpl.ejs +0 -11
- package/generators/kubernetes-helm/templates/app/requirements.yml.ejs +7 -2
- package/generators/kubernetes-helm/templates/app/values.yml.ejs +68 -5
- package/generators/kubernetes-helm/templates/csvc/Chart.yml.ejs +17 -0
- package/generators/kubernetes-helm/templates/csvc/requirements.yml.ejs +2 -2
- package/generators/kubernetes-knative/index.js +10 -10
- package/generators/kubernetes-knative/templates/istio/gateway.yml.ejs +6 -4
- package/generators/kubernetes-knative/templates/service.yml.ejs +1 -1
- package/generators/languages/index.js +13 -13
- package/generators/languages/templates/src/main/webapp/i18n/hr/reset.json.ejs +1 -2
- package/generators/languages/templates/src/main/webapp/i18n/vi/login.json +1 -1
- package/generators/maven/templates/.mvn/wrapper/maven-wrapper.properties +1 -1
- package/generators/openapi-client/index.js +13 -10
- package/generators/openshift/index.js +10 -11
- package/generators/openshift/templates/deployment.yml.ejs +1 -1
- package/generators/page/index.js +12 -10
- package/generators/server/__snapshots__/generator.spec.mjs.snap +12 -0
- package/generators/server/files-sql.js +52 -0
- package/generators/server/files.js +15 -0
- package/generators/server/index.js +100 -33
- package/generators/server/needle-api/needle-server-cache.js +4 -6
- package/generators/server/templates/.mvn/wrapper/maven-wrapper.properties +1 -1
- package/generators/server/templates/build.gradle.ejs +17 -1
- package/generators/server/templates/gradle.properties.ejs +11 -11
- package/generators/server/templates/npmw +1 -1
- package/generators/server/templates/npmw.cmd +1 -1
- package/generators/server/templates/pom.xml.ejs +128 -9
- package/generators/server/templates/settings.gradle.ejs +9 -0
- package/generators/server/templates/sql/reactive/src/main/java/package/repository/UserSqlHelper.java.ejs +48 -0
- package/generators/server/templates/src/main/docker/app.yml.ejs +2 -1
- package/generators/server/templates/src/main/docker/config/realm-config/jhipster-realm.json.ejs +13 -12
- package/generators/server/templates/src/main/java/package/aop/logging/LoggingAspect.java.ejs +1 -1
- package/generators/server/templates/src/main/java/package/config/DatabaseConfiguration_cassandra.java.ejs +0 -6
- package/generators/server/templates/src/main/java/package/config/DatabaseConfiguration_sql.java.ejs +2 -2
- package/generators/server/templates/src/main/java/package/config/JacksonConfiguration.java.ejs +1 -1
- package/generators/server/templates/src/main/java/package/config/LocaleConfiguration.java.ejs +0 -2
- package/generators/server/templates/src/main/java/package/config/SecurityConfiguration.java.ejs +2 -5
- package/generators/server/templates/src/main/java/package/config/SecurityConfiguration_reactive.java.ejs +9 -1
- package/generators/server/templates/src/main/java/package/config/WebConfigurer.java.ejs +0 -1
- package/generators/server/templates/src/main/java/package/management/SecurityMetersService.java.ejs +68 -0
- package/generators/server/templates/src/main/java/package/repository/UserRepository.java.ejs +0 -23
- package/generators/server/templates/src/main/java/package/security/PersistentTokenRememberMeServices.java.ejs +0 -2
- package/generators/server/templates/src/main/java/package/security/jwt/TokenProvider.java.ejs +29 -4
- package/generators/server/templates/src/main/java/package/security/oauth2/CustomClaimConverter.java.ejs +21 -9
- package/generators/server/templates/src/main/java/package/service/UserService.java.ejs +13 -5
- package/generators/server/templates/src/main/resources/config/application-dev.yml.ejs +1 -1
- package/generators/server/templates/src/main/resources/config/application-prod.yml.ejs +1 -1
- package/generators/server/templates/src/main/resources/config/application.yml.ejs +7 -7
- package/generators/server/templates/src/main/resources/static/microservices_index.html.ejs +1 -1
- package/generators/server/templates/src/test/java/package/management/SecurityMetersServiceTests.java.ejs +113 -0
- package/generators/server/templates/src/test/java/package/security/jwt/JWTFilterTest.java.ejs +6 -1
- package/generators/server/templates/src/test/java/package/security/jwt/TokenProviderSecurityMetersTests.java.ejs +198 -0
- package/generators/server/templates/src/test/java/package/security/jwt/TokenProviderTest.java.ejs +13 -3
- package/generators/server/templates/src/test/java/package/security/oauth2/AuthorizationHeaderUtilTest.java.ejs +16 -2
- package/generators/server/templates/src/test/java/package/security/oauth2/CustomClaimConverterIT.java.ejs +63 -0
- package/generators/spring-controller/index.js +9 -7
- package/generators/spring-service/index.js +10 -7
- package/generators/upgrade/index.js +4 -5
- package/generators/utils.js +2 -2
- package/generators/workspaces/index.js +16 -7
- package/jdl/jhipster/default-application-options.js +9 -7
- package/package.json +23 -23
- package/utils/entity.js +21 -4
- package/utils/field.js +12 -2
- package/utils/multi-step-transform/index.js +8 -8
- package/generators/client/templates/react/.npmrc.ejs +0 -1
- package/generators/client/templates/vue/webpack/dev.env.js.ejs +0 -17
- package/generators/client/templates/vue/webpack/env.js.ejs +0 -67
- package/generators/client/templates/vue/webpack/loader.conf.js.ejs +0 -20
- package/generators/client/templates/vue/webpack/prod.env.js.ejs +0 -15
|
@@ -43,6 +43,7 @@ module.exports = class EnvironmentBuilder {
|
|
|
43
43
|
jhipsterSharedData: new SharedData(),
|
|
44
44
|
};
|
|
45
45
|
const env = Environment.createEnv(args, { newErrorHandler: true, ...options, sharedOptions }, adapter);
|
|
46
|
+
env.setMaxListeners(0);
|
|
46
47
|
return new EnvironmentBuilder(env);
|
|
47
48
|
}
|
|
48
49
|
|
package/cli/import-jdl.js
CHANGED
|
@@ -158,6 +158,7 @@ function runGenerator(command, { cwd, fork, env }, generatorOptions = {}) {
|
|
|
158
158
|
forceNoFiltering: undefined,
|
|
159
159
|
unidirectionalRelationships: undefined,
|
|
160
160
|
localConfigOnly: undefined,
|
|
161
|
+
commandName: undefined,
|
|
161
162
|
fromJdl: true,
|
|
162
163
|
};
|
|
163
164
|
|
|
@@ -432,8 +433,8 @@ class JDLProcessor {
|
|
|
432
433
|
applicationWithEntities.config.applications = Object.fromEntries(
|
|
433
434
|
relatedApplications.map(([baseName, config]) => {
|
|
434
435
|
config.gatewayServerPort = gatewayServerPort;
|
|
435
|
-
const { serverPort, applicationIndex } = config;
|
|
436
|
-
return [baseName, { serverPort, applicationIndex }];
|
|
436
|
+
const { clientFramework, serverPort, applicationIndex, devServerPort } = config;
|
|
437
|
+
return [baseName, { clientFramework, serverPort, applicationIndex, devServerPort }];
|
|
437
438
|
})
|
|
438
439
|
);
|
|
439
440
|
}
|
package/cli/jdl.js
CHANGED
|
@@ -54,6 +54,7 @@ module.exports = ([jdlFiles = []], options = {}, env, forkProcess) => {
|
|
|
54
54
|
}
|
|
55
55
|
const promises = jdlFiles.map(toJdlFile).map(filename => {
|
|
56
56
|
if (!fs.existsSync(filename)) {
|
|
57
|
+
logger.info(`File not found: ${filename}. Attempting download from jdl-samples repository`);
|
|
57
58
|
return download([[filename]], options);
|
|
58
59
|
}
|
|
59
60
|
return Promise.resolve(filename);
|
package/cli/jhipster-command.js
CHANGED
|
@@ -74,9 +74,9 @@ class JHipsterCommand extends Command {
|
|
|
74
74
|
* @private
|
|
75
75
|
* Override _parseCommand to execute a callback before parsing.
|
|
76
76
|
*/
|
|
77
|
-
_parseCommand(operands, unknown) {
|
|
77
|
+
async _parseCommand(operands, unknown) {
|
|
78
78
|
if (this._lazyBuildCommandCallBack) {
|
|
79
|
-
this._lazyBuildCommandCallBack(operands, unknown);
|
|
79
|
+
await this._lazyBuildCommandCallBack(operands, unknown);
|
|
80
80
|
}
|
|
81
81
|
return super._parseCommand(operands, unknown);
|
|
82
82
|
}
|
package/cli/program.js
CHANGED
|
@@ -93,7 +93,7 @@ const buildCommands = ({ program, commands = {}, envBuilder, env, loadCommand })
|
|
|
93
93
|
.excessArgumentsCallback(function (receivedArgs) {
|
|
94
94
|
rejectExtraArgs(program, this.name(), receivedArgs);
|
|
95
95
|
})
|
|
96
|
-
.lazyBuildCommand(function (operands) {
|
|
96
|
+
.lazyBuildCommand(async function (operands) {
|
|
97
97
|
logger.debug(`cmd: lazyBuildCommand ${cmdName} ${operands}`);
|
|
98
98
|
const command = this;
|
|
99
99
|
if (cmdName === 'run') {
|
|
@@ -103,25 +103,27 @@ const buildCommands = ({ program, commands = {}, envBuilder, env, loadCommand })
|
|
|
103
103
|
namespace => `${namespace.startsWith(JHIPSTER_NS) ? '' : `${JHIPSTER_NS}-`}${namespace}`
|
|
104
104
|
);
|
|
105
105
|
envBuilder.lookupGenerators(command.generatorNamespaces.map(namespace => `generator-${namespace.split(':')[0]}`));
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
await Promise.all(
|
|
107
|
+
command.generatorNamespaces.map(async namespace => {
|
|
108
|
+
if (!(await env.getPackagePath(namespace))) {
|
|
109
|
+
logger.fatal(chalk.red(`\nGenerator ${namespace} not found.\n`));
|
|
110
|
+
}
|
|
111
|
+
const generator = await env.create(namespace, { options: { help: true } });
|
|
112
|
+
this.addGeneratorArguments(generator._arguments).addGeneratorOptions(generator._options);
|
|
113
|
+
})
|
|
114
|
+
);
|
|
113
115
|
return;
|
|
114
116
|
}
|
|
115
117
|
if (!opts.cliOnly || cmdName === 'jdl') {
|
|
116
118
|
if (opts.blueprint) {
|
|
117
119
|
// Blueprint only command.
|
|
118
|
-
const generator = env.create(`${packageNameToNamespace(opts.blueprint)}:${cmdName}`, { options: { help: true } });
|
|
120
|
+
const generator = await env.create(`${packageNameToNamespace(opts.blueprint)}:${cmdName}`, { options: { help: true } });
|
|
119
121
|
command.addGeneratorArguments(generator._arguments).addGeneratorOptions(generator._options);
|
|
120
122
|
} else {
|
|
121
123
|
const generatorName = cmdName === 'jdl' ? 'app' : cmdName;
|
|
122
124
|
// Register jhipster upstream options.
|
|
123
125
|
if (cmdName !== 'jdl') {
|
|
124
|
-
const generator = env.create(`${JHIPSTER_NS}:${cmdName}`, { options: { help: true } });
|
|
126
|
+
const generator = await env.create(`${JHIPSTER_NS}:${cmdName}`, { options: { help: true } });
|
|
125
127
|
command.addGeneratorArguments(generator._arguments).addGeneratorOptions(generator._options);
|
|
126
128
|
|
|
127
129
|
const usagePath = path.resolve(generator.sourceRoot(), '../USAGE');
|
|
@@ -130,34 +132,34 @@ const buildCommands = ({ program, commands = {}, envBuilder, env, loadCommand })
|
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
134
|
if (cmdName === 'jdl' || program.opts().fromJdl) {
|
|
133
|
-
const appGenerator = env.create(`${JHIPSTER_NS}:app`, { options: { help: true } });
|
|
135
|
+
const appGenerator = await env.create(`${JHIPSTER_NS}:app`, { options: { help: true } });
|
|
134
136
|
command.addGeneratorOptions(appGenerator._options, chalk.gray(' (application)'));
|
|
135
137
|
|
|
136
|
-
const workspacesGenerator = env.create(`${JHIPSTER_NS}:workspaces`, { options: { help: true } });
|
|
138
|
+
const workspacesGenerator = await env.create(`${JHIPSTER_NS}:workspaces`, { options: { help: true } });
|
|
137
139
|
command.addGeneratorOptions(workspacesGenerator._options, chalk.gray(' (workspaces)'));
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
// Register blueprint specific options.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
chalk.yellow(` (blueprint option: ${blueprintName})`)
|
|
151
|
-
)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
143
|
+
await Promise.all(
|
|
144
|
+
envBuilder.getBlueprintsNamespaces().map(async blueprintNamespace => {
|
|
145
|
+
const generatorNamespace = `${blueprintNamespace}:${generatorName}`;
|
|
146
|
+
if (!(await env.get(generatorNamespace))) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const blueprintName = blueprintNamespace.replace(/^jhipster-/, '');
|
|
150
|
+
const blueprintGenerator = await env.create(generatorNamespace, { options: { help: true } });
|
|
151
|
+
try {
|
|
152
|
+
command.addGeneratorOptions(blueprintGenerator._options, chalk.yellow(` (blueprint option: ${blueprintName})`));
|
|
153
|
+
} catch (error) {
|
|
154
|
+
logger.info(`Error parsing options for generator ${generatorNamespace}, error: ${error}`);
|
|
155
|
+
}
|
|
156
|
+
})
|
|
157
|
+
);
|
|
156
158
|
}
|
|
157
159
|
}
|
|
158
160
|
command.addHelpText('after', moreInfo);
|
|
159
161
|
})
|
|
160
|
-
.action((...everything) => {
|
|
162
|
+
.action(async (...everything) => {
|
|
161
163
|
logger.debug('cmd: action');
|
|
162
164
|
// [args, opts, command]
|
|
163
165
|
const command = everything.pop();
|
|
@@ -166,6 +168,7 @@ const buildCommands = ({ program, commands = {}, envBuilder, env, loadCommand })
|
|
|
166
168
|
const options = {
|
|
167
169
|
...program.opts(),
|
|
168
170
|
...cmdOptions,
|
|
171
|
+
commandName: cmdName,
|
|
169
172
|
};
|
|
170
173
|
if (options.installPath) {
|
|
171
174
|
// eslint-disable-next-line no-console
|
|
@@ -177,7 +180,7 @@ const buildCommands = ({ program, commands = {}, envBuilder, env, loadCommand })
|
|
|
177
180
|
logger.debug('Executing CLI only script');
|
|
178
181
|
return loadCommand(cmdName)(args, options, env, envBuilder);
|
|
179
182
|
}
|
|
180
|
-
env.composeWith('jhipster:bootstrap', options);
|
|
183
|
+
await env.composeWith('jhipster:bootstrap', options);
|
|
181
184
|
|
|
182
185
|
if (cmdName === 'run') {
|
|
183
186
|
return Promise.all(command.generatorNamespaces.map(generator => env.run(generator, options))).then(
|
package/generators/app/index.js
CHANGED
|
@@ -25,9 +25,11 @@ const prompts = require('./prompts');
|
|
|
25
25
|
const packagejs = require('../../package.json');
|
|
26
26
|
const statistics = require('../statistics');
|
|
27
27
|
const { appDefaultConfig } = require('../generator-defaults');
|
|
28
|
+
const { GENERATOR_APP } = require('../generator-list');
|
|
28
29
|
const { JHIPSTER_CONFIG_DIR, GENERATOR_JHIPSTER } = require('../generator-constants');
|
|
29
30
|
const { MICROSERVICE } = require('../../jdl/jhipster/application-types');
|
|
30
31
|
const { OptionNames } = require('../../jdl/jhipster/application-options');
|
|
32
|
+
const { NO: CLIENT_FRAMEWORK_NO } = require('../../jdl/jhipster/client-framework-types');
|
|
31
33
|
|
|
32
34
|
const { JHI_PREFIX, BASE_NAME, JWT_SECRET_KEY, PACKAGE_NAME, PACKAGE_FOLDER, REMEMBER_ME_KEY } = OptionNames;
|
|
33
35
|
const {
|
|
@@ -39,8 +41,6 @@ const {
|
|
|
39
41
|
GENERATOR_SERVER,
|
|
40
42
|
} = require('../generator-list');
|
|
41
43
|
|
|
42
|
-
let useBlueprints;
|
|
43
|
-
|
|
44
44
|
module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
45
45
|
constructor(args, options, features) {
|
|
46
46
|
super(args, options, { unique: 'namespace', ...features });
|
|
@@ -293,8 +293,12 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
293
293
|
this.existingProject = this.jhipsterConfig.baseName !== undefined && this.jhipsterConfig.applicationType !== undefined;
|
|
294
294
|
// preserve old jhipsterVersion value for cleanup which occurs after new config is written into disk
|
|
295
295
|
this.jhipsterOldVersion = this.jhipsterConfig.jhipsterVersion;
|
|
296
|
+
}
|
|
296
297
|
|
|
297
|
-
|
|
298
|
+
async _postConstruct() {
|
|
299
|
+
if (!this.fromBlueprint) {
|
|
300
|
+
await this.composeWithBlueprints(GENERATOR_APP);
|
|
301
|
+
}
|
|
298
302
|
}
|
|
299
303
|
|
|
300
304
|
_initializing() {
|
|
@@ -343,7 +347,7 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
get initializing() {
|
|
346
|
-
if (
|
|
350
|
+
if (this.delegateToBlueprint) {
|
|
347
351
|
return;
|
|
348
352
|
}
|
|
349
353
|
return this._initializing();
|
|
@@ -358,7 +362,7 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
358
362
|
}
|
|
359
363
|
|
|
360
364
|
get prompting() {
|
|
361
|
-
if (
|
|
365
|
+
if (this.delegateToBlueprint) return;
|
|
362
366
|
return this._prompting();
|
|
363
367
|
}
|
|
364
368
|
|
|
@@ -370,7 +374,10 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
370
374
|
|
|
371
375
|
this.configOptions.logo = false;
|
|
372
376
|
if (this.jhipsterConfig.applicationType === MICROSERVICE) {
|
|
373
|
-
this.jhipsterConfig.skipClient =
|
|
377
|
+
this.jhipsterConfig.skipClient =
|
|
378
|
+
this.jhipsterConfig.skipClient ||
|
|
379
|
+
!this.jhipsterConfig.clientFramework ||
|
|
380
|
+
this.jhipsterConfig.clientFramework === CLIENT_FRAMEWORK_NO;
|
|
374
381
|
this.jhipsterConfig.withAdminUi = false;
|
|
375
382
|
this.jhipsterConfig.skipUserManagement = true;
|
|
376
383
|
}
|
|
@@ -385,7 +392,7 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
385
392
|
}
|
|
386
393
|
|
|
387
394
|
get configuring() {
|
|
388
|
-
if (
|
|
395
|
+
if (this.delegateToBlueprint) return;
|
|
389
396
|
return this._configuring();
|
|
390
397
|
}
|
|
391
398
|
|
|
@@ -402,16 +409,16 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
402
409
|
* When composing in different tasks the result would be:
|
|
403
410
|
* - composeCommon (app) -> initializing (common) -> prompting (common) -> ... -> composeServer (app) -> initializing (server) -> ...
|
|
404
411
|
*/
|
|
405
|
-
compose() {
|
|
406
|
-
this.composeWithJHipster(GENERATOR_COMMON, true);
|
|
412
|
+
async compose() {
|
|
413
|
+
await this.composeWithJHipster(GENERATOR_COMMON, true);
|
|
407
414
|
if (!this.jhipsterConfig.skipServer) {
|
|
408
|
-
this.composeWithJHipster(GENERATOR_SERVER, true);
|
|
415
|
+
await this.composeWithJHipster(GENERATOR_SERVER, true);
|
|
409
416
|
}
|
|
410
417
|
if (!this.jhipsterConfig.skipClient) {
|
|
411
|
-
this.composeWithJHipster(GENERATOR_CLIENT, true);
|
|
418
|
+
await this.composeWithJHipster(GENERATOR_CLIENT, true);
|
|
412
419
|
}
|
|
413
420
|
if (!this.configOptions.skipI18n) {
|
|
414
|
-
this.composeWithJHipster(
|
|
421
|
+
await this.composeWithJHipster(
|
|
415
422
|
GENERATOR_LANGUAGES,
|
|
416
423
|
{
|
|
417
424
|
regenerate: true,
|
|
@@ -441,26 +448,28 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
441
448
|
this.config.set(config);
|
|
442
449
|
},
|
|
443
450
|
|
|
444
|
-
composeEntities() {
|
|
451
|
+
async composeEntities() {
|
|
445
452
|
if (!this.options.withEntities) return;
|
|
446
|
-
this.composeWithJHipster(GENERATOR_ENTITIES, { skipInstall: true }, true);
|
|
453
|
+
await this.composeWithJHipster(GENERATOR_ENTITIES, { skipInstall: true }, true);
|
|
447
454
|
},
|
|
448
455
|
|
|
449
|
-
composePages() {
|
|
456
|
+
async composePages() {
|
|
450
457
|
if (!this.jhipsterConfig.pages || this.jhipsterConfig.pages.length === 0 || this.configOptions.skipComposePage) return;
|
|
451
458
|
this.configOptions.skipComposePage = true;
|
|
452
|
-
|
|
453
|
-
this.
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
459
|
+
await Promise.all(
|
|
460
|
+
this.jhipsterConfig.pages.map(page => {
|
|
461
|
+
return this.composeWithJHipster(page.generator || GENERATOR_PAGE, [page.name], {
|
|
462
|
+
skipInstall: true,
|
|
463
|
+
page,
|
|
464
|
+
});
|
|
465
|
+
})
|
|
466
|
+
);
|
|
458
467
|
},
|
|
459
468
|
};
|
|
460
469
|
}
|
|
461
470
|
|
|
462
471
|
get composing() {
|
|
463
|
-
if (
|
|
472
|
+
if (this.delegateToBlueprint) return;
|
|
464
473
|
return this._composing();
|
|
465
474
|
}
|
|
466
475
|
|
|
@@ -479,7 +488,7 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
479
488
|
}
|
|
480
489
|
|
|
481
490
|
get default() {
|
|
482
|
-
if (
|
|
491
|
+
if (this.delegateToBlueprint) return;
|
|
483
492
|
return this._default();
|
|
484
493
|
}
|
|
485
494
|
|
|
@@ -495,7 +504,7 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
495
504
|
}
|
|
496
505
|
|
|
497
506
|
get writing() {
|
|
498
|
-
if (
|
|
507
|
+
if (this.delegateToBlueprint) return;
|
|
499
508
|
return this._writing();
|
|
500
509
|
}
|
|
501
510
|
|
|
@@ -512,7 +521,7 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
512
521
|
}
|
|
513
522
|
|
|
514
523
|
get install() {
|
|
515
|
-
if (
|
|
524
|
+
if (this.delegateToBlueprint) return;
|
|
516
525
|
return this._install();
|
|
517
526
|
}
|
|
518
527
|
|
|
@@ -556,7 +565,7 @@ module.exports = class JHipsterAppGenerator extends BaseBlueprintGenerator {
|
|
|
556
565
|
}
|
|
557
566
|
|
|
558
567
|
get end() {
|
|
559
|
-
if (
|
|
568
|
+
if (this.delegateToBlueprint) return;
|
|
560
569
|
return this._end();
|
|
561
570
|
}
|
|
562
571
|
|
package/generators/aws/index.js
CHANGED
|
@@ -28,12 +28,12 @@ const { BUILD_TOOL, BASE_NAME, PROD_DATABASE_TYPE } = OptionNames;
|
|
|
28
28
|
|
|
29
29
|
const { MYSQL, POSTGRESQL, MARIADB } = require('../../jdl/jhipster/database-types');
|
|
30
30
|
|
|
31
|
-
let useBlueprints;
|
|
32
31
|
/* eslint-disable consistent-return */
|
|
33
32
|
module.exports = class extends BaseBlueprintGenerator {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
async _postConstruct() {
|
|
34
|
+
if (!this.fromBlueprint) {
|
|
35
|
+
await this.composeWithBlueprints(GENERATOR_AWS);
|
|
36
|
+
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
_initializing() {
|
|
@@ -90,7 +90,7 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
get initializing() {
|
|
93
|
-
if (
|
|
93
|
+
if (this.delegateToBlueprint) return {};
|
|
94
94
|
return this._initializing();
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -99,7 +99,7 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
get prompting() {
|
|
102
|
-
if (
|
|
102
|
+
if (this.delegateToBlueprint) return {};
|
|
103
103
|
return this._prompting();
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -128,7 +128,7 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
get configuring() {
|
|
131
|
-
if (
|
|
131
|
+
if (this.delegateToBlueprint) return {};
|
|
132
132
|
return this._configuring();
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -286,7 +286,7 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
get default() {
|
|
289
|
-
if (
|
|
289
|
+
if (this.delegateToBlueprint) return {};
|
|
290
290
|
return this._default();
|
|
291
291
|
}
|
|
292
292
|
};
|
package/generators/aws/lib/eb.js
CHANGED
|
@@ -36,7 +36,6 @@ const AZURE_WEBAPP_MAVEN_PLUGIN_VERSION = '1.8.0';
|
|
|
36
36
|
const AZURE_WEBAPP_RUNTIME = 'JAVA|11-java11';
|
|
37
37
|
const AZURE_APP_INSIGHTS_STARTER_VERSION = '2.5.1';
|
|
38
38
|
|
|
39
|
-
let useBlueprints;
|
|
40
39
|
/* eslint-disable consistent-return */
|
|
41
40
|
module.exports = class extends BaseBlueprintGenerator {
|
|
42
41
|
constructor(args, options, features) {
|
|
@@ -63,7 +62,12 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
63
62
|
this.azureSpringCloudSkipBuild = this.options.skipBuild;
|
|
64
63
|
this.azureSpringCloudSkipDeploy = this.options.skipDeploy || this.options.skipBuild;
|
|
65
64
|
this.azureSpringCloudSkipInsights = this.options.skipInsights;
|
|
66
|
-
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async _postConstruct() {
|
|
68
|
+
if (!this.fromBlueprint) {
|
|
69
|
+
await this.composeWithBlueprints(GENERATOR_AZURE_APP_SERVICE);
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
_initializing() {
|
|
@@ -92,11 +96,14 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
92
96
|
this.azureAppInsightsInstrumentationKey = '';
|
|
93
97
|
this.azureGroupId = '';
|
|
94
98
|
},
|
|
99
|
+
loadConstants() {
|
|
100
|
+
this.JAVA_VERSION = constants.JAVA_VERSION;
|
|
101
|
+
},
|
|
95
102
|
};
|
|
96
103
|
}
|
|
97
104
|
|
|
98
105
|
get initializing() {
|
|
99
|
-
if (
|
|
106
|
+
if (this.delegateToBlueprint) return {};
|
|
100
107
|
return this._initializing();
|
|
101
108
|
}
|
|
102
109
|
|
|
@@ -243,7 +250,7 @@ ${chalk.red('https://docs.microsoft.com/en-us/cli/azure/install-azure-cli/?WT.mc
|
|
|
243
250
|
}
|
|
244
251
|
|
|
245
252
|
get prompting() {
|
|
246
|
-
if (
|
|
253
|
+
if (this.delegateToBlueprint) return {};
|
|
247
254
|
return this._prompting();
|
|
248
255
|
}
|
|
249
256
|
|
|
@@ -262,7 +269,7 @@ ${chalk.red('https://docs.microsoft.com/en-us/cli/azure/install-azure-cli/?WT.mc
|
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
get configuring() {
|
|
265
|
-
if (
|
|
272
|
+
if (this.delegateToBlueprint) return {};
|
|
266
273
|
return this._configuring();
|
|
267
274
|
}
|
|
268
275
|
|
|
@@ -482,7 +489,7 @@ which is free for the first 30 days`);
|
|
|
482
489
|
}
|
|
483
490
|
|
|
484
491
|
get default() {
|
|
485
|
-
if (
|
|
492
|
+
if (this.delegateToBlueprint) return {};
|
|
486
493
|
return this._default();
|
|
487
494
|
}
|
|
488
495
|
|
|
@@ -503,7 +510,7 @@ which is free for the first 30 days`);
|
|
|
503
510
|
}
|
|
504
511
|
|
|
505
512
|
get loading() {
|
|
506
|
-
if (
|
|
513
|
+
if (this.delegateToBlueprint) return {};
|
|
507
514
|
return this._loading();
|
|
508
515
|
}
|
|
509
516
|
|
|
@@ -521,7 +528,7 @@ which is free for the first 30 days`);
|
|
|
521
528
|
}
|
|
522
529
|
|
|
523
530
|
get writing() {
|
|
524
|
-
if (
|
|
531
|
+
if (this.delegateToBlueprint) return {};
|
|
525
532
|
return this._writing();
|
|
526
533
|
}
|
|
527
534
|
|
|
@@ -645,7 +652,7 @@ You need a GitHub project correctly configured in order to use GitHub Actions.`
|
|
|
645
652
|
}
|
|
646
653
|
|
|
647
654
|
get end() {
|
|
648
|
-
if (
|
|
655
|
+
if (this.delegateToBlueprint) return {};
|
|
649
656
|
return this._end();
|
|
650
657
|
}
|
|
651
658
|
};
|
|
@@ -10,11 +10,11 @@ jobs:
|
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
12
|
- uses: actions/checkout@v2
|
|
13
|
-
- name: Set up JDK
|
|
13
|
+
- name: Set up JDK <%= JAVA_VERSION %>
|
|
14
14
|
uses: actions/setup-java@v2
|
|
15
15
|
with:
|
|
16
16
|
distribution: 'temurin'
|
|
17
|
-
java-version:
|
|
17
|
+
java-version: <%= JAVA_VERSION %>
|
|
18
18
|
- name: Cache Maven archetypes
|
|
19
19
|
uses: actions/cache@v1
|
|
20
20
|
with:
|
|
@@ -32,7 +32,6 @@ const NO_CACHE_PROVIDER = cacheTypes.NO;
|
|
|
32
32
|
const { MAVEN } = require('../../jdl/jhipster/build-tool-types');
|
|
33
33
|
const { GENERATOR_AZURE_SPRING_CLOUD } = require('../generator-list');
|
|
34
34
|
|
|
35
|
-
let useBlueprints;
|
|
36
35
|
/* eslint-disable consistent-return */
|
|
37
36
|
module.exports = class extends BaseBlueprintGenerator {
|
|
38
37
|
constructor(args, options, features) {
|
|
@@ -52,7 +51,12 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
52
51
|
|
|
53
52
|
this.azureSpringCloudSkipBuild = this.options.skipBuild;
|
|
54
53
|
this.azureSpringCloudSkipDeploy = this.options.skipDeploy || this.options.skipBuild;
|
|
55
|
-
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async _postConstruct() {
|
|
57
|
+
if (!this.fromBlueprint) {
|
|
58
|
+
await this.composeWithBlueprints(GENERATOR_AZURE_SPRING_CLOUD);
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
_initializing() {
|
|
@@ -82,11 +86,14 @@ module.exports = class extends BaseBlueprintGenerator {
|
|
|
82
86
|
this.azureSpringCloudAppName = this.config.get('azureSpringCloudAppName');
|
|
83
87
|
this.azureSpringCloudDeploymentType = this.config.get('azureSpringCloudDeploymentType');
|
|
84
88
|
},
|
|
89
|
+
loadConstants() {
|
|
90
|
+
this.JAVA_VERSION = constants.JAVA_VERSION;
|
|
91
|
+
},
|
|
85
92
|
};
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
get initializing() {
|
|
89
|
-
if (
|
|
96
|
+
if (this.delegateToBlueprint) return {};
|
|
90
97
|
return this._initializing();
|
|
91
98
|
}
|
|
92
99
|
|
|
@@ -252,7 +259,7 @@ ${chalk.red('az extension add --name spring-cloud')}`
|
|
|
252
259
|
}
|
|
253
260
|
|
|
254
261
|
get prompting() {
|
|
255
|
-
if (
|
|
262
|
+
if (this.delegateToBlueprint) return {};
|
|
256
263
|
return this._prompting();
|
|
257
264
|
}
|
|
258
265
|
|
|
@@ -269,7 +276,7 @@ ${chalk.red('az extension add --name spring-cloud')}`
|
|
|
269
276
|
}
|
|
270
277
|
|
|
271
278
|
get configuring() {
|
|
272
|
-
if (
|
|
279
|
+
if (this.delegateToBlueprint) return {};
|
|
273
280
|
return this._configuring();
|
|
274
281
|
}
|
|
275
282
|
|
|
@@ -312,7 +319,7 @@ ${chalk.red('az extension add --name spring-cloud')}`
|
|
|
312
319
|
}
|
|
313
320
|
|
|
314
321
|
get default() {
|
|
315
|
-
if (
|
|
322
|
+
if (this.delegateToBlueprint) return {};
|
|
316
323
|
return this._default();
|
|
317
324
|
}
|
|
318
325
|
|
|
@@ -328,7 +335,7 @@ ${chalk.red('az extension add --name spring-cloud')}`
|
|
|
328
335
|
}
|
|
329
336
|
|
|
330
337
|
get loading() {
|
|
331
|
-
if (
|
|
338
|
+
if (this.delegateToBlueprint) return {};
|
|
332
339
|
return this._loading();
|
|
333
340
|
}
|
|
334
341
|
|
|
@@ -356,7 +363,7 @@ ${chalk.red('az extension add --name spring-cloud')}`
|
|
|
356
363
|
}
|
|
357
364
|
|
|
358
365
|
get writing() {
|
|
359
|
-
if (
|
|
366
|
+
if (this.delegateToBlueprint) return {};
|
|
360
367
|
return this._writing();
|
|
361
368
|
}
|
|
362
369
|
|
|
@@ -482,7 +489,7 @@ for more detailed information.`
|
|
|
482
489
|
}
|
|
483
490
|
|
|
484
491
|
get end() {
|
|
485
|
-
if (
|
|
492
|
+
if (this.delegateToBlueprint) return {};
|
|
486
493
|
return this._end();
|
|
487
494
|
}
|
|
488
495
|
};
|
|
@@ -10,11 +10,11 @@ jobs:
|
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
12
|
- uses: actions/checkout@v2
|
|
13
|
-
- name: Set up JDK
|
|
13
|
+
- name: Set up JDK <%= JAVA_VERSION %>
|
|
14
14
|
uses: actions/setup-java@v2
|
|
15
15
|
with:
|
|
16
16
|
distribution: 'temurin'
|
|
17
|
-
java-version:
|
|
17
|
+
java-version: <%= JAVA_VERSION %>
|
|
18
18
|
- name: Cache Maven archetypes
|
|
19
19
|
uses: actions/cache@v1
|
|
20
20
|
with:
|