@eui/tools 6.5.6 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/.prettierrc.json +19 -0
  2. package/.version.properties +1 -1
  3. package/CHANGELOG.md +9 -0
  4. package/bin/eui-scripts.js +2 -0
  5. package/bin/scripts/csdr-app-package-init.js +16 -0
  6. package/bin/scripts/csdr-cli.js +1 -1
  7. package/package.json +1 -1
  8. package/scripts/app/public/index.html +22 -170
  9. package/scripts/app/public/index.js +95 -0
  10. package/scripts/app/public/package-init.html +254 -0
  11. package/scripts/app/public/package-init.js +138 -0
  12. package/scripts/app/public/stats.html +60 -125
  13. package/scripts/app/public/stats.js +68 -0
  14. package/scripts/app/routes/index.js +28 -9
  15. package/scripts/app/server.js +2 -0
  16. package/scripts/csdr/cli/cli-utils.js +2 -30
  17. package/scripts/csdr/cli/constants.js +1 -12
  18. package/scripts/csdr/cli/package-build-backend.js +18 -0
  19. package/scripts/csdr/cli/package-build-frontend.js +47 -164
  20. package/scripts/csdr/cli/package-prompt.js +0 -84
  21. package/scripts/csdr/cli/package.js +65 -14
  22. package/scripts/csdr/config/register.js +71 -158
  23. package/scripts/index.js +0 -1
  24. package/scripts/csdr/cli/app.js +0 -204
  25. package/scripts/csdr/cli/skeletons/app/angular-config.json +0 -31
  26. package/scripts/csdr/cli/skeletons/app/dependencies-base.json +0 -2
  27. package/scripts/csdr/cli/skeletons/app/dependencies-composite.json +0 -6
  28. package/scripts/csdr/cli/skeletons/app/gitignore_TO_REPLACE +0 -63
  29. package/scripts/csdr/cli/skeletons/app/mock/json/core/user.js +0 -31
  30. package/scripts/csdr/cli/skeletons/app/mock/json/lowdb.js +0 -25
  31. package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/delay.js +0 -10
  32. package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/errors.js +0 -73
  33. package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/sse.js +0 -28
  34. package/scripts/csdr/cli/skeletons/app/mock/json/routes.json +0 -3
  35. package/scripts/csdr/cli/skeletons/app/mock/json/server.js +0 -38
  36. package/scripts/csdr/cli/skeletons/app/package.json +0 -6
  37. package/scripts/csdr/cli/skeletons/app/scripts.json +0 -7
  38. package/scripts/csdr/cli/skeletons/app/src/app/app-routing.module.ts +0 -32
  39. package/scripts/csdr/cli/skeletons/app/src/app/app.component.html +0 -1
  40. package/scripts/csdr/cli/skeletons/app/src/app/app.component.ts +0 -9
  41. package/scripts/csdr/cli/skeletons/app/src/app/app.module.ts +0 -68
  42. package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.html +0 -27
  43. package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.ts +0 -188
  44. package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.html +0 -30
  45. package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.ts +0 -71
  46. package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-404/page-404.component.ts +0 -19
  47. package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-500/page-500.component.ts +0 -18
  48. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.html +0 -104
  49. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.scss +0 -44
  50. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.ts +0 -39
  51. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.html +0 -26
  52. package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.ts +0 -104
  53. package/scripts/csdr/cli/skeletons/app/src/app/core/core.module.ts +0 -46
  54. package/scripts/csdr/cli/skeletons/app/src/app/core/services/core.service.ts +0 -124
  55. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home-routing.module.ts +0 -15
  56. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.html +0 -6
  57. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.ts +0 -8
  58. package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.module.ts +0 -18
  59. package/scripts/csdr/cli/skeletons/app/src/app/features/sample-lib.module.ts +0 -9
  60. package/scripts/csdr/cli/skeletons/app/src/app/shared/components/.gitkeep +0 -0
  61. package/scripts/csdr/cli/skeletons/app/src/app/shared/shared.module.ts +0 -20
  62. package/scripts/csdr/cli/skeletons/app/src/assets/i18n/en.json +0 -3
  63. package/scripts/csdr/cli/skeletons/app/src/assets/i18n/fr.json +0 -3
  64. package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local-mwp-dev.json +0 -144
  65. package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local.json +0 -36
  66. package/scripts/csdr/cli/skeletons/app/src/config/global.ts +0 -9
  67. package/scripts/csdr/cli/skeletons/app/src/config/index.ts +0 -8
  68. package/scripts/csdr/cli/skeletons/app/src/config/modules.ts +0 -13
  69. package/scripts/csdr/cli/skeletons/app/src/environments/environment.dev.ts +0 -4
  70. package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-mwp-dev-openid.ts +0 -6
  71. package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-openid.ts +0 -5
  72. package/scripts/csdr/cli/skeletons/app/src/environments/environment.prod.ts +0 -12
  73. package/scripts/csdr/cli/skeletons/app/src/environments/environment.ts +0 -5
  74. package/scripts/csdr/cli/skeletons/app/src/index.html +0 -24
  75. package/scripts/csdr/cli/skeletons/app/src/styles.scss +0 -1
  76. package/scripts/csdr/cli/skeletons/app/tslint.json +0 -17
  77. package/scripts/csdr/cli/skeletons/app-eui10/angular-config.json +0 -20
  78. package/scripts/csdr/cli/skeletons/app-eui10/dependencies-composite.json +0 -5
  79. package/scripts/csdr/cli/skeletons/app-eui10/gitignore_TO_REPLACE +0 -63
  80. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/models/user.js +0 -8
  81. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/index.js +0 -5
  82. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/user_routes.js +0 -24
  83. package/scripts/csdr/cli/skeletons/app-eui10/mock/db/db.json +0 -12
  84. package/scripts/csdr/cli/skeletons/app-eui10/mock/server.js +0 -16
  85. package/scripts/csdr/cli/skeletons/app-eui10/package.json +0 -6
  86. package/scripts/csdr/cli/skeletons/app-eui10/scripts.json +0 -5
  87. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-routing.module.ts +0 -18
  88. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-starter.service.ts +0 -68
  89. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.html +0 -29
  90. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.ts +0 -55
  91. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.module.ts +0 -27
  92. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/components/.gitkeep +0 -0
  93. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/core.module.ts +0 -84
  94. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/reducers/index.ts +0 -33
  95. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home-routing.module.ts +0 -15
  96. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.html +0 -7
  97. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.ts +0 -19
  98. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.module.ts +0 -18
  99. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.html +0 -7
  100. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.ts +0 -7
  101. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.html +0 -7
  102. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.ts +0 -7
  103. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1-routing.module.ts +0 -18
  104. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.html +0 -7
  105. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.ts +0 -8
  106. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.module.ts +0 -21
  107. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2-routing.module.ts +0 -16
  108. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.html +0 -8
  109. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.ts +0 -7
  110. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.module.ts +0 -17
  111. package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/shared.module.ts +0 -21
  112. package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/testing/router.mock.ts +0 -18
  113. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/config/env-json-config.json +0 -8
  114. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/en.json +0 -7
  115. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/fr.json +0 -7
  116. package/scripts/csdr/cli/skeletons/app-eui10/src/config/global.ts +0 -26
  117. package/scripts/csdr/cli/skeletons/app-eui10/src/config/index.ts +0 -8
  118. package/scripts/csdr/cli/skeletons/app-eui10/src/config/modules.ts +0 -4
  119. package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.prod.ts +0 -9
  120. package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.ts +0 -9
  121. package/scripts/csdr/cli/skeletons/app-eui10/src/index.html +0 -21
  122. package/scripts/csdr/cli/skeletons/app-eui10/src/styles.scss +0 -1
  123. package/scripts/csdr/cli/skeletons/app-eui10/tslint.json +0 -17
  124. package/scripts/csdr/cli/skeletons/app-showcase/angular-config.json +0 -103
  125. package/scripts/csdr/cli/skeletons/app-showcase/dependencies-composite.json +0 -5
  126. package/scripts/csdr/cli/skeletons/app-showcase/gitignore_TO_REPLACE +0 -50
  127. package/scripts/csdr/cli/skeletons/app-showcase/package.json +0 -6
  128. package/scripts/csdr/cli/skeletons/app-showcase/scripts.json +0 -3
  129. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app-routing.module.ts +0 -21
  130. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.html +0 -24
  131. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.ts +0 -19
  132. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.routes.ts +0 -7
  133. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home-routing.module.ts +0 -15
  134. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.html +0 -7
  135. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.ts +0 -8
  136. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.module.ts +0 -17
  137. package/scripts/csdr/cli/skeletons/app-showcase/src/assets/app-metadata.json +0 -8
  138. package/scripts/csdr/cli/skeletons/app-showcase/src/assets/config/env-json-config.json +0 -41
  139. package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +0 -33
  140. package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +0 -5
  141. package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +0 -50
  142. package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +0 -6
  143. package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +0 -3
  144. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +0 -21
  145. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +0 -26
  146. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +0 -19
  147. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +0 -7
  148. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +0 -15
  149. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +0 -7
  150. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +0 -8
  151. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +0 -17
  152. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/shared/shared.module.ts +0 -15
  153. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +0 -8
  154. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +0 -41
  155. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/index.html +0 -22
  156. package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/remote-sources/.gitkeep +0 -0
  157. package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-base.json +0 -2
  158. package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-composite.json +0 -3
  159. package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/dummy.spec.ts.TO_REPLACE +0 -5
  160. package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +0 -32
  161. package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +0 -17
  162. package/scripts/csdr/cli/skeletons/package/frontend-eui13/dependencies-composite.json +0 -3
  163. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/index.ts +0 -2
  164. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.html +0 -1
  165. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.spec.ts.TO_REPLACE +0 -25
  166. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.ts +0 -14
  167. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/module.ts +0 -17
  168. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/routing.module.ts +0 -14
  169. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +0 -90
  170. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +0 -6
  171. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +0 -2
  172. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-ACC.json +0 -4
  173. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-DLT.json +0 -4
  174. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-INT.json +0 -4
  175. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-PROD.json +0 -4
  176. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-TRN.json +0 -4
  177. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +0 -8
  178. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +0 -65
  179. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +0 -7
  180. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +0 -8
  181. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +0 -3
  182. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.spec.ts +0 -6
  183. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/eui-components.ts +0 -11
  184. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/fallback.component.ts +0 -11
  185. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +0 -91
  186. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +0 -87
  187. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +0 -28
  188. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +0 -43
  189. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +0 -33
  190. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
  191. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +0 -42
  192. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +0 -10
  193. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +0 -3
  194. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +0 -3
  195. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +0 -3
  196. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
  197. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +0 -10
  198. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +0 -12
  199. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +0 -87
  200. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +0 -20
  201. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +0 -18
  202. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +0 -7
  203. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +0 -17
  204. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +0 -10
  205. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.scss +0 -3
  206. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.spec.ts +0 -6
  207. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/eui-components.ts +0 -9
  208. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/fallback.component.ts +0 -11
  209. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.component.ts +0 -91
  210. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.ts +0 -87
  211. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/custom-route-serializer.ts +0 -28
  212. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/index.ts +0 -43
  213. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/routing.module.ts +0 -33
  214. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/assets/.gitkeep +0 -0
  215. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/global.ts +0 -55
  216. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/index.ts +0 -10
  217. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/modules.ts +0 -3
  218. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.prod.ts +0 -3
  219. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.ts +0 -3
  220. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/favicon.ico +0 -0
  221. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/index.html +0 -10
  222. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/main.ts +0 -12
  223. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/polyfills.ts +0 -87
  224. package/scripts/csdr/cli/skeletons/virtual-remote/10.x/angular-config.json +0 -9
  225. package/scripts/csdr/cli/skeletons/virtual-remote/10.x/dependencies.json +0 -20
  226. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/en.json +0 -0
  227. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/fr.json +0 -0
  228. /package/scripts/csdr/cli/skeletons/{app-eui10 → package/frontend-eui15}/dependencies-base.json +0 -0
  229. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/gitignore_TO_REPLACE +0 -0
  230. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/karma.conf.js +0 -0
  231. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/ng-package.json +0 -0
  232. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/package.json +0 -0
  233. /package/scripts/csdr/cli/skeletons/{app/src/app/core → package/frontend-eui15/src}/dummy.spec.ts.TO_REPLACE +0 -0
  234. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/index.ts +0 -0
  235. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/lib/module.ts +0 -0
  236. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/test.ts.TO_REPLACE +0 -0
  237. /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/tsconfig.spec.json +0 -0
@@ -0,0 +1,68 @@
1
+ const getRequestBody = (items) => {
2
+ return {
3
+ method: "POST",
4
+ headers: {
5
+ "Content-Type": "application/json",
6
+ },
7
+ body: JSON.stringify(items),
8
+ };
9
+ };
10
+
11
+ new Vue({
12
+ el: "#app",
13
+ data() {
14
+ return {
15
+ allRemotesStats: true,
16
+ remotes: [],
17
+ selectedRemotes: [],
18
+ remoteStats: {},
19
+ remoteAllStats: {},
20
+ };
21
+ },
22
+ created() {
23
+ this.getRemotes();
24
+ this.getRemoteAllStats();
25
+ },
26
+ methods: {
27
+ changeStatsType(value) {
28
+ this.allRemotesStats = value;
29
+ },
30
+ async getRemotes() {
31
+ const res = await fetch("http://localhost:3000/api/remotes");
32
+ const finalRes = await res.json();
33
+ this.remotes = finalRes;
34
+ },
35
+ async getRemoteAllStats() {
36
+ const res = await fetch("http://localhost:3000/api/remotes/stats");
37
+ const finalRes = await res.json();
38
+ this.remoteAllStats = finalRes.stats;
39
+ },
40
+ remoteSelected(event) {
41
+ this.getRemoteStats();
42
+ },
43
+ async getRemoteStats() {
44
+ const res = await fetch("http://localhost:3000/api/remotes/stats", getRequestBody({ remote: this.selectedRemotes }));
45
+ const finalRes = await res.json();
46
+ this.remoteStats = finalRes;
47
+ this.genVersionsChart();
48
+ },
49
+ genVersionsChart() {
50
+ const ctx = document.getElementById("versions").getContext("2d");
51
+ var myChart = new Chart(ctx, {
52
+ type: "line",
53
+ data: {
54
+ labels: this.remoteStats.versions.map((v) => `${v.version} - ${v.date}`),
55
+ datasets: [
56
+ {
57
+ data: this.remoteStats.versions.map((v) => v.duration),
58
+ label: "Duration",
59
+ borderColor: "#3e95cd",
60
+ backgroundColor: "#7bb6dd",
61
+ fill: false,
62
+ },
63
+ ],
64
+ },
65
+ });
66
+ },
67
+ },
68
+ });
@@ -4,9 +4,16 @@ const router = require('express').Router();
4
4
 
5
5
  const configUtils = require('../../csdr/config/config-utils');
6
6
  const metadataUtils = require('../../csdr/metadata/metadata-utils');
7
+ const cliUtils = require('../../csdr/cli/cli-utils');
7
8
  const tools = require('../../utils/tools');
8
9
 
9
10
 
11
+ const handlerError = (res, e) => {
12
+ console.log(e);
13
+ res.status(500);
14
+ res.send({ error: e });
15
+ }
16
+
10
17
  router.get('/remotes', function (req, res) {
11
18
  return Promise.resolve()
12
19
  .then(() => {
@@ -29,7 +36,7 @@ router.get('/remotes', function (req, res) {
29
36
  res.send(remotes);
30
37
  })
31
38
  .catch((e) => {
32
- console.log(e);
39
+ handlerError(res, e);
33
40
  })
34
41
  });
35
42
 
@@ -42,7 +49,7 @@ router.get('/remotes/stats', function (req, res) {
42
49
  res.send(stats);
43
50
  })
44
51
  .catch((e) => {
45
- console.log(e);
52
+ handlerError(res, e);
46
53
  })
47
54
  });
48
55
 
@@ -54,7 +61,7 @@ router.post('/remotes/packages', function (req, res) {
54
61
  res.send(depsPackages);
55
62
  })
56
63
  .catch((e) => {
57
- console.log(e);
64
+ handlerError(res, e);
58
65
  })
59
66
  });
60
67
 
@@ -67,11 +74,10 @@ router.post('/remotes/stats', function (req, res) {
67
74
  res.send(remoteStats);
68
75
  })
69
76
  .catch((e) => {
70
- console.log(e);
77
+ handlerError(res, e);
71
78
  })
72
79
  });
73
80
 
74
-
75
81
  router.get('/config', function (req, res) {
76
82
  return Promise.resolve()
77
83
  .then(() => {
@@ -81,25 +87,38 @@ router.get('/config', function (req, res) {
81
87
  res.send(customConfig);
82
88
  })
83
89
  .catch((e) => {
84
- console.log(e);
90
+ handlerError(res, e);
85
91
  })
86
92
  });
87
93
 
88
-
89
-
90
94
  router.post('/config', function (req, res) {
91
95
  return Promise.resolve()
92
96
  .then(() => {
93
97
  return configUtils.global.generateCustomConfig(req.body);
94
98
  })
95
99
  .then(() => {
100
+ res.status(200);
96
101
  res.send({ status: 'OK'})
97
102
  })
98
103
  .catch((e) => {
99
- console.log(e);
104
+ handlerError(res, e);
100
105
  })
101
106
  });
102
107
 
108
+ router.post('/package-init', function (req, res) {
109
+ return Promise.resolve()
110
+ .then(() => {
111
+ const params = req.body.params;
112
+ return cliUtils.package.generateExternal(params);
113
+ })
114
+ .then(() => {
115
+ res.status(200);
116
+ res.send({ status: 'OK'})
117
+ })
118
+ .catch((e) => {
119
+ handlerError(res, e);
120
+ })
121
+ });
103
122
 
104
123
  // Export API routes
105
124
  module.exports = router;
@@ -27,6 +27,8 @@ app.listen(app.get('port'), () => {
27
27
  if (prod) {
28
28
  if (stats) {
29
29
  open('http://localhost:3000/stats.html');
30
+ } else if (packageInit) {
31
+ open('http://localhost:3000/package-init.html');
30
32
  } else {
31
33
  open('http://localhost:3000');
32
34
  }
@@ -1,32 +1,4 @@
1
1
  'use strict';
2
2
 
3
- // LOCAL
4
- const tools = require('../../../scripts/utils/tools');
5
-
6
- // INNER MODULES
7
- const innerApp = require('./app');
8
- const innerPackage = require('./package');
9
-
10
- // FETCH ARGS
11
- const args = tools.getArgs();
12
-
13
-
14
- module.exports.run = () => {
15
-
16
- tools.logBigTitle('CSDR CLI');
17
-
18
- return Promise.resolve()
19
- .then(() => {
20
- if (args.app) {
21
- return innerApp.generate();
22
-
23
- } else if (args.pkg) {
24
- return innerPackage.generate();
25
- }
26
- })
27
-
28
- .catch((e) => {
29
- throw e;
30
- })
31
-
32
- }
3
+ // INNER MODULES RE-EXPORTS
4
+ module.exports.package = require('./package');
@@ -5,12 +5,7 @@ const path = require('path');
5
5
  module.exports.TARGET_ROOT_PATH = path.join(process.cwd(), 'packages');
6
6
  module.exports.TARGET_ROOT_REMOTES_PATH = path.join(process.cwd(), 'remotes');
7
7
  module.exports.SKELETONS_ROOT_PATH = path.join(__dirname, 'skeletons', 'package');
8
- module.exports.FRONTEND_SKELETON_EUI10_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-eui10');
9
- module.exports.FRONTEND_SKELETON_EUI13_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-eui13');
10
8
  module.exports.FRONTEND_SKELETON_EUI15_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-eui15');
11
- module.exports.FRONTEND_SKELETON_REMOTE_EUI10_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-remote-eui10');
12
- module.exports.FRONTEND_SKELETON_REMOTE_EUI15_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-remote-eui15');
13
- module.exports.FRONTEND_OPTION_ROUTE_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend-option-route');
14
9
  module.exports.BACKEND_SKELETON_PATH = path.join(this.SKELETONS_ROOT_PATH, 'backend');
15
10
  module.exports.VIRTUAL_REMOTE_SKELETON_ROOT_PATH = path.join(__dirname, 'skeletons', 'virtual-remote');
16
11
 
@@ -24,8 +19,6 @@ module.exports.CONFIG_OPTIONS = {
24
19
  REMOTE: 'remote'
25
20
  },
26
21
  pkgFrontendVersion: {
27
- EUI10: '10',
28
- EUI13: '13',
29
22
  EUI15: '15',
30
23
  }
31
24
  }
@@ -33,14 +26,10 @@ module.exports.CONFIG_OPTIONS = {
33
26
  module.exports.DEFAULT_CONFIG = {
34
27
  pkgType: this.CONFIG_OPTIONS.pkgType.FRONTEND,
35
28
  pkgFrontendType: this.CONFIG_OPTIONS.pkgFrontendType.DEFAULT,
36
- pkgFrontendVersion: this.CONFIG_OPTIONS.pkgFrontendVersion.EUI10,
29
+ pkgFrontendVersion: this.CONFIG_OPTIONS.pkgFrontendVersion.EUI15,
37
30
  pkgName: 'my-package',
38
31
  pkgScope: '@zzz',
39
- isRouteModule: false,
40
32
  isCsdrRepo: true,
41
- isEnvTargetRemote: true,
42
- isVirtualRemote: true,
43
- isFullVirtualRemote: true,
44
33
  externalRepoName: null,
45
34
  pkgGroupId: 'eu.europa.ec.cc'
46
35
  };
@@ -5,6 +5,7 @@ const path = require('path');
5
5
 
6
6
  // LOCAL
7
7
  const tools = require('../../../scripts/utils/tools');
8
+ const configUtils = require('../config/config-utils');
8
9
 
9
10
  // CONSTANTS
10
11
  const constants = require('./constants');
@@ -57,6 +58,23 @@ module.exports.generate = (name, scope, groupId) => {
57
58
  return tools.move(path.join(targetPath, 'gitignore_TO_REPLACE'), path.join(targetPath, '.gitignore'));
58
59
  })
59
60
 
61
+ .then(() => {
62
+ const pkg = {
63
+ name: artifactId,
64
+ repoName: `${artifactId}.git`
65
+ };
66
+
67
+ // ADDING CONFIG ENTRY - specific csdr-remotes as of v15+
68
+ tools.logInfo('Adding CSDR config entry');
69
+ configUtils.register.registerCsdrPackage(
70
+ pkg,
71
+ scope, name, null,
72
+ false,
73
+ null,
74
+ true
75
+ );
76
+ })
77
+
60
78
  .then(() => {
61
79
  tools.logSuccess();
62
80
  })
@@ -12,31 +12,6 @@ const initUtils = require('../init/init-utils');
12
12
  const constants = require('./constants');
13
13
 
14
14
 
15
-
16
-
17
- const init = (frontendType, rootPackagePath, targetPath, isFullVirtualRemote) => {
18
- return Promise.resolve()
19
-
20
- // CHECKING presence of UI package supporting the remote
21
- .then(() => {
22
- if (frontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE && !isFullVirtualRemote && !tools.isDirExists(rootPackagePath)) {
23
- tools.logError(`${rootPackagePath} NOT FOUND, you must mount the root package ui before creating the remote`);
24
- throw new Error('ROOT_PACKAGE_NOT_FOUND');
25
- }
26
- })
27
-
28
- // CLEANING TARGET
29
- .then(() => {
30
- tools.logInfo('Cleaning target');
31
- return tools.rimraf(targetPath + '/**/*');
32
- })
33
-
34
- .catch((e) => {
35
- throw e;
36
- })
37
- }
38
-
39
-
40
15
  const replaceExtensions = (targetPath) => {
41
16
  return Promise.resolve()
42
17
 
@@ -71,76 +46,61 @@ const replaceContent = (targetPath, name, scope, fullName) => {
71
46
 
72
47
 
73
48
 
74
- const generateVirtualRemote = ({fullName, targetPath, rootPackagePath, pkg, args = constants.DEFAULT_CONFIG}) => {
49
+ const generateRemote = (args = constants.DEFAULT_CONFIG) => {
50
+
51
+ const targetPath = path.join(constants.TARGET_ROOT_REMOTES_PATH, args.fullName);
75
52
 
76
53
  tools.logInfo('Generate virtual remote');
77
- console.log(fullName);
54
+ console.log(args);
55
+ tools.logInfo('In target path');
78
56
  console.log(targetPath);
79
- console.log(rootPackagePath);
80
- console.log(pkg);
81
57
 
82
- const remoteTargetPath = path.join(process.cwd(), 'packages', 'csdr-remotes-config', 'assets', fullName);
58
+ const remoteConfigTargetPath = path.join(process.cwd(), 'packages', 'csdr-remotes-config', 'assets', args.fullName);
83
59
 
84
60
  return Promise.resolve()
85
61
  // INIT and cleanup
86
62
  .then(() => {
87
- return init(args.pkgFrontendType, rootPackagePath, targetPath, args.isFullVirtualRemote);
63
+ tools.logInfo('Cleaning target');
64
+ return tools.rimraf(targetPath + '/**/*');
88
65
  })
89
66
 
90
67
  // COPY FIRST THE REMOTE SKELETON TO TARGET
91
68
  .then(() => {
92
- tools.logInfo('Copying skeleton to target');
93
-
94
- if (!args.isFullVirtualRemote) {
95
- // for the moment the virtual remotes are only activated for v15+
96
- if (args.pkgFrontendVersion == constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
97
- tools.copydir(constants.FRONTEND_SKELETON_REMOTE_EUI15_PATH, targetPath, true);
98
- } else if (args.pkgFrontendVersion == constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10) {
99
- tools.copydir(constants.FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
69
+ // generating default package entries
70
+ const pkg = {
71
+ name: args.fullName,
72
+ repoName: args.repoName,
73
+ npmPkgName: args.npmPkgName,
74
+ paths: {
75
+ root: targetPath
100
76
  }
101
-
102
- // REPLACING PLACEHOLDERS
103
- tools.logInfo('Replace sources content');
104
- replaceContent(targetPath, args.pkgName, args.pkgScope, fullName);
105
-
106
- // REPLACE EXTENSIONS (package.json, .gitignore as the interfere with build of tools if release without name changes)
107
- replaceExtensions(targetPath);
108
- }
77
+ };
109
78
 
110
79
  // ADDING CONFIG ENTRY - specific csdr-remotes as of v15+
111
80
  tools.logInfo('Adding CSDR config entry');
112
81
  configUtils.register.registerCsdrPackage(
113
- pkg, args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE,
82
+ pkg,
114
83
  args.pkgScope, args.pkgName, args.pkgFrontendVersion,
115
- args.isVirtualRemote,
116
- args.isFullVirtualRemote
84
+ true,
85
+ args.remoteConfig
117
86
  );
118
87
  })
119
88
 
120
- // ENV TARGET / a-la-carte specific (always true as of v15+ remotes) - TRANSFER The sources from current remote sources
121
- .then(() => {
122
- // envTarget remote type specific
123
- if (args.isEnvTargetRemote && !args.isFullVirtualRemote) {
124
- tools.logInfo('Moving sources from remote to root package for envTarget remote type');
125
- return tools.move(path.join(targetPath, 'src'), path.join(rootPackagePath, 'assets', 'remote-sources'));
126
- }
127
- })
128
-
129
89
  // CLEANING REMOTES CONFIG ENTRY
130
90
  .then(() => {
131
91
  tools.logInfo('Cleaning csdr-remotes-config target entry');
132
- return tools.rimraf(remoteTargetPath + '/**/*');
92
+ return tools.rimraf(remoteConfigTargetPath + '/**/*');
133
93
  })
134
94
 
135
95
  // REPLACING CONTENT FOR VIRTUAL REMOTE CONFIG SKELETON
136
96
  .then(() => {
137
97
  tools.copy(
138
98
  path.join(constants.VIRTUAL_REMOTE_SKELETON_ROOT_PATH, `${args.pkgFrontendVersion}.x`),
139
- remoteTargetPath
99
+ remoteConfigTargetPath
140
100
  );
141
101
 
142
102
  tools.logInfo('Replace sources content in csdr-remotes-config target entry');
143
- replaceContent(remoteTargetPath, args.pkgName, args.pkgScope, fullName);
103
+ replaceContent(remoteConfigTargetPath, args.pkgName, args.pkgScope, args.fullName);
144
104
  })
145
105
 
146
106
  // CLEANING REMOTE CURRENT TARGET as this is completetely re-generated by the generateVirtualRemotes() function (same as init)
@@ -150,7 +110,7 @@ const generateVirtualRemote = ({fullName, targetPath, rootPackagePath, pkg, args
150
110
 
151
111
  // GENERATE THE VIRTUAL REMOTE (as it's dynamically generated, we use here the same fn call as the init)
152
112
  .then(() => {
153
- return initUtils.remotes.generateVirtualRemote(fullName, false);
113
+ return initUtils.remotes.generateVirtualRemote(args.fullName, false);
154
114
  })
155
115
 
156
116
  .then(() => {
@@ -165,75 +125,54 @@ const generateVirtualRemote = ({fullName, targetPath, rootPackagePath, pkg, args
165
125
 
166
126
 
167
127
 
168
- const generateDefault = ({fullName, targetPath, rootPackagePath, pkg, args = constants.DEFAULT_CONFIG}) => {
128
+ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
129
+
130
+ const targetPath = path.join(constants.TARGET_ROOT_PATH, args.fullName);
169
131
 
170
132
  return Promise.resolve()
171
133
  // INIT and cleanup
172
134
  .then(() => {
173
- return init(args.pkgFrontendType, rootPackagePath, targetPath);
135
+ tools.logInfo('Cleaning target');
136
+ return tools.rimraf(targetPath + '/**/*');
174
137
  })
175
138
 
176
139
  // COPY TO TARGET
177
140
  .then(() => {
178
141
  tools.logInfo('Copying skeleton to target');
179
- if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE) {
180
- if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10) {
181
- tools.copydir(constants.FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
182
-
183
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
184
- tools.copydir(constants.FRONTEND_SKELETON_REMOTE_EUI10_PATH, targetPath, true);
185
- tools.copydir(constants.FRONTEND_SKELETON_REMOTE_EUI15_PATH, targetPath, true);
186
- }
187
-
188
- } else {
189
- if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10) {
190
- tools.copydir(constants.FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
191
-
192
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI13) {
193
- tools.copydir(constants.FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
194
- tools.copydir(constants.FRONTEND_SKELETON_EUI13_PATH, targetPath, true);
195
-
196
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
197
- tools.copydir(constants.FRONTEND_SKELETON_EUI10_PATH, targetPath, true);
198
- tools.copydir(constants.FRONTEND_SKELETON_EUI15_PATH, targetPath, true);
199
- }
200
- }
201
-
202
- if (args.isRouteModule) {
203
- tools.copydir(constants.FRONTEND_OPTION_ROUTE_PATH, targetPath, true);
142
+ if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
143
+ tools.copydir(constants.FRONTEND_SKELETON_EUI15_PATH, targetPath, true);
204
144
  }
205
145
 
206
146
  // REPLACING PLACEHOLDERS
207
147
  tools.logInfo('Replace sources content');
208
- replaceContent(targetPath, args.pkgName, args.pkgScope, fullName);
148
+ replaceContent(targetPath, args.pkgName, args.pkgScope, args.fullName);
209
149
 
210
150
  // REGISTERING PACKAGE in CSDR GLOBAL CONFIG
211
151
  tools.logInfo('Registering package');
212
152
 
153
+ // generating default package entries
154
+ const pkg = {
155
+ name: args.fullName,
156
+ repoName: args.repoName,
157
+ npmPkgName: args.npmPkgName,
158
+ paths: {
159
+ root: targetPath
160
+ }
161
+ };
162
+
213
163
  tools.logInfo('Adding CSDR config entry');
214
164
  configUtils.register.registerCsdrPackage(
215
- pkg, args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE,
216
- args.pkgScope, args.pkgName, args.pkgFrontendVersion
165
+ pkg, args.pkgScope, args.pkgName, args.pkgFrontendVersion
217
166
  );
218
167
 
219
- if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT) {
220
- configUtils.angular.registerAngularPackage(pkg);
221
- configUtils.angular.registerModulePaths(pkg);
222
- }
168
+ configUtils.angular.registerAngularPackage(pkg);
169
+ configUtils.angular.registerModulePaths(pkg);
223
170
 
224
171
  replaceExtensions(targetPath);
225
172
  })
226
173
 
227
- .then(() => {
228
- if (args.isEnvTargetRemote) {
229
- tools.logInfo('Moving sources from remote to root package for envTarget remote type');
230
- return tools.move(path.join(targetPath, 'src'), path.join(rootPackagePath, 'assets', 'remote-sources'));
231
- }
232
- })
233
-
234
174
  .then(() => {
235
175
  if (
236
- args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT &&
237
176
  args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15
238
177
  ) {
239
178
  return tools.remove(path.join(targetPath, 'tslint.json'));
@@ -253,61 +192,12 @@ const generateDefault = ({fullName, targetPath, rootPackagePath, pkg, args = con
253
192
  module.exports.generate = (args = constants.DEFAULT_CONFIG) => {
254
193
  tools.logTitle('Generating frontend package');
255
194
 
256
- let npmPkgName, repoName;
257
- let fullName = args.pkgScope.substring(1) + '-' + args.pkgName;
258
-
259
- if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT) {
260
- fullName += '-ui';
261
- npmPkgName = `${args.pkgScope}/${args.pkgName}`;
262
-
263
- } else if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE) {
264
- if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10) {
265
- fullName += '-eui10-remote-el-ui';
266
- npmPkgName = `${args.pkgScope}/${args.pkgName}-eui10-remote-el`;
267
-
268
- } else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
269
- fullName += '-eui15-remote-el-ui';
270
- npmPkgName = `${args.pkgScope}/${args.pkgName}-eui15-remote-el`;
271
- }
272
- }
273
-
274
- // generating default git repo
275
- if (args.isCsdrRepo) {
276
- repoName = `${fullName}.git`;
277
- } else {
278
- repoName = `${args.externalRepoName}/${fullName}.git`;
279
- }
280
-
281
- // generating target paths
282
- let targetPath, rootPackagePath;
283
-
284
- if (args.isVirtualRemote) {
285
- // virtual remotes are generated into /remotes root folder
286
- targetPath = path.join(constants.TARGET_ROOT_REMOTES_PATH, fullName);
287
- } else {
288
- // normal remote / packages are generated into /packages root folder
289
- targetPath = path.join(constants.TARGET_ROOT_PATH, fullName);
290
- }
291
-
292
- // generating rootPackagePath : the linked package with the envTarget/a-la-carte remote setup (now default)
293
- rootPackagePath = path.join(constants.TARGET_ROOT_PATH, `${args.pkgScope.substring(1)}-${args.pkgName}-ui`);
294
-
295
- // generating default package entries
296
- const pkg = {
297
- name: fullName,
298
- repoName: repoName,
299
- npmPkgName: npmPkgName,
300
- paths: {
301
- root: rootPackagePath
302
- }
303
- };
304
-
305
195
  return Promise.resolve()
306
196
  .then(() => {
307
- if (args.isVirtualRemote) {
308
- return generateVirtualRemote({fullName, targetPath, rootPackagePath, pkg, args});
197
+ if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE) {
198
+ return generateRemote(args);
309
199
  } else {
310
- return generateDefault({fullName, targetPath, rootPackagePath, pkg, args});
200
+ return generateDefault(args);
311
201
  }
312
202
  })
313
203
 
@@ -315,10 +205,3 @@ module.exports.generate = (args = constants.DEFAULT_CONFIG) => {
315
205
  throw e;
316
206
  })
317
207
  }
318
-
319
-
320
-
321
-
322
-
323
-
324
-