@eui/cli 21.0.0-alpha.4 → 21.0.0-alpha.40

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 (252) hide show
  1. package/README.md +1 -1
  2. package/bin/eui-cli.js +67 -0
  3. package/bin/scripts/build-app.js +12 -0
  4. package/bin/scripts/lint-app.js +22 -0
  5. package/bin/scripts/new.js +39 -0
  6. package/bin/scripts/serve-app.js +12 -0
  7. package/lib/app-utils/build.js +176 -0
  8. package/lib/app-utils/projects.js +41 -0
  9. package/lib/app-utils/serve.js +78 -0
  10. package/lib/build.js +130 -0
  11. package/lib/cli.js +140 -0
  12. package/lib/config.js +59 -0
  13. package/lib/generators.js +72 -0
  14. package/lib/install.js +45 -0
  15. package/lib/maven-build/build.xml +115 -0
  16. package/lib/maven-build/lib/ant-contrib-20061014.jar +0 -0
  17. package/lib/maven-build/pom.xml +64 -0
  18. package/lib/post-build.js +31 -0
  19. package/lib/skeletons/_angular/base/.browserslistrc +16 -0
  20. package/lib/skeletons/_angular/base/.editorconfig +16 -0
  21. package/lib/skeletons/_angular/base/README.md +26 -0
  22. package/lib/skeletons/_angular/base/angular.json +129 -0
  23. package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +51 -0
  24. package/lib/skeletons/_angular/base/mock/app/models/user.js +6 -0
  25. package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -0
  26. package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +44 -0
  27. package/lib/skeletons/_angular/base/mock/db/db.json +10 -0
  28. package/lib/skeletons/_angular/base/mock/server.js +23 -0
  29. package/lib/skeletons/_angular/base/package.json +39 -0
  30. package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -0
  31. package/lib/skeletons/_angular/base/proxy.conf.json +6 -0
  32. package/lib/skeletons/_angular/base/src/.eslintrc.json +121 -0
  33. package/lib/skeletons/_angular/base/src/app/app-starter.service.spec.ts +68 -0
  34. package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +68 -0
  35. package/lib/skeletons/_angular/base/src/app/app.component.html +35 -0
  36. package/lib/skeletons/_angular/base/src/app/app.component.spec.ts +60 -0
  37. package/lib/skeletons/_angular/base/src/app/app.component.ts +35 -0
  38. package/lib/skeletons/_angular/base/src/app/app.config.ts +84 -0
  39. package/lib/skeletons/_angular/base/src/app/app.routes.ts +9 -0
  40. package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +41 -0
  41. package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +17 -0
  42. package/lib/skeletons/_angular/base/src/app/features/home/home.routes.ts +6 -0
  43. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -0
  44. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +10 -0
  45. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -0
  46. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +10 -0
  47. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -0
  48. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +10 -0
  49. package/lib/skeletons/_angular/base/src/app/features/module1/module1.routes.ts +10 -0
  50. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -0
  51. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +10 -0
  52. package/lib/skeletons/_angular/base/src/app/features/module2/module2.routes.ts +6 -0
  53. package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -0
  54. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -0
  55. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -0
  56. package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -0
  57. package/lib/skeletons/_angular/base/src/assets/i18n/en.json +7 -0
  58. package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +7 -0
  59. package/lib/skeletons/_angular/base/src/config/global.ts +33 -0
  60. package/lib/skeletons/_angular/base/src/config/index.ts +8 -0
  61. package/lib/skeletons/_angular/base/src/config/modules.ts +7 -0
  62. package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -0
  63. package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -0
  64. package/lib/skeletons/_angular/base/src/environments/environment.ts +15 -0
  65. package/lib/skeletons/_angular/base/src/favicon.ico +0 -0
  66. package/lib/skeletons/_angular/base/src/index.html +20 -0
  67. package/lib/skeletons/_angular/base/src/karma.conf.js +47 -0
  68. package/lib/skeletons/_angular/base/src/main.ts +20 -0
  69. package/lib/skeletons/_angular/base/src/styles.scss +1 -0
  70. package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -0
  71. package/lib/skeletons/_angular/base/src/tsconfig.spec.json +10 -0
  72. package/lib/skeletons/_angular/base/tsconfig.json +27 -0
  73. package/lib/skeletons/_angular/base-mobile/angular.json +156 -0
  74. package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -0
  75. package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -0
  76. package/lib/skeletons/_angular/base-mobile/package.json +27 -0
  77. package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +18 -0
  78. package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -0
  79. package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +47 -0
  80. package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +81 -0
  81. package/lib/skeletons/_angular/base-mobile/src/app/app.config.ts +81 -0
  82. package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -0
  83. package/lib/skeletons/_angular/base-mobile/src/app/core/components/.gitkeep +0 -0
  84. package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -0
  85. package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +32 -0
  86. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about-routing.module.ts +45 -0
  87. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.html +70 -0
  88. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.ts +19 -0
  89. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.module.ts +30 -0
  90. package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.html +11 -0
  91. package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.ts +102 -0
  92. package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.html +20 -0
  93. package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.ts +75 -0
  94. package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.html +12 -0
  95. package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.ts +8 -0
  96. package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.html +48 -0
  97. package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.ts +7 -0
  98. package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.html +11 -0
  99. package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.ts +31 -0
  100. package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.html +11 -0
  101. package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.ts +103 -0
  102. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -0
  103. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +11 -0
  104. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +9 -0
  105. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -0
  106. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -0
  107. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +8 -0
  108. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -0
  109. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +8 -0
  110. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -0
  111. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -0
  112. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -0
  113. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -0
  114. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -0
  115. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -0
  116. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -0
  117. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -0
  118. package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -0
  119. package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -0
  120. package/lib/skeletons/_angular/base-mobile/src/assets/docs/pdf-test.pdf +0 -0
  121. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/en.json +25 -0
  122. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/es.json +24 -0
  123. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/fr.json +25 -0
  124. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/tr.json +25 -0
  125. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-1024.png +0 -0
  126. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-114.png +0 -0
  127. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-120.png +0 -0
  128. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-128.png +0 -0
  129. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-144.png +0 -0
  130. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-152.png +0 -0
  131. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-16.png +0 -0
  132. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-180.png +0 -0
  133. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-192.png +0 -0
  134. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-32.png +0 -0
  135. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-36.png +0 -0
  136. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-384.png +0 -0
  137. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-48.png +0 -0
  138. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-512.png +0 -0
  139. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-57.png +0 -0
  140. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-60.png +0 -0
  141. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-72.png +0 -0
  142. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-76.png +0 -0
  143. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-96.png +0 -0
  144. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1125-2436.png +0 -0
  145. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1170-2532.png +0 -0
  146. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1179-2556.png +0 -0
  147. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2208.png +0 -0
  148. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2688.png +0 -0
  149. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1284-2778.png +0 -0
  150. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1290-2796.png +0 -0
  151. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1488-2266.png +0 -0
  152. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1536-2048.png +0 -0
  153. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1620-2160.png +0 -0
  154. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1640-2360.png +0 -0
  155. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2224.png +0 -0
  156. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2388.png +0 -0
  157. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-2048-2732.png +0 -0
  158. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-640-1136.png +0 -0
  159. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-750-1334.png +0 -0
  160. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-828-1792.png +0 -0
  161. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1125-2436.png +0 -0
  162. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1170-2532.png +0 -0
  163. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1179-2556.png +0 -0
  164. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2208.png +0 -0
  165. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2688.png +0 -0
  166. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1284-2778.png +0 -0
  167. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1290-2796.png +0 -0
  168. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1488-2266.png +0 -0
  169. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1536-2048.png +0 -0
  170. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1620-2160.png +0 -0
  171. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1640-2360.png +0 -0
  172. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2224.png +0 -0
  173. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2388.png +0 -0
  174. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-2048-2732.png +0 -0
  175. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-640-1136.png +0 -0
  176. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-750-1334.png +0 -0
  177. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-828-1792.png +0 -0
  178. package/lib/skeletons/_angular/base-mobile/src/assets/images/app-icon.svg +10 -0
  179. package/lib/skeletons/_angular/base-mobile/src/config/global.ts +39 -0
  180. package/lib/skeletons/_angular/base-mobile/src/config/index.ts +8 -0
  181. package/lib/skeletons/_angular/base-mobile/src/config/modules.ts +7 -0
  182. package/lib/skeletons/_angular/base-mobile/src/index.html +76 -0
  183. package/lib/skeletons/_angular/base-mobile/src/main.ts +23 -0
  184. package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +66 -0
  185. package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +20 -0
  186. package/lib/skeletons/_angular/base-mobile/tsconfig.json +27 -0
  187. package/lib/skeletons/_angular/options/ecl-ec/angular.json +181 -0
  188. package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.html +237 -0
  189. package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +65 -0
  190. package/lib/skeletons/_angular/options/ecl-ec/src/app/app.config.ts +84 -0
  191. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.html +71 -0
  192. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.ts +20 -0
  193. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.html +1 -0
  194. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.ts +7 -0
  195. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.html +1 -0
  196. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.ts +7 -0
  197. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.html +1 -0
  198. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.ts +7 -0
  199. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.html +1 -0
  200. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.ts +7 -0
  201. package/lib/skeletons/_angular/options/ecl-ec/src/config/global.ts +23 -0
  202. package/lib/skeletons/_angular/options/ecl-eu/angular.json +181 -0
  203. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.html +203 -0
  204. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +65 -0
  205. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.config.ts +84 -0
  206. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.html +71 -0
  207. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.ts +20 -0
  208. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.html +1 -0
  209. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.ts +7 -0
  210. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.html +1 -0
  211. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.ts +7 -0
  212. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.html +1 -0
  213. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.ts +7 -0
  214. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.html +1 -0
  215. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.ts +7 -0
  216. package/lib/skeletons/_angular/options/ecl-eu/src/app/shared/shared.module.ts +15 -0
  217. package/lib/skeletons/_angular/options/ecl-eu/src/config/global.ts +23 -0
  218. package/lib/skeletons/_angular/options/pnpm/package.json +72 -0
  219. package/lib/skeletons/web-maven/package.json +17 -0
  220. package/lib/skeletons/web-maven/pom.xml +55 -0
  221. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -0
  222. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -0
  223. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -0
  224. package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -0
  225. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +11 -0
  226. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -0
  227. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +16 -0
  228. package/lib/skeletons/web-maven/src/main/webapp/index.jsp +30 -0
  229. package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +83 -0
  230. package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +83 -0
  231. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -0
  232. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -0
  233. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -0
  234. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +11 -0
  235. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -0
  236. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +16 -0
  237. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -0
  238. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -0
  239. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -0
  240. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -0
  241. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -0
  242. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -0
  243. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -0
  244. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +26 -0
  245. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +10 -0
  246. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +26 -0
  247. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/application.properties +0 -0
  248. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +11 -0
  249. package/lib/skeletons/web-spring-boot/pom.xml +30 -0
  250. package/lib/utils.js +217 -0
  251. package/package.json +10 -13
  252. package/sonar-project.properties +14 -0
@@ -0,0 +1,26 @@
1
+ package @app.group.id@.@app.name@.services;
2
+
3
+ import org.springframework.util.Assert;
4
+
5
+ import java.io.Serializable;
6
+
7
+ public class BuildingSearchCriteria implements Serializable {
8
+ private static final long serialVersionUID = 1L;
9
+ private String name;
10
+
11
+ public BuildingSearchCriteria() {
12
+ }
13
+
14
+ public BuildingSearchCriteria(String name) {
15
+ Assert.notNull(name, "The name of the building should not be null.");
16
+ this.name = name;
17
+ }
18
+
19
+ public String getName() {
20
+ return this.name;
21
+ }
22
+
23
+ public void setName(String name) {
24
+ this.name = name;
25
+ }
26
+ }
@@ -0,0 +1,10 @@
1
+ package @app.group.id@.@app.name@.services;
2
+
3
+ import @app.group.id@.@app.name@.domain.Building;
4
+ import org.springframework.data.domain.Page;
5
+ import org.springframework.data.domain.Pageable;
6
+
7
+ public interface BuildingService {
8
+ Page<Building> findAll(Pageable pageable);
9
+ Page<Building> find(BuildingSearchCriteria criteria, Pageable pageable);
10
+ }
@@ -0,0 +1,26 @@
1
+ package @app.group.id@.@app.name@.services;
2
+
3
+ import @app.group.id@.@app.name@.domain.Building;
4
+ import @app.group.id@.@app.name@.repositories.BuildingRepository;
5
+ import org.springframework.data.domain.Page;
6
+ import org.springframework.data.domain.Pageable;
7
+ import org.springframework.stereotype.Component;
8
+
9
+ @Component()
10
+ public class BuildingServiceImpl implements BuildingService {
11
+ private BuildingRepository buildingRepository;
12
+
13
+ public BuildingServiceImpl(BuildingRepository buildingRepository) {
14
+ this.buildingRepository = buildingRepository;
15
+ }
16
+
17
+ @Override
18
+ public Page<Building> findAll(Pageable pageable) {
19
+ return buildingRepository.findAll(pageable);
20
+ }
21
+
22
+ @Override
23
+ public Page<Building> find(BuildingSearchCriteria criteria, Pageable pageable) {
24
+ return buildingRepository.findByNameContainingAllIgnoringCase(criteria.getName(), pageable);
25
+ }
26
+ }
@@ -0,0 +1,11 @@
1
+ insert into t_address (address_id, street, postal_code, city, country) values (-4, 'rue Montoyer, 15', '1000', 'Bruxelles', 'Belgium');
2
+ insert into t_building (building_id, name, address_id) values ((select seq_building.nextval from dual), 'Montoyer 15 "Black Pearl"', -4);
3
+
4
+ insert into t_address (address_id, street, postal_code, city, country) values (-3, 'rue de la Loi, 200', '1040', 'Bruxelles', 'Belgium');
5
+ insert into t_building (building_id, name, address_id) values ((select seq_building.nextval from dual), 'Berlaymont', -3);
6
+
7
+ insert into t_address (address_id, street, postal_code, city, country) values (-2, 'rue Breydel, 4', '1040', 'Bruxelles', 'Belgium');
8
+ insert into t_building (building_id, name, address_id) values ((select seq_building.nextval from dual), 'Belliard 232', -2);
9
+
10
+ insert into t_address (address_id, street, postal_code, city, country) values (-1, 'Place Rogier, 16', '1210', 'Saint-Josse', 'Belgium');
11
+ insert into t_building (building_id, name, address_id) values ((select seq_building.nextval from dual), 'Covent Garden 2', -1);
@@ -0,0 +1,30 @@
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"
3
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+ <modelVersion>4.0.0</modelVersion>
5
+
6
+ <groupId>@app.group.id@.@app.name@</groupId>
7
+ <artifactId>@app.name@</artifactId>
8
+ <version>0.1.0-SNAPSHOT</version>
9
+ <packaging>pom</packaging>
10
+ <name>@app.name@</name>
11
+ <description>Demo project for Spring Boot</description>
12
+
13
+ <parent>
14
+ <groupId>org.springframework.boot</groupId>
15
+ <artifactId>spring-boot-starter-parent</artifactId>
16
+ <version>3.4.4</version>
17
+ </parent>
18
+
19
+ <properties>
20
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
22
+ <java.version>21</java.version>
23
+ </properties>
24
+
25
+ <modules>
26
+ <module>@app.name@-web-rest</module>
27
+ <module>@app.name@-web</module>
28
+ </modules>
29
+
30
+ </project>
package/lib/utils.js ADDED
@@ -0,0 +1,217 @@
1
+ const childProcess = require('child_process');
2
+ const execSync = childProcess.execSync;
3
+ const fs = require('fs');
4
+ const fse = require('fs-extra');
5
+ const glob = require('glob');
6
+ const path = require('path');
7
+ const figlet = require('figlet');
8
+
9
+ module.exports.getAngularPath = (targetPath, appName, appType, artifactId) => {
10
+ switch(appType) {
11
+ case 'angular':
12
+ case 'mobile':
13
+ return targetPath;
14
+ case 'web-maven':
15
+ return `${targetPath}/src/main/angular`;
16
+ case 'web-spring-boot':
17
+ return `${targetPath}/${artifactId}-web/src/main/angular`;
18
+ case 'web-symfony':
19
+ return `${targetPath}/client`;
20
+ }
21
+ }
22
+
23
+ module.exports.getArgs = () => {
24
+ const argv = require('yargs').argv;
25
+
26
+ const processArgs = process.env._CSDR_ARGS;
27
+
28
+ let args = {};
29
+
30
+ if (processArgs) {
31
+ processArgs.split(',').forEach((item) => {
32
+ // check if it's defined as array - example format : someArray:test1=test1|test2=test2
33
+ if (item.indexOf('Array') > 0) {
34
+ const arrayItems = item.split(':')[1];
35
+ const subItems = arrayItems.split('|');
36
+ const array = [];
37
+ subItems.forEach((sub) => {
38
+ const subItemSplit = sub.split('=');
39
+ const newItem = {};
40
+ newItem[subItemSplit[0].trim()] = subItemSplit[1].trim();
41
+ array.push(newItem);
42
+ })
43
+ args[item.split(':')[0]] = array;
44
+
45
+ // otherwise normal key/value pairs - example format : test1:test1,test2:test2
46
+ } else {
47
+ const itemSplit = item.split(':');
48
+ args[itemSplit[0].trim()] = itemSplit[1].trim();
49
+ }
50
+ })
51
+ }
52
+
53
+ return {
54
+ root: argv._[0],
55
+ ...argv,
56
+ ...args
57
+ }
58
+ }
59
+
60
+
61
+ module.exports.logBigTitle = (text) => {
62
+ console.log('\n\n');
63
+ console.log('\x1b[33m', figlet.textSync(text, { horizontalLayout: 'full' }) ,'\x1b[0m');
64
+ console.log('\n');
65
+ }
66
+
67
+ module.exports.logTitle = (msg) => {
68
+ log(msg, 0);
69
+ }
70
+
71
+ const logInfo = module.exports.logInfo = (msg) => {
72
+ log(msg, 1);
73
+ }
74
+
75
+ module.exports.logSuccess = (msg) => {
76
+ if (!msg) msg = 'OK';
77
+ log(msg, 2);
78
+ }
79
+
80
+ module.exports.logError = (msg) => {
81
+ log(msg, 3);
82
+ }
83
+ module.exports.logErrorTrace = (filename, method, e) => {
84
+ log(`ERROR in ${filename}`, 3);
85
+ log(`...method : ${method}`, 3);
86
+ log(`...message : ${e.message}`, 3);
87
+ }
88
+
89
+ module.exports.logWarning = (msg) => {
90
+ log(msg, 4);
91
+ }
92
+
93
+ module.exports.logAccent = (msg) => {
94
+ log(msg, 5);
95
+ }
96
+
97
+ module.exports.logBanner = (msg) => {
98
+ log(msg, 6);
99
+ }
100
+
101
+ module.exports.logDebug = (msg) => {
102
+ if (getArgs().debug) {
103
+ log(msg, 7);
104
+ }
105
+ }
106
+ module.exports.logDebugTrace = (filename, method, e) => {
107
+ if (getArgs().debug) {
108
+ log(`ERROR in ${filename}`, 7);
109
+ log(`...method : ${method}`, 7);
110
+ log(`...message : ${e.message}`, 7);
111
+ }
112
+ }
113
+ module.exports.logDebugResponse = (response) => {
114
+ if (getArgs().debug) {
115
+ console.log(response);
116
+ }
117
+ }
118
+
119
+ module.exports.isDirEmpty = (path) => {
120
+ try {
121
+ var files = fse.readdirSync(path);
122
+
123
+ if (files.length === 0) {
124
+ return true;
125
+ } else {
126
+ return false;
127
+ }
128
+
129
+ } catch (err) {
130
+ return false;
131
+ }
132
+ }
133
+
134
+ const isFileExists = module.exports.isFileExists = (path) => {
135
+ try {
136
+ return fs.statSync(path);
137
+ } catch (err) {
138
+ return false;
139
+ }
140
+ }
141
+
142
+
143
+ module.exports.mkdir = (path) => {
144
+ if (!fs.existsSync(path)) {
145
+ fs.mkdirSync(path);
146
+ }
147
+ }
148
+
149
+ module.exports.copydir = (from, to, overwrite = true, globPattern = '**/*') => {
150
+ function _recursiveMkDir(dir) {
151
+ if (!fs.existsSync(dir)) {
152
+ _recursiveMkDir(path.dirname(dir));
153
+ fs.mkdirSync(dir);
154
+ }
155
+ }
156
+
157
+ logInfo('----->copydir from : ' + from + ' ====> to : ' + to );
158
+ var files = glob.sync(globPattern, { cwd: from, nodir: true, follow: true, dot: true });
159
+ files.forEach(file => {
160
+ const origin = path.join(from, file);
161
+ const dest = path.join(to, file);
162
+ _recursiveMkDir(path.dirname(dest));
163
+ fse.copySync(origin, dest, { overwrite: overwrite });
164
+ });
165
+ }
166
+
167
+ module.exports.move = (from, to) => {
168
+ fse.removeSync(to);
169
+ fse.moveSync(from, to, );
170
+ }
171
+
172
+ module.exports.remove = (path) => {
173
+ fse.removeSync(path);
174
+ }
175
+
176
+ module.exports.copy = (origin, dest) => {
177
+ fse.copySync(origin, dest);
178
+ }
179
+
180
+ const log = (msg, type) => {
181
+ var msgContent;
182
+
183
+ if (type === 0 || !type) {
184
+ msgContent = `\n${msg.toUpperCase()}`;
185
+ console.info('\x1b[33m', msgContent ,'\x1b[0m');
186
+ }
187
+ if (type === 1) {
188
+ msgContent = `${msg}`;
189
+ console.info('\x1b[34m\x1b[1m', msgContent ,'\x1b[0m');
190
+ }
191
+ if (type === 2) {
192
+ msgContent = `${msg}\n`;
193
+ console.info('\x1b[32m\x1b[1m', msgContent ,'\x1b[0m');
194
+ }
195
+ if (type === 3) {
196
+ msgContent = `\n${msg}`;
197
+ console.info('\x1b[31m\x1b[1m', msgContent ,'\x1b[0m');
198
+ }
199
+ if (type === 4) {
200
+ msgContent = `\n${msg}\n`;
201
+ console.info('\x1b[33m', msgContent ,'\x1b[0m');
202
+ }
203
+ if (type === 5) {
204
+ msgContent = `${msg}\n`;
205
+ console.info(msgContent);
206
+ }
207
+ if (type === 6) {
208
+ msgContent = msg
209
+ console.info('\n\n');
210
+ console.info(msgContent);
211
+ console.info('\n');
212
+ }
213
+ if (type === 7) {
214
+ msgContent = `${msg}`;
215
+ console.info(msgContent);
216
+ }
217
+ }
package/package.json CHANGED
@@ -1,33 +1,30 @@
1
1
  {
2
2
  "name": "@eui/cli",
3
- "version": "21.0.0-alpha.4",
3
+ "version": "21.0.0-alpha.40",
4
4
  "tag": "next",
5
5
  "license": "EUPL-1.1",
6
- "description": "eUI CLI app generator",
6
+ "description": "eUI CLI app generator & tools",
7
7
  "bin": {
8
8
  "eui-cli": "bin/eui-cli.js"
9
9
  },
10
10
  "main": "./lib/cli.js",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui"
13
+ "url": "https://sdlc.webcloud.ec.europa.eu/csdr/eui/eui.git"
14
14
  },
15
15
  "dependencies": {
16
- "@eui/tools": "6.21.106"
17
- },
18
- "peerDependencies": {
19
- "@eui/tools": "^6.0.0",
20
- "chalk": "^4.1.0",
21
- "figlet": "^1.7.0",
22
- "replace-in-file": "^7.1.0",
23
- "execa": "^5.1.1",
24
- "inquirer": "^8.1.0"
16
+ "figlet": "1.9.3",
17
+ "inquirer": "6.5.0",
18
+ "yargs": "17.7.2",
19
+ "fs-extra": "9.0.0",
20
+ "glob": "7.2.3",
21
+ "cross-spawn": "7.0.6"
25
22
  },
26
23
  "preferGlobal": true,
27
24
  "homepage": "https://eui.ecdevops.eu",
28
25
  "author": "ec.europa.eui@gmail.com",
29
26
  "engines": {
30
- "node": "^18.19.1 || ^20.11.1 || >=22.0.0",
27
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
31
28
  "yarn": ">=1.22.4 <2"
32
29
  }
33
30
  }
@@ -0,0 +1,14 @@
1
+ sonar.projectKey=CSDR-EUI-CLI
2
+ sonar.projectName=EUI-CLI
3
+ sonar.projectVersion=375ec32
4
+
5
+
6
+ sonar.sources=/builds/csdr/eui/eui/packages/cli
7
+ sonar.sourceEncoding=UTF-8
8
+
9
+ sonar.test.inclusions=**/*.spec.ts
10
+
11
+ sonar.ts.tslint.configPath=tslint.json
12
+ sonar.typescript.lcov.reportPaths=/builds/csdr/eui/eui/packages/cli/test/reports/coverage-lcov/lcov.info
13
+
14
+ sonar.exclusions=**/*.js, **/mock/**/*, **/mocks/**/*