Skip to content

Commit

Permalink
refactor: change template to add order
Browse files Browse the repository at this point in the history
  • Loading branch information
renanfranca committed Sep 24, 2024
1 parent c85306a commit b666ca8
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.addTemplate("infrastructure/secondary/KeycloakAuthRepository.ts")
.addTemplate("infrastructure/secondary/KeycloakHttp.ts")
.and()
.add(APP_SOURCE.template("test/webapp/unit/auth/application/AuthProvider.spec.ts"), TEST_DESTINATION.append("unit/auth/application/AuthProvider.spec.ts"))
.batch(APP_SOURCE.append("test/webapp/unit/auth/infrastructure/secondary"), TEST_DESTINATION.append("unit/auth/infrastructure/secondary"))
.addTemplate("KeycloakAuthRepository.spec.ts")
.addTemplate("KeycloakHttp.spec.ts")
.addTemplate("KeycloakHttpStub.ts")
.addTemplate("KeycloakStub.ts")
.and()
.and()
.mandatoryReplacements()
.in(path("src/main/webapp/app/main.ts"))
Expand All @@ -76,15 +83,6 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
)
.and()
.and()
.files()
.add(APP_SOURCE.template("test/webapp/unit/auth/application/AuthProvider.spec.ts"), TEST_DESTINATION.append("unit/auth/application/AuthProvider.spec.ts"))
.batch(APP_SOURCE.append("test/webapp/unit/auth/infrastructure/secondary"), TEST_DESTINATION.append("unit/auth/infrastructure/secondary"))
.addTemplate("KeycloakAuthRepository.spec.ts")
.addTemplate("KeycloakHttp.spec.ts")
.addTemplate("KeycloakHttpStub.ts")
.addTemplate("KeycloakStub.ts")
.and()
.and()
.build();
//@formatter:on
}
Expand Down

0 comments on commit b666ca8

Please sign in to comment.