@eui/cli 15.4.0 → 15.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.
Files changed (198) hide show
  1. package/.version.properties +1 -1
  2. package/LICENSE +296 -296
  3. package/README.md +26 -26
  4. package/bin/eui-cli.js +70 -70
  5. package/lib/build.js +153 -153
  6. package/lib/cli.js +111 -111
  7. package/lib/config.js +54 -54
  8. package/lib/generators.js +64 -64
  9. package/lib/install.js +54 -54
  10. package/lib/maven-build/build.xml +115 -115
  11. package/lib/maven-build/pom.xml +64 -64
  12. package/lib/post-build.js +33 -33
  13. package/lib/skeletons/_angular/base/.browserslistrc +16 -16
  14. package/lib/skeletons/_angular/base/.editorconfig +16 -16
  15. package/lib/skeletons/_angular/base/.euirc.json +8 -8
  16. package/lib/skeletons/_angular/base/.stylelintrc +24 -24
  17. package/lib/skeletons/_angular/base/README.md +26 -26
  18. package/lib/skeletons/_angular/base/angular.json +176 -175
  19. package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +50 -50
  20. package/lib/skeletons/_angular/base/mock/app/models/user.js +8 -8
  21. package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -5
  22. package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +24 -24
  23. package/lib/skeletons/_angular/base/mock/db/db.json +12 -12
  24. package/lib/skeletons/_angular/base/mock/server.js +21 -21
  25. package/lib/skeletons/_angular/base/package.json +24 -24
  26. package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -6
  27. package/lib/skeletons/_angular/base/proxy.conf.json +6 -6
  28. package/lib/skeletons/_angular/base/src/.eslintrc.json +118 -118
  29. package/lib/skeletons/_angular/base/src/app/app-routing.module.ts +17 -17
  30. package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +66 -66
  31. package/lib/skeletons/_angular/base/src/app/app.component.html +29 -29
  32. package/lib/skeletons/_angular/base/src/app/app.component.ts +51 -51
  33. package/lib/skeletons/_angular/base/src/app/app.module.ts +35 -35
  34. package/lib/skeletons/_angular/base/src/app/core/core.module.ts +87 -87
  35. package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +31 -31
  36. package/lib/skeletons/_angular/base/src/app/features/home/home-routing.module.ts +15 -15
  37. package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +39 -39
  38. package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +11 -11
  39. package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +18 -18
  40. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -7
  41. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +7 -7
  42. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -7
  43. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +7 -7
  44. package/lib/skeletons/_angular/base/src/app/features/module1/module1-routing.module.ts +18 -18
  45. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -7
  46. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +8 -8
  47. package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +21 -21
  48. package/lib/skeletons/_angular/base/src/app/features/module2/module2-routing.module.ts +16 -16
  49. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -7
  50. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +7 -7
  51. package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +17 -17
  52. package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +45 -45
  53. package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -18
  54. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -8
  55. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -8
  56. package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -7
  57. package/lib/skeletons/_angular/base/src/assets/i18n/en.json +6 -6
  58. package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +6 -6
  59. package/lib/skeletons/_angular/base/src/config/global.ts +20 -20
  60. package/lib/skeletons/_angular/base/src/config/index.ts +8 -8
  61. package/lib/skeletons/_angular/base/src/config/modules.ts +7 -7
  62. package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -6
  63. package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -11
  64. package/lib/skeletons/_angular/base/src/environments/environment.ts +11 -11
  65. package/lib/skeletons/_angular/base/src/index.html +21 -21
  66. package/lib/skeletons/_angular/base/src/karma.conf.js +7 -7
  67. package/lib/skeletons/_angular/base/src/main.ts +14 -14
  68. package/lib/skeletons/_angular/base/src/polyfills.ts +89 -89
  69. package/lib/skeletons/_angular/base/src/styles.scss +1 -1
  70. package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -18
  71. package/lib/skeletons/_angular/base/src/tsconfig.spec.json +14 -14
  72. package/lib/skeletons/_angular/base/tsconfig.json +27 -27
  73. package/lib/skeletons/_angular/base-mobile/angular.json +160 -160
  74. package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -5
  75. package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -33
  76. package/lib/skeletons/_angular/base-mobile/package.json +28 -28
  77. package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +17 -17
  78. package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -73
  79. package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +27 -27
  80. package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +55 -55
  81. package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -44
  82. package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -89
  83. package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +31 -31
  84. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -15
  85. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +14 -14
  86. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +11 -11
  87. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -18
  88. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -11
  89. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +7 -7
  90. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -11
  91. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +7 -7
  92. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -18
  93. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -15
  94. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -17
  95. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -21
  96. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -16
  97. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -11
  98. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -7
  99. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -17
  100. package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -16
  101. package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -18
  102. package/lib/skeletons/_angular/base-mobile/src/index.html +27 -27
  103. package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +51 -51
  104. package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +19 -19
  105. package/lib/skeletons/_angular/options/ecl/angular.json +193 -193
  106. package/lib/skeletons/_angular/options/ecl/src/app/app.component.html +262 -262
  107. package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +59 -59
  108. package/lib/skeletons/_angular/options/ecl/src/app/features/home/home.component.html +70 -70
  109. package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page1/page1.component.html +1 -1
  110. package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page2/page2.component.html +1 -1
  111. package/lib/skeletons/_angular/options/ecl/src/app/features/module1/module1.component.html +1 -1
  112. package/lib/skeletons/_angular/options/ecl/src/app/features/module2/module2.component.html +1 -1
  113. package/lib/skeletons/_angular/options/ecl/src/app/shared/shared.module.ts +19 -19
  114. package/lib/skeletons/_angular/options/ecl/src/config/global.ts +20 -20
  115. package/lib/skeletons/_angular/options/openid-jwt/package.json +22 -22
  116. package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +94 -94
  117. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-dev.json +24 -24
  118. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local-mock.json +10 -10
  119. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local.json +23 -23
  120. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json +23 -23
  121. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config.json +10 -10
  122. package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.prod.ts +11 -11
  123. package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.ts +11 -11
  124. package/lib/skeletons/_angular/options/openid-jwt/src/index.html +21 -21
  125. package/lib/skeletons/web-maven/package.json +17 -17
  126. package/lib/skeletons/web-maven/pom.xml +55 -55
  127. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -22
  128. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -24
  129. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -23
  130. package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -7
  131. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +10 -10
  132. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -38
  133. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +15 -15
  134. package/lib/skeletons/web-maven/src/main/webapp/index.jsp +29 -29
  135. package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +77 -77
  136. package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +84 -84
  137. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -46
  138. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -65
  139. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -44
  140. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +10 -10
  141. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -26
  142. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +20 -20
  143. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -45
  144. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -25
  145. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -17
  146. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -29
  147. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -35
  148. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -372
  149. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -47
  150. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +25 -25
  151. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +9 -9
  152. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +25 -25
  153. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +10 -10
  154. package/lib/skeletons/web-spring-boot/pom.xml +30 -30
  155. package/lib/skeletons/web-symfony/myapp-web/angular.json +170 -170
  156. package/lib/skeletons/web-symfony/myapp-web/package.json +23 -23
  157. package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +18 -18
  158. package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +77 -77
  159. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +160 -160
  160. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +104 -104
  161. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +6 -6
  162. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +16 -16
  163. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +16 -16
  164. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +29 -29
  165. package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +17 -17
  166. package/lib/skeletons/web-symfony/myapp-web-rest/.env +28 -28
  167. package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +42 -42
  168. package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +67 -67
  169. package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +3572 -3572
  170. package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +21 -21
  171. package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +12 -12
  172. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +19 -19
  173. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +3 -3
  174. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +29 -29
  175. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +5 -5
  176. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +17 -17
  177. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +32 -32
  178. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +4 -4
  179. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +3 -3
  180. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +4 -4
  181. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +3 -3
  182. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +4 -4
  183. package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +3 -3
  184. package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +3 -3
  185. package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +3 -3
  186. package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +27 -27
  187. package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +27 -27
  188. package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +196 -196
  189. package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +99 -99
  190. package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +53 -53
  191. package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +31 -31
  192. package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +35 -35
  193. package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +51 -51
  194. package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +274 -274
  195. package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +12 -12
  196. package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +20 -20
  197. package/lib/utils.js +17 -17
  198. package/package.json +2 -2
@@ -1,30 +1,30 @@
1
- <%@ page pageEncoding="UTF-8" import="java.io.File" %>
2
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
4
- <%
5
- try {
6
- File indexFile = new File(request.getServletContext().getResource("/index.html").getFile());
7
- long lastModified = indexFile.lastModified();
8
- // Ignore the milliseconds; there may be small differences because the time that is stored by the browser is in seconds (apparently):
9
- if ((lastModified - request.getDateHeader("If-Modified-Since")) / 1000 <= 0) {
10
- response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
11
- } else {
12
- response.setDateHeader("Last-Modified", lastModified);
13
- %>
14
- <c:set var="baseHref" value="${fn:substring(url, 0, fn:length(url) - fn:length(pageContext.request.requestURI))}${pageContext.request.contextPath}" />
15
- <c:set var="srcAttribute">src="${baseHref}/</c:set>
16
- <c:set var="hrefAttribute">href="${baseHref}/</c:set>
17
- <c:import url="index.html" var="html" charEncoding="UTF-8" />
18
- <c:set var="html" value="${fn:replace(html, '<base href=\"/\">', '<base href=\"\">')}" />
19
- <c:set var="html" value="${fn:replace(html, 'src=\"', srcAttribute)}" />
20
- <c:set var="html" value="${fn:replace(html, 'href=\"', hrefAttribute)}" />
21
- ${html}
22
- <%
23
- }
24
- } catch (Exception e) {
25
- %>
26
- No index.html file present.<br/>
27
- You may have forgotten to build the Angular application before deploying to the server...
28
- <%
29
- }
1
+ <%@ page pageEncoding="UTF-8" import="java.io.File" %>
2
+ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3
+ <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
4
+ <%
5
+ try {
6
+ File indexFile = new File(request.getServletContext().getResource("/index.html").getFile());
7
+ long lastModified = indexFile.lastModified();
8
+ // Ignore the milliseconds; there may be small differences because the time that is stored by the browser is in seconds (apparently):
9
+ if ((lastModified - request.getDateHeader("If-Modified-Since")) / 1000 <= 0) {
10
+ response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
11
+ } else {
12
+ response.setDateHeader("Last-Modified", lastModified);
13
+ %>
14
+ <c:set var="baseHref" value="${fn:substring(url, 0, fn:length(url) - fn:length(pageContext.request.requestURI))}${pageContext.request.contextPath}" />
15
+ <c:set var="srcAttribute">src="${baseHref}/</c:set>
16
+ <c:set var="hrefAttribute">href="${baseHref}/</c:set>
17
+ <c:import url="index.html" var="html" charEncoding="UTF-8" />
18
+ <c:set var="html" value="${fn:replace(html, '<base href=\"/\">', '<base href=\"\">')}" />
19
+ <c:set var="html" value="${fn:replace(html, 'src=\"', srcAttribute)}" />
20
+ <c:set var="html" value="${fn:replace(html, 'href=\"', hrefAttribute)}" />
21
+ ${html}
22
+ <%
23
+ }
24
+ } catch (Exception e) {
25
+ %>
26
+ No index.html file present.<br/>
27
+ You may have forgotten to build the Angular application before deploying to the server...
28
+ <%
29
+ }
30
30
  %>
@@ -1,77 +1,77 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
- <modelVersion>4.0.0</modelVersion>
4
-
5
- <artifactId>@app.name@-web</artifactId>
6
- <version>0.1.0-SNAPSHOT</version>
7
- <packaging>war</packaging>
8
-
9
- <parent>
10
- <groupId>@app.group.id@.@app.name@</groupId>
11
- <artifactId>@app.name@</artifactId>
12
- <version>0.1.0-SNAPSHOT</version>
13
- </parent>
14
-
15
- <dependencies>
16
- <dependency>
17
- <groupId>javax.servlet</groupId>
18
- <artifactId>javax.servlet-api</artifactId>
19
- <version>4.0.1</version>
20
- <scope>provided</scope>
21
- </dependency>
22
- </dependencies>
23
-
24
- <build>
25
- <plugins>
26
- <plugin>
27
- <groupId>org.codehaus.mojo</groupId>
28
- <artifactId>exec-maven-plugin</artifactId>
29
- <version>3.1.0</version>
30
- <executions>
31
- <execution>
32
- <id>npm_package_install</id>
33
- <phase>generate-sources</phase>
34
- <goals>
35
- <goal>exec</goal>
36
- </goals>
37
- <configuration>
38
- <executable>yarn</executable>
39
- <workingDirectory>src/main/angular</workingDirectory>
40
- </configuration>
41
- </execution>
42
- <execution>
43
- <id>ng_build</id>
44
- <phase>generate-sources</phase>
45
- <goals>
46
- <goal>exec</goal>
47
- </goals>
48
- <configuration>
49
- <executable>yarn</executable>
50
- <workingDirectory>src/main/angular</workingDirectory>
51
- <arguments>
52
- <argument>build-prod</argument>
53
- <argument>--prod</argument>
54
- <argument>--aot</argument>
55
- <argument>--base-href</argument>
56
- <argument>/@app.name@/</argument>
57
- </arguments>
58
- </configuration>
59
- </execution>
60
- </executions>
61
- </plugin>
62
-
63
- <plugin>
64
- <groupId>org.apache.maven.plugins</groupId>
65
- <artifactId>maven-war-plugin</artifactId>
66
- <version>3.4.0</version>
67
- <configuration>
68
- <webResources>
69
- <resource>
70
- <directory>src/main/angular/dist</directory>
71
- </resource>
72
- </webResources>
73
- </configuration>
74
- </plugin>
75
- </plugins>
76
- </build>
77
- </project>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+
5
+ <artifactId>@app.name@-web</artifactId>
6
+ <version>0.1.0-SNAPSHOT</version>
7
+ <packaging>war</packaging>
8
+
9
+ <parent>
10
+ <groupId>@app.group.id@.@app.name@</groupId>
11
+ <artifactId>@app.name@</artifactId>
12
+ <version>0.1.0-SNAPSHOT</version>
13
+ </parent>
14
+
15
+ <dependencies>
16
+ <dependency>
17
+ <groupId>javax.servlet</groupId>
18
+ <artifactId>javax.servlet-api</artifactId>
19
+ <version>4.0.1</version>
20
+ <scope>provided</scope>
21
+ </dependency>
22
+ </dependencies>
23
+
24
+ <build>
25
+ <plugins>
26
+ <plugin>
27
+ <groupId>org.codehaus.mojo</groupId>
28
+ <artifactId>exec-maven-plugin</artifactId>
29
+ <version>3.1.0</version>
30
+ <executions>
31
+ <execution>
32
+ <id>npm_package_install</id>
33
+ <phase>generate-sources</phase>
34
+ <goals>
35
+ <goal>exec</goal>
36
+ </goals>
37
+ <configuration>
38
+ <executable>yarn</executable>
39
+ <workingDirectory>src/main/angular</workingDirectory>
40
+ </configuration>
41
+ </execution>
42
+ <execution>
43
+ <id>ng_build</id>
44
+ <phase>generate-sources</phase>
45
+ <goals>
46
+ <goal>exec</goal>
47
+ </goals>
48
+ <configuration>
49
+ <executable>yarn</executable>
50
+ <workingDirectory>src/main/angular</workingDirectory>
51
+ <arguments>
52
+ <argument>build-prod</argument>
53
+ <argument>--prod</argument>
54
+ <argument>--aot</argument>
55
+ <argument>--base-href</argument>
56
+ <argument>/@app.name@/</argument>
57
+ </arguments>
58
+ </configuration>
59
+ </execution>
60
+ </executions>
61
+ </plugin>
62
+
63
+ <plugin>
64
+ <groupId>org.apache.maven.plugins</groupId>
65
+ <artifactId>maven-war-plugin</artifactId>
66
+ <version>3.4.0</version>
67
+ <configuration>
68
+ <webResources>
69
+ <resource>
70
+ <directory>src/main/angular/dist</directory>
71
+ </resource>
72
+ </webResources>
73
+ </configuration>
74
+ </plugin>
75
+ </plugins>
76
+ </build>
77
+ </project>
@@ -1,84 +1,84 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
- <modelVersion>4.0.0</modelVersion>
4
-
5
- <artifactId>@app.name@-web-rest</artifactId>
6
- <version>0.1.0-SNAPSHOT</version>
7
- <packaging>jar</packaging>
8
-
9
- <parent>
10
- <groupId>@app.group.id@.@app.name@</groupId>
11
- <artifactId>@app.name@</artifactId>
12
- <version>0.1.0-SNAPSHOT</version>
13
- </parent>
14
-
15
- <properties>
16
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18
- <java.version>17</java.version>
19
- <springswagger.version>3.0.0</springswagger.version>
20
- </properties>
21
-
22
- <dependencies>
23
- <dependency>
24
- <groupId>org.springframework.boot</groupId>
25
- <artifactId>spring-boot-starter-web</artifactId>
26
- <exclusions>
27
- <exclusion>
28
- <groupId>org.springframework.boot</groupId>
29
- <artifactId>spring-boot-starter-tomcat</artifactId>
30
- </exclusion>
31
- </exclusions>
32
- </dependency>
33
- <!-- Add tomcat only if I want to run directly -->
34
- <dependency>
35
- <groupId>org.springframework.boot</groupId>
36
- <artifactId>spring-boot-starter-tomcat</artifactId>
37
- <scope>provided</scope>
38
- </dependency>
39
- <dependency>
40
- <groupId>org.springframework.boot</groupId>
41
- <artifactId>spring-boot-starter-data-jpa</artifactId>
42
- <exclusions>
43
- <exclusion>
44
- <groupId>org.apache.tomcat</groupId>
45
- <artifactId>tomcat-jdbc</artifactId>
46
- </exclusion>
47
- </exclusions>
48
- </dependency>
49
- <dependency>
50
- <groupId>org.springframework.security</groupId>
51
- <artifactId>spring-security-web</artifactId>
52
- <version>${spring-security.version}</version>
53
- </dependency>
54
- <dependency>
55
- <groupId>org.springframework.security</groupId>
56
- <artifactId>spring-security-config</artifactId>
57
- <version>${spring-security.version}</version>
58
- </dependency>
59
- <dependency>
60
- <groupId>com.h2database</groupId>
61
- <artifactId>h2</artifactId>
62
- <scope>runtime</scope>
63
- </dependency>
64
- <dependency>
65
- <groupId>io.springfox</groupId>
66
- <artifactId>springfox-swagger-ui</artifactId>
67
- <version>${springswagger.version}</version>
68
- </dependency>
69
- <dependency>
70
- <groupId>io.springfox</groupId>
71
- <artifactId>springfox-swagger2</artifactId>
72
- <version>${springswagger.version}</version>
73
- </dependency>
74
- </dependencies>
75
-
76
- <build>
77
- <plugins>
78
- <plugin>
79
- <groupId>org.springframework.boot</groupId>
80
- <artifactId>spring-boot-maven-plugin</artifactId>
81
- </plugin>
82
- </plugins>
83
- </build>
84
- </project>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+
5
+ <artifactId>@app.name@-web-rest</artifactId>
6
+ <version>0.1.0-SNAPSHOT</version>
7
+ <packaging>jar</packaging>
8
+
9
+ <parent>
10
+ <groupId>@app.group.id@.@app.name@</groupId>
11
+ <artifactId>@app.name@</artifactId>
12
+ <version>0.1.0-SNAPSHOT</version>
13
+ </parent>
14
+
15
+ <properties>
16
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18
+ <java.version>17</java.version>
19
+ <springswagger.version>3.0.0</springswagger.version>
20
+ </properties>
21
+
22
+ <dependencies>
23
+ <dependency>
24
+ <groupId>org.springframework.boot</groupId>
25
+ <artifactId>spring-boot-starter-web</artifactId>
26
+ <exclusions>
27
+ <exclusion>
28
+ <groupId>org.springframework.boot</groupId>
29
+ <artifactId>spring-boot-starter-tomcat</artifactId>
30
+ </exclusion>
31
+ </exclusions>
32
+ </dependency>
33
+ <!-- Add tomcat only if I want to run directly -->
34
+ <dependency>
35
+ <groupId>org.springframework.boot</groupId>
36
+ <artifactId>spring-boot-starter-tomcat</artifactId>
37
+ <scope>provided</scope>
38
+ </dependency>
39
+ <dependency>
40
+ <groupId>org.springframework.boot</groupId>
41
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
42
+ <exclusions>
43
+ <exclusion>
44
+ <groupId>org.apache.tomcat</groupId>
45
+ <artifactId>tomcat-jdbc</artifactId>
46
+ </exclusion>
47
+ </exclusions>
48
+ </dependency>
49
+ <dependency>
50
+ <groupId>org.springframework.security</groupId>
51
+ <artifactId>spring-security-web</artifactId>
52
+ <version>${spring-security.version}</version>
53
+ </dependency>
54
+ <dependency>
55
+ <groupId>org.springframework.security</groupId>
56
+ <artifactId>spring-security-config</artifactId>
57
+ <version>${spring-security.version}</version>
58
+ </dependency>
59
+ <dependency>
60
+ <groupId>com.h2database</groupId>
61
+ <artifactId>h2</artifactId>
62
+ <scope>runtime</scope>
63
+ </dependency>
64
+ <dependency>
65
+ <groupId>io.springfox</groupId>
66
+ <artifactId>springfox-swagger-ui</artifactId>
67
+ <version>${springswagger.version}</version>
68
+ </dependency>
69
+ <dependency>
70
+ <groupId>io.springfox</groupId>
71
+ <artifactId>springfox-swagger2</artifactId>
72
+ <version>${springswagger.version}</version>
73
+ </dependency>
74
+ </dependencies>
75
+
76
+ <build>
77
+ <plugins>
78
+ <plugin>
79
+ <groupId>org.springframework.boot</groupId>
80
+ <artifactId>spring-boot-maven-plugin</artifactId>
81
+ </plugin>
82
+ </plugins>
83
+ </build>
84
+ </project>
@@ -1,46 +1,46 @@
1
- package @app.group.id@.@app.name@;
2
-
3
- import @app.group.id@.@app.name@.resources.support.HateoasPageableHandlerMethodArgumentResolver;
4
- import @app.group.id@.@app.name@.resources.support.PageJsonSerializer;
5
- import org.springframework.boot.SpringApplication;
6
- import org.springframework.boot.autoconfigure.SpringBootApplication;
7
- import org.springframework.boot.builder.SpringApplicationBuilder;
8
- import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
9
- import org.springframework.context.annotation.Bean;
10
- import org.springframework.data.domain.Page;
11
- import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
12
- import org.springframework.web.WebApplicationInitializer;
13
- import org.springframework.web.method.support.HandlerMethodArgumentResolver;
14
- import org.springframework.web.servlet.config.annotation.CorsRegistry;
15
- import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
16
-
17
- import java.util.List;
18
-
19
- @SpringBootApplication
20
- public class MyappApplication extends SpringBootServletInitializer implements WebApplicationInitializer, WebMvcConfigurer {
21
- @Override
22
- protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
23
- return application.sources(MyappApplication.class);
24
- }
25
-
26
- @Override
27
- public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
28
- argumentResolvers.add(new HateoasPageableHandlerMethodArgumentResolver());
29
- }
30
-
31
- @Override
32
- public void addCorsMappings(CorsRegistry registry) {
33
- registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*").exposedHeaders("Content-Range").allowCredentials(true);
34
- }
35
-
36
- @Bean
37
- public Jackson2ObjectMapperBuilder objectMapperBuilder() {
38
- Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
39
- builder.serializerByType(Page.class, new PageJsonSerializer());
40
- return builder;
41
- }
42
-
43
- public static void main(String[] args) {
44
- SpringApplication.run(MyappApplication.class, args);
45
- }
46
- }
1
+ package @app.group.id@.@app.name@;
2
+
3
+ import @app.group.id@.@app.name@.resources.support.HateoasPageableHandlerMethodArgumentResolver;
4
+ import @app.group.id@.@app.name@.resources.support.PageJsonSerializer;
5
+ import org.springframework.boot.SpringApplication;
6
+ import org.springframework.boot.autoconfigure.SpringBootApplication;
7
+ import org.springframework.boot.builder.SpringApplicationBuilder;
8
+ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
9
+ import org.springframework.context.annotation.Bean;
10
+ import org.springframework.data.domain.Page;
11
+ import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
12
+ import org.springframework.web.WebApplicationInitializer;
13
+ import org.springframework.web.method.support.HandlerMethodArgumentResolver;
14
+ import org.springframework.web.servlet.config.annotation.CorsRegistry;
15
+ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
16
+
17
+ import java.util.List;
18
+
19
+ @SpringBootApplication
20
+ public class MyappApplication extends SpringBootServletInitializer implements WebApplicationInitializer, WebMvcConfigurer {
21
+ @Override
22
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
23
+ return application.sources(MyappApplication.class);
24
+ }
25
+
26
+ @Override
27
+ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
28
+ argumentResolvers.add(new HateoasPageableHandlerMethodArgumentResolver());
29
+ }
30
+
31
+ @Override
32
+ public void addCorsMappings(CorsRegistry registry) {
33
+ registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*").exposedHeaders("Content-Range").allowCredentials(true);
34
+ }
35
+
36
+ @Bean
37
+ public Jackson2ObjectMapperBuilder objectMapperBuilder() {
38
+ Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
39
+ builder.serializerByType(Page.class, new PageJsonSerializer());
40
+ return builder;
41
+ }
42
+
43
+ public static void main(String[] args) {
44
+ SpringApplication.run(MyappApplication.class, args);
45
+ }
46
+ }
@@ -1,65 +1,65 @@
1
- package @app.group.id@.@app.name@.domain;
2
-
3
- import jakarta.persistence.*;
4
-
5
- @Entity(name = "t_address")
6
- public class Address {
7
- @Id
8
- @SequenceGenerator(name="address_generator", sequenceName="seq_address")
9
- @GeneratedValue(generator = "address_generator")
10
- @Column(name = "address_id", nullable = false)
11
- private Long addressId;
12
-
13
- @Column(nullable = false)
14
- private String street;
15
-
16
- @Column(name = "postal_code", nullable = false)
17
- private String postalCode;
18
-
19
- @Column(nullable = false)
20
- private String city;
21
-
22
- @Column(nullable = false)
23
- private String country;
24
-
25
-
26
- public Long getAddressId() {
27
- return addressId;
28
- }
29
-
30
- public void setAddressId(Long addressId) {
31
- this.addressId = addressId;
32
- }
33
-
34
- public String getStreet() {
35
- return street;
36
- }
37
-
38
- public void setStreet(String street) {
39
- this.street = street;
40
- }
41
-
42
- public String getPostalCode() {
43
- return postalCode;
44
- }
45
-
46
- public void setPostalCode(String postalCode) {
47
- this.postalCode = postalCode;
48
- }
49
-
50
- public String getCity() {
51
- return city;
52
- }
53
-
54
- public void setCity(String city) {
55
- this.city = city;
56
- }
57
-
58
- public String getCountry() {
59
- return country;
60
- }
61
-
62
- public void setCountry(String country) {
63
- this.country = country;
64
- }
65
- }
1
+ package @app.group.id@.@app.name@.domain;
2
+
3
+ import jakarta.persistence.*;
4
+
5
+ @Entity(name = "t_address")
6
+ public class Address {
7
+ @Id
8
+ @SequenceGenerator(name="address_generator", sequenceName="seq_address")
9
+ @GeneratedValue(generator = "address_generator")
10
+ @Column(name = "address_id", nullable = false)
11
+ private Long addressId;
12
+
13
+ @Column(nullable = false)
14
+ private String street;
15
+
16
+ @Column(name = "postal_code", nullable = false)
17
+ private String postalCode;
18
+
19
+ @Column(nullable = false)
20
+ private String city;
21
+
22
+ @Column(nullable = false)
23
+ private String country;
24
+
25
+
26
+ public Long getAddressId() {
27
+ return addressId;
28
+ }
29
+
30
+ public void setAddressId(Long addressId) {
31
+ this.addressId = addressId;
32
+ }
33
+
34
+ public String getStreet() {
35
+ return street;
36
+ }
37
+
38
+ public void setStreet(String street) {
39
+ this.street = street;
40
+ }
41
+
42
+ public String getPostalCode() {
43
+ return postalCode;
44
+ }
45
+
46
+ public void setPostalCode(String postalCode) {
47
+ this.postalCode = postalCode;
48
+ }
49
+
50
+ public String getCity() {
51
+ return city;
52
+ }
53
+
54
+ public void setCity(String city) {
55
+ this.city = city;
56
+ }
57
+
58
+ public String getCountry() {
59
+ return country;
60
+ }
61
+
62
+ public void setCountry(String country) {
63
+ this.country = country;
64
+ }
65
+ }