@eui/tools 5.0.0-rc.10 → 5.0.0-rc.12

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 (259) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +615 -23
  3. package/bin/eui-scripts.js +6 -6
  4. package/bin/scripts/build-package-sub.js +20 -0
  5. package/bin/scripts/version.js +12 -0
  6. package/global.test.js +61 -45
  7. package/package.json +8 -9
  8. package/sandbox.js +158 -6
  9. package/scripts/csdr/audit/audit-utils.js +2 -2
  10. package/scripts/csdr/cli/app.js +43 -5
  11. package/scripts/csdr/cli/package.js +93 -9
  12. package/scripts/csdr/cli/skeletons/app-eui10/angular-config.json +20 -0
  13. package/scripts/csdr/cli/skeletons/app-eui10/dependencies-base.json +2 -0
  14. package/scripts/csdr/cli/skeletons/app-eui10/dependencies-composite.json +5 -0
  15. package/scripts/csdr/cli/skeletons/app-eui10/gitignore_TO_REPLACE +63 -0
  16. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/models/user.js +8 -0
  17. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/index.js +5 -0
  18. package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/user_routes.js +24 -0
  19. package/scripts/csdr/cli/skeletons/app-eui10/mock/db/db.json +12 -0
  20. package/scripts/csdr/cli/skeletons/app-eui10/mock/server.js +16 -0
  21. package/scripts/csdr/cli/skeletons/app-eui10/package.json +6 -0
  22. package/scripts/csdr/cli/skeletons/app-eui10/scripts.json +5 -0
  23. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-routing.module.ts +18 -0
  24. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-starter.service.ts +68 -0
  25. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.html +29 -0
  26. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.ts +55 -0
  27. package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.module.ts +27 -0
  28. package/scripts/{utils/pre-build/translations/common.js → csdr/cli/skeletons/app-eui10/src/app/core/components/.gitkeep} +0 -0
  29. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/core.module.ts +84 -0
  30. package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/reducers/index.ts +33 -0
  31. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home-routing.module.ts +15 -0
  32. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.html +7 -0
  33. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.ts +19 -0
  34. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.module.ts +18 -0
  35. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.html +7 -0
  36. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.ts +7 -0
  37. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.html +7 -0
  38. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.ts +7 -0
  39. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1-routing.module.ts +18 -0
  40. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.html +7 -0
  41. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.ts +8 -0
  42. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.module.ts +21 -0
  43. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2-routing.module.ts +16 -0
  44. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.html +8 -0
  45. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.ts +7 -0
  46. package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.module.ts +17 -0
  47. package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/shared.module.ts +21 -0
  48. package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/testing/router.mock.ts +18 -0
  49. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/config/env-json-config.json +8 -0
  50. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/en.json +7 -0
  51. package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/fr.json +7 -0
  52. package/scripts/csdr/cli/skeletons/app-eui10/src/config/global.ts +20 -0
  53. package/scripts/csdr/cli/skeletons/app-eui10/src/config/index.ts +8 -0
  54. package/scripts/csdr/cli/skeletons/app-eui10/src/config/modules.ts +4 -0
  55. package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.prod.ts +9 -0
  56. package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.ts +9 -0
  57. package/scripts/csdr/cli/skeletons/app-eui10/src/index.html +21 -0
  58. package/scripts/csdr/cli/skeletons/app-eui10/src/styles.scss +1 -0
  59. package/scripts/csdr/cli/skeletons/app-eui10/tslint.json +17 -0
  60. package/scripts/csdr/cli/skeletons/app-showcase/angular-config.json +98 -28
  61. package/scripts/csdr/cli/skeletons/app-showcase/dependencies-composite.json +1 -1
  62. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.html +16 -18
  63. package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.routes.ts +1 -1
  64. package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.module.ts +2 -2
  65. package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +33 -0
  66. package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +5 -0
  67. package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +50 -0
  68. package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +6 -0
  69. package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +3 -0
  70. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +21 -0
  71. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +26 -0
  72. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +19 -0
  73. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +7 -0
  74. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +15 -0
  75. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +7 -0
  76. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +8 -0
  77. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +17 -0
  78. package/scripts/csdr/cli/skeletons/{app-showcase → app-showcase-eui13}/src/app/features/shared/shared.module.ts +0 -0
  79. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +8 -0
  80. package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +41 -0
  81. package/scripts/csdr/cli/skeletons/{app-showcase → app-showcase-eui13}/src/index.html +0 -0
  82. package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/en.json +3 -0
  83. package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/fr.json +3 -0
  84. package/scripts/csdr/cli/skeletons/package/frontend-eui10/gitignore_TO_REPLACE +46 -0
  85. package/scripts/csdr/cli/skeletons/package/frontend-eui10/karma.conf.js +7 -0
  86. package/scripts/csdr/cli/skeletons/package/frontend-eui10/ng-package.json +7 -0
  87. package/scripts/csdr/cli/skeletons/package/frontend-eui10/package.json +4 -0
  88. package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/dummy.spec.ts.TO_REPLACE +5 -0
  89. package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/index.ts +1 -0
  90. package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/lib/module.ts +11 -0
  91. package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/test.ts.TO_REPLACE +21 -0
  92. package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +32 -0
  93. package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.spec.json +17 -0
  94. package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +17 -0
  95. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.html +1 -0
  96. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.spec.ts.TO_REPLACE +25 -0
  97. package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.ts +14 -0
  98. package/scripts/csdr/cli/skeletons/package/frontend-remote/angular.json +3 -3
  99. package/scripts/csdr/cli/skeletons/package/frontend-remote/dependencies-composite.json +1 -0
  100. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.scss +3 -0
  101. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.spec.ts +6 -0
  102. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.component.ts +62 -28
  103. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.ts +44 -39
  104. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/routing.module.ts +23 -9
  105. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/en.json +1 -0
  106. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/fr.json +1 -0
  107. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/config/global.ts +6 -5
  108. package/scripts/csdr/cli/skeletons/package/frontend-remote/src/index.html +1 -1
  109. package/scripts/csdr/cli/skeletons/package/frontend-remote/tsconfig.app.json +3 -1
  110. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +90 -0
  111. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +10 -0
  112. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +2 -0
  113. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +6 -0
  114. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +64 -0
  115. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +7 -0
  116. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +8 -0
  117. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +3 -0
  118. package/scripts/csdr/cli/skeletons/package/{frontend-remote/src/app/dummy.spec.ts.TO_REPLACE → frontend-remote-eui10/src/app/dummy.spec.ts} +0 -0
  119. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/fallback.component.ts +11 -0
  120. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +90 -0
  121. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +219 -0
  122. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +28 -0
  123. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +42 -0
  124. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +55 -0
  125. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
  126. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +31 -0
  127. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +20 -0
  128. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +3 -0
  129. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +3 -0
  130. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +15 -0
  131. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
  132. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +10 -0
  133. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +12 -0
  134. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +86 -0
  135. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/test.ts.TO_REPLACE +20 -0
  136. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +20 -0
  137. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +18 -0
  138. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +7 -0
  139. package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +17 -0
  140. package/scripts/csdr/cli/skeletons/package/{frontend-remote → frontend-remote-eui10}/webpack.extra.js +0 -0
  141. package/scripts/csdr/config/angular.js +718 -79
  142. package/scripts/csdr/config/global.js +43 -6
  143. package/scripts/csdr/config/packages.js +64 -1
  144. package/scripts/csdr/config/projects.js +24 -6
  145. package/scripts/csdr/config/projects.test.js +11 -9
  146. package/scripts/csdr/config/sync.js +6 -3
  147. package/scripts/csdr/init/init-utils.js +72 -0
  148. package/scripts/csdr/init/init.js +6 -0
  149. package/scripts/csdr/init/prompt.js +3 -1
  150. package/scripts/csdr/init/resources/10.x/yarn.lock +16428 -0
  151. package/scripts/csdr/init/resources/13.x/browserslistrc +6 -0
  152. package/scripts/csdr/init/resources/13.x/resolutions.json +6 -0
  153. package/scripts/csdr/init/resources/14.x/browserslistrc +6 -0
  154. package/scripts/csdr/init/resources/14.x/resolutions.json +5 -0
  155. package/scripts/csdr/install/build-app.js +6 -38
  156. package/scripts/csdr/install/build-package.js +16 -157
  157. package/scripts/csdr/install/common.js +13 -8
  158. package/scripts/csdr/install/composite-core.js +256 -0
  159. package/scripts/csdr/install/install-utils.js +8 -4
  160. package/scripts/csdr/install/local-dev.js +5 -3
  161. package/scripts/csdr/install/packages.js +90 -0
  162. package/scripts/csdr/install/projects.js +76 -0
  163. package/scripts/csdr/install/{remote.js → remotes.js} +46 -51
  164. package/scripts/csdr/metadata/app-envs.js +0 -39
  165. package/scripts/csdr/metadata/app-history.js +0 -66
  166. package/scripts/csdr/metadata/app-versions.js +2 -12
  167. package/scripts/csdr/metadata/app.js +49 -9
  168. package/scripts/csdr/metadata/common.js +21 -45
  169. package/scripts/csdr/metadata/metadata-utils.js +2 -0
  170. package/scripts/csdr/metadata/package-envs.js +71 -0
  171. package/scripts/csdr/metadata/package-history.js +5 -0
  172. package/scripts/csdr/metadata/package-versions.js +79 -0
  173. package/scripts/csdr/metadata/package.js +169 -101
  174. package/scripts/csdr/metadata/stats.js +9 -5
  175. package/scripts/csdr/release/app/release-app.js +16 -21
  176. package/scripts/csdr/release/package/backend.js +26 -0
  177. package/scripts/csdr/release/package/common.js +160 -13
  178. package/scripts/csdr/release/package/release-package.js +31 -5
  179. package/scripts/csdr/release/package/remote.js +2 -17
  180. package/scripts/csdr/release/package/ui.js +86 -3
  181. package/scripts/csdr/sync/sync-utils.js +3 -0
  182. package/scripts/csdr/version/app-common.js +32 -0
  183. package/scripts/csdr/version/app-env-target.js +5 -295
  184. package/scripts/csdr/version/app.js +5 -3
  185. package/scripts/csdr/version/{app-env-target.test.js → common..test.js} +32 -31
  186. package/scripts/csdr/version/common.js +277 -0
  187. package/scripts/csdr/version/package-common.js +158 -0
  188. package/scripts/csdr/version/package-default.js +144 -0
  189. package/scripts/csdr/version/package-remote.js +51 -0
  190. package/scripts/csdr/version/package.js +16 -270
  191. package/scripts/utils/api-utils.js +90 -0
  192. package/scripts/utils/build/app/build-app-utils.js +11 -9
  193. package/scripts/utils/build/package/angular.js +4 -30
  194. package/scripts/utils/build/package/build-package-utils.js +50 -1
  195. package/scripts/utils/build/package/element.js +15 -16
  196. package/scripts/utils/build/package/nodeJs.js +2 -1
  197. package/scripts/utils/build/package/skeletons/elements/index.html +9 -0
  198. package/scripts/utils/build/package/styles.js +92 -92
  199. package/scripts/utils/git-utils.js +69 -6
  200. package/scripts/utils/index.js +0 -2
  201. package/scripts/utils/notification/common.js +5 -0
  202. package/scripts/utils/notification/mail-utils.js +3 -0
  203. package/scripts/utils/notification/mailstack.js +3 -5
  204. package/scripts/utils/notification/package.js +0 -2
  205. package/scripts/utils/notification/slack-utils.js +6 -7
  206. package/scripts/utils/pre-build/elements.js +8 -4
  207. package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/app/app.module.ts +1 -1
  208. package/scripts/utils/pre-build/injection/app-sources-full-skeleton/tsconfig.app.json +1 -2
  209. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/app.module.ts +52 -0
  210. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/core/reducers/index.ts +40 -0
  211. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/global.ts +4 -0
  212. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/index.ts +8 -0
  213. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/modules.ts +4 -0
  214. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.dev.ts +9 -0
  215. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.prod.ts +9 -0
  216. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.ts +21 -0
  217. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/favicon.ico +0 -0
  218. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/karma.conf.js +7 -0
  219. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/main.ts +21 -0
  220. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/polyfills.ts +86 -0
  221. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/tst.ts +33 -0
  222. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.app.json +19 -0
  223. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.spec.json +9 -0
  224. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tslint.json +17 -0
  225. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/app/app.module.ts +52 -0
  226. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/app/core/reducers/index.ts +40 -0
  227. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/config/global.ts +4 -0
  228. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/config/index.ts +8 -0
  229. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/config/modules.ts +4 -0
  230. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/environments/environment.dev.ts +9 -0
  231. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/environments/environment.prod.ts +9 -0
  232. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/environments/environment.ts +21 -0
  233. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/favicon.ico +0 -0
  234. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/karma.conf.js +7 -0
  235. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/main.ts +21 -0
  236. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/polyfills.ts +86 -0
  237. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/src/_generated/tst.ts +33 -0
  238. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/tsconfig.app.json +19 -0
  239. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/tsconfig.spec.json +9 -0
  240. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/tslint.json +17 -0
  241. package/scripts/utils/pre-build/injection/config.js +30 -31
  242. package/scripts/utils/pre-build/injection/externals.js +70 -72
  243. package/scripts/utils/pre-build/injection/injection-utils.js +2 -0
  244. package/scripts/utils/pre-build/injection/routes-replacement.js +318 -0
  245. package/scripts/utils/pre-build/injection/skeletons.js +9 -3
  246. package/scripts/utils/pre-build/projects.js +20 -15
  247. package/scripts/utils/pre-build/translations/elements.js +21 -11
  248. package/scripts/utils/serve/app.js +7 -4
  249. package/scripts/utils/test/test-utils.js +39 -1
  250. package/scripts/utils/tools.js +370 -285
  251. package/bin/scripts/csdr-jira-update.js +0 -12
  252. package/bin/scripts/csdr-migrate-package.js +0 -17
  253. package/bin/scripts/e2e-app.js +0 -62
  254. package/scripts/csdr/install/composite-utils.js +0 -292
  255. package/scripts/csdr/jira/jira-utils.js +0 -169
  256. package/scripts/csdr/jira/update.js +0 -153
  257. package/scripts/migration/eui8-migration.js +0 -94
  258. package/scripts/migration/migrate-utils.js +0 -191
  259. package/scripts/utils/confluence-utils.js +0 -126
@@ -20,7 +20,7 @@ module.exports.run = () => {
20
20
  const project = configUtils.projects.getProject();
21
21
 
22
22
  // fetching command parameters
23
- var { branch, dryRun, envTarget, compositeType } = utils.tools.getArgs();
23
+ var { branch, dryRun, envTarget, compositeType, configEnvTarget } = utils.tools.getArgs();
24
24
 
25
25
  // checking branch and envTarget types
26
26
  if (branch && typeof (branch) === 'boolean') {
@@ -29,6 +29,9 @@ module.exports.run = () => {
29
29
  if (envTarget && typeof (envTarget) === 'boolean') {
30
30
  envTarget = null;
31
31
  }
32
+ if (configEnvTarget && typeof (configEnvTarget) === 'boolean') {
33
+ configEnvTarget = null;
34
+ }
32
35
 
33
36
  // globals
34
37
  if (!branch && !envTarget) {
@@ -37,11 +40,13 @@ module.exports.run = () => {
37
40
  }
38
41
 
39
42
  // Getting branch flags
43
+ var isSupportSnapshotBranch;
40
44
  var isSupportBranch;
41
45
  var isSnapshot;
42
46
 
43
47
  if (branch) {
44
- isSupportBranch = (branch !== 'master' && branch.indexOf('support/') > -1);
48
+ isSupportSnapshotBranch = (branch !== 'master' && branch.indexOf('support/develop') > -1);
49
+ isSupportBranch = (branch !== 'master' && !isSupportSnapshotBranch && branch.indexOf('support/') > -1);
45
50
  isSnapshot = (branch !== 'master' && !isSupportBranch);
46
51
  }
47
52
 
@@ -56,7 +61,7 @@ module.exports.run = () => {
56
61
 
57
62
  // for traditional app build using develop / master branch
58
63
  } else {
59
- if (isSnapshot) {
64
+ if (isSnapshot || isSupportSnapshotBranch) {
60
65
  envTargetGen = 'DEV';
61
66
  } else {
62
67
  envTargetGen = 'TST';
@@ -78,6 +83,9 @@ module.exports.run = () => {
78
83
 
79
84
  // Starting the release process
80
85
  return Promise.resolve()
86
+ .then(() => {
87
+ utils.tools.logVersion();
88
+ })
81
89
 
82
90
  // *****************************************************************
83
91
  // RELEASE PACKAGE START
@@ -142,7 +150,7 @@ module.exports.run = () => {
142
150
  .then(() => {
143
151
  utils.tools.logTitle('Getting app new version...');
144
152
 
145
- return versionUtils.app.getNewVersion(project, isSnapshot, isSupportBranch, envTarget);
153
+ return versionUtils.app.getNewVersion(project, (isSnapshot || isSupportSnapshotBranch), isSupportBranch, envTarget);
146
154
  })
147
155
  .then((version) => {
148
156
  // set the new version found for later use
@@ -196,7 +204,7 @@ module.exports.run = () => {
196
204
  // *****************************************************************
197
205
  .then(() => {
198
206
  // process v1 - diff report is generated on MASTER / TST release
199
- if (!isSnapshot && !envTarget) {
207
+ if (!isSnapshot && !isSupportSnapshotBranch && !envTarget) {
200
208
  return metadataUtils.appHistory.generateDiffReport(project, newVersion, isSupportBranch);
201
209
  }
202
210
 
@@ -253,7 +261,7 @@ module.exports.run = () => {
253
261
  // BUILD ANGULAR APPLICATION
254
262
  // *****************************************************************
255
263
  .then(() => {
256
- return utils.buildApp.angular(envTarget, isSnapshot, newVersion);
264
+ return utils.buildApp.angular(envTarget, (isSnapshot || isSupportSnapshotBranch), newVersion, configEnvTarget);
257
265
  })
258
266
 
259
267
 
@@ -282,7 +290,7 @@ module.exports.run = () => {
282
290
  if (project.build && project.build.distribution) {
283
291
  return Promise.resolve()
284
292
  .then(() => {
285
- return utils.buildApp.generateProjectDistributionFile(project, isSnapshot);
293
+ return utils.buildApp.generateProjectDistributionFile(project, (isSnapshot || isSupportSnapshotBranch));
286
294
  })
287
295
  .catch((e) => {
288
296
  throw e;
@@ -335,7 +343,7 @@ module.exports.run = () => {
335
343
  .then(() => {
336
344
  // for env-target based builds, no need to merge anything back as it only contains a master branch for sources
337
345
  if (!envTarget) {
338
- if (!isSnapshot && !isSupportBranch) {
346
+ if (!isSnapshot && !isSupportBranch && !isSupportSnapshotBranch) {
339
347
  return utils.git.mergeMasterToDevelop(project, project.folder);
340
348
  }
341
349
  }
@@ -357,19 +365,6 @@ module.exports.run = () => {
357
365
 
358
366
 
359
367
 
360
- // *****************************************************************
361
- // GENERATE VERSION HISTORY PAGE ON CONFLUENCE
362
- // *****************************************************************
363
- .then(() => {
364
- if (envTargetGen !== 'DEV') {
365
- return metadataUtils.common.publishMetadata(project);
366
- }
367
- })
368
-
369
-
370
-
371
-
372
-
373
368
  // *****************************************************************
374
369
  // SEND SLACK SUCCESS
375
370
  // *****************************************************************
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ // GLOBAL
4
+ const path = require('path');
5
+
6
+ // LOCAL
7
+ const installUtils = require('../../install/install-utils');
8
+ const configUtils = require('../../config/config-utils');
9
+
10
+ module.exports.install = (pkg) => {
11
+ return Promise.resolve()
12
+
13
+ // FETCHING CURRENT PACKAGES & INSTALL
14
+ .then(() => {
15
+ // fetch related project if passed as arguments
16
+ const prj = configUtils.projects.getProject();
17
+
18
+ // install the dependencies for current package build
19
+ return installUtils.buildPackage.install(prj, pkg);
20
+ })
21
+
22
+ .catch((e) => {
23
+ throw e;
24
+ })
25
+ }
26
+
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  // GLOBAL
4
+ const path = require('path');
4
5
 
5
6
  // UTILS
6
7
  const utils = require('../../../utils');
@@ -14,14 +15,15 @@ const { dryRun } = utils.tools.getArgs();
14
15
 
15
16
 
16
17
 
17
- module.exports.getBranches = () => {
18
+ const getBranches = module.exports.getBranches = () => {
18
19
  const { branch } = utils.tools.getArgs();
19
20
 
20
21
  const isSnapshot = (branch === 'develop');
21
22
  const isMaster = (branch === 'master');
22
- const isSupport = (!isMaster && !isSnapshot && branch.indexOf('support/') > -1);
23
- const isNext = (!isMaster && !isSnapshot && !isSupport && branch.indexOf('next/') > -1);
24
- const isSupportSnapshot = (!isMaster && !isSnapshot && !isSupport && !isNext);
23
+ const isSupportSnapshot = (!isMaster && !isSnapshot && branch.indexOf('support/develop') > -1);
24
+ const isSupport = (!isMaster && !isSnapshot && !isSupportSnapshot && branch.indexOf('support/') > -1);
25
+ const isHotfix = (!isMaster && !isSnapshot && !isSupportSnapshot && !isSupport && branch.indexOf('hotfix/') > -1);
26
+ const isNext = (!isMaster && !isSnapshot && !isSupport && !isSupportSnapshot && !isHotfix && branch.indexOf('next/') > -1);
25
27
 
26
28
  return {
27
29
  isSupport: isSupport,
@@ -29,12 +31,56 @@ module.exports.getBranches = () => {
29
31
  isNext: isNext,
30
32
  isSnapshot: isSnapshot,
31
33
  isMaster: isMaster,
34
+ isHotfix: isHotfix,
32
35
  branch: branch
33
36
  }
34
37
  }
35
38
 
39
+ module.exports.getEnvTarget = () => {
40
+ const { envTarget } = utils.tools.getArgs();
41
+
42
+ // Initialize composite type
43
+ if (envTarget && typeof (envTarget) === 'boolean') {
44
+ envTarget = null;
45
+ }
46
+
47
+ let envTargetGen;
48
+
49
+ // when envTarget is provided this take the lead
50
+ if (envTarget) {
51
+ envTargetGen = envTarget;
52
+
53
+ // otherwise the envTarget is derived from branches develop = DEV/ master = TST
54
+ } else {
55
+ const branches = getBranches();
56
+ if (branches.isSnapshot || branches.isSupportSnapshotBranch) {
57
+ envTargetGen = 'DEV';
58
+ } else {
59
+ envTargetGen = 'TST';
60
+ }
61
+ }
62
+
63
+ return envTargetGen;
64
+ }
65
+
66
+ module.exports.getCompositeType = () => {
67
+ let { compositeType } = utils.tools.getArgs();
68
+
69
+ // Initialize composite type
70
+ if (compositeType && typeof (compositeType) === 'boolean') {
71
+ compositeType = null;
72
+ }
73
+
74
+ if (!compositeType) {
75
+ compositeType = 'DEFAULT';
76
+ }
77
+
78
+ return compositeType;
79
+ }
80
+
36
81
 
37
82
  module.exports.init = (pkg) => {
83
+ utils.tools.logBanner('INIT');
38
84
 
39
85
  const branches = this.getBranches();
40
86
 
@@ -71,6 +117,11 @@ module.exports.init = (pkg) => {
71
117
  return metadataUtils.common.cloneMetadataRepo();
72
118
  })
73
119
 
120
+ // CLONE METADATA LOCKS REPO
121
+ .then(() => {
122
+ return metadataUtils.common.cloneMetadataLocksRepo();
123
+ })
124
+
74
125
  .catch((e) => {
75
126
  throw e;
76
127
  })
@@ -82,6 +133,8 @@ module.exports.init = (pkg) => {
82
133
 
83
134
 
84
135
  module.exports.preReleaseChecks = (pkg) => {
136
+ utils.tools.logBanner('PRE-RELEASE checks');
137
+
85
138
  return Promise.resolve()
86
139
 
87
140
  // GET AND CHECK DEVOPS CONFIG
@@ -112,6 +165,8 @@ module.exports.preReleaseChecks = (pkg) => {
112
165
 
113
166
 
114
167
  module.exports.commitMetadataChecks = (pkg) => {
168
+ utils.tools.logBanner('COMMIT METADATA CHECKS');
169
+
115
170
  utils.tools.logTitle('Checking package commit metadata');
116
171
  let pkgMetadata;
117
172
 
@@ -146,6 +201,8 @@ module.exports.commitMetadataChecks = (pkg) => {
146
201
 
147
202
 
148
203
  module.exports.preBuild = (pkg) => {
204
+ utils.tools.logBanner('PRE-BUILD');
205
+
149
206
  return Promise.resolve()
150
207
  .then(() => {
151
208
  return utils.buildPackage.preBuild(pkg);
@@ -159,7 +216,8 @@ module.exports.preBuild = (pkg) => {
159
216
 
160
217
 
161
218
 
162
- module.exports.updateVersion = (pkg, pkgMetadata) => {
219
+ module.exports.updateVersion = (pkg, pkgMetadata, envTarget) => {
220
+ utils.tools.logBanner('UPDATE VERSION');
163
221
 
164
222
  // getting branch flags
165
223
  const branches = this.getBranches();
@@ -171,7 +229,15 @@ module.exports.updateVersion = (pkg, pkgMetadata) => {
171
229
 
172
230
  // GET NEW VERSION from VALID commits found in metadata
173
231
  .then(() => {
174
- return versionUtils.package.getNewVersion(pkg, pkgMetadata.commits, branches.isSnapshot, branches.isNext, branches.isSupport);
232
+ return versionUtils.package.getNewVersion(
233
+ pkg,
234
+ pkgMetadata.commits,
235
+ (branches.isSnapshot || branches.isSupportSnapshot),
236
+ branches.isNext,
237
+ branches.isSupport,
238
+ branches.isHotfix,
239
+ envTarget
240
+ );
175
241
  })
176
242
 
177
243
 
@@ -179,9 +245,14 @@ module.exports.updateVersion = (pkg, pkgMetadata) => {
179
245
  .then((version) => {
180
246
  newVersion = version;
181
247
 
182
- if (!dryRun) {
183
- return versionUtils.package.updateVersion(pkg, version, branches.isSnapshot, branches.isNext, branches.isSupport);
184
- }
248
+ return versionUtils.package.updateVersion(
249
+ pkg,
250
+ version,
251
+ (branches.isSnapshot || branches.isSupportSnapshot),
252
+ branches.isNext,
253
+ branches.isSupport,
254
+ branches.isHotfix
255
+ );
185
256
  })
186
257
 
187
258
  // returning new version generated
@@ -198,6 +269,8 @@ module.exports.updateVersion = (pkg, pkgMetadata) => {
198
269
 
199
270
 
200
271
  module.exports.generateChangelog = (pkg, version, pkgMetadata) => {
272
+ utils.tools.logBanner('GENERATE CHANGELOG');
273
+
201
274
  return Promise.resolve()
202
275
 
203
276
  // GENERATE CHANGELOG
@@ -232,6 +305,8 @@ module.exports.generateChangelog = (pkg, version, pkgMetadata) => {
232
305
 
233
306
 
234
307
  module.exports.postBuild = (pkg, version) => {
308
+ utils.tools.logBanner('POST BUILD');
309
+
235
310
  return Promise.resolve()
236
311
  // all packages
237
312
  .then(() => {
@@ -252,9 +327,26 @@ module.exports.postBuild = (pkg, version) => {
252
327
  }
253
328
 
254
329
 
330
+ module.exports.storeMetadataAssets = (pkg, pkgCompositeDeps) => {
331
+ utils.tools.logBanner('STORE METADATA ASSETS');
332
+
333
+ return Promise.resolve()
334
+ .then(() => {
335
+ if (pkg.remote) {
336
+ return metadataUtils.package.storeMetadataAssets(pkg, pkgCompositeDeps);
337
+ }
338
+ })
339
+
340
+ .catch((e) => {
341
+ throw e;
342
+ })
343
+ }
344
+
255
345
  module.exports.runGitOperations = (pkg, version) => {
346
+ utils.tools.logBanner('RUN GIT OPERATIONS');
256
347
 
257
348
  const branches = this.getBranches();
349
+ console.log(branches);
258
350
 
259
351
  return Promise.resolve()
260
352
  // COMMIT and PUSH UPDATED FILES ON PACKAGE REPOSITORY
@@ -268,7 +360,7 @@ module.exports.runGitOperations = (pkg, version) => {
268
360
 
269
361
  // TAG THE NEW RELEASE (MASTER) for MASTER and SUPPORT
270
362
  .then(() => {
271
- if (!branches.isSnapshot) {
363
+ if (!branches.isSnapshot && !branches.isSupportSnapshot) {
272
364
  return utils.git.tagVersion(
273
365
  version, branches.branch,
274
366
  `chore(release): tagging ${version} - from CI server`,
@@ -280,10 +372,19 @@ module.exports.runGitOperations = (pkg, version) => {
280
372
  // MERGE BACK ON DEVELOP for MASTER / LATEST RELEASE
281
373
  .then(() => {
282
374
  if (branches.isMaster) {
375
+ utils.tools.logInfo('Branch is master merge back to develop');
283
376
  return utils.git.mergeMasterToDevelop(pkg, pkg.paths.pkgDirectory, version);
284
377
  }
285
378
  })
286
379
 
380
+ // MERGE BACK ON support/develop for support release for package that has a support/develop branch active
381
+ .then(() => {
382
+ if (branches.isSupport && pkg.build && pkg.build.supportSnapshotBranch) {
383
+ utils.tools.logInfo('Branch is support / supportSnapshotBranch config detected');
384
+ return utils.git.mergeSupportToSupportDevelop(pkg, pkg.paths.pkgDirectory, branches.branch, pkg.build.supportSnapshotBranch);
385
+ }
386
+ })
387
+
287
388
  .catch((e) => {
288
389
  throw e;
289
390
  })
@@ -291,16 +392,19 @@ module.exports.runGitOperations = (pkg, version) => {
291
392
 
292
393
 
293
394
 
294
- module.exports.storeMetadata = (pkg, version, pkgMetadata, pkgCompositeDeps, duration) => {
395
+ module.exports.storeMetadata = (pkg, version, pkgMetadata, pkgCompositeDeps, duration, envTarget) => {
396
+ utils.tools.logBanner('STORE METADATA');
397
+
295
398
  const branches = this.getBranches();
296
399
 
297
400
  return Promise.resolve()
298
401
  .then(() => {
299
402
  return metadataUtils.package.storeMetadata(
300
403
  pkg, version, pkgMetadata,
301
- branches.isSnapshot, branches.isMaster, branches.isSupport, branches.isNext, branches.isSupportSnapshot,
404
+ branches.isSnapshot, branches.isMaster, branches.isSupport, branches.isNext, branches.isSupportSnapshot, branches.isHotfix,
302
405
  pkgCompositeDeps,
303
- duration
406
+ duration,
407
+ envTarget
304
408
  );
305
409
  })
306
410
 
@@ -310,7 +414,44 @@ module.exports.storeMetadata = (pkg, version, pkgMetadata, pkgCompositeDeps, dur
310
414
  }
311
415
 
312
416
 
417
+ module.exports.exportPipelineVariables = (pkg) => {
418
+ utils.tools.logBanner('EXPORT PIPELINE VARIABLES');
419
+
420
+ return Promise.resolve()
421
+ .then(() => {
422
+ if (pkg.remote) {
423
+ utils.tools.logTitle('Exporting pkg remote variables');
424
+
425
+ utils.tools.logInfo('Exporting APP_TARGET');
426
+
427
+ let appTarget = 'MWP_ONLY';
428
+
429
+ if (pkg.build && pkg.build.appTarget) {
430
+ appTarget = pkg.build.appTarget;
431
+ }
432
+
433
+ utils.tools.logInfo(`appTarget generated : ${appTarget}`);
434
+
435
+ if (dryRun) {
436
+ utils.tools.logWarning('dryRun...skipping export');
437
+ } else {
438
+ utils.tools.logInfo('Exporting appTarget variable');
439
+ return utils.pipeline.setVariables(pkg.paths.rootDirectory, `export APP_TARGET=${pkg.build.appTarget}\n`);
440
+ }
441
+ }
442
+ })
443
+
444
+ .catch((e) => {
445
+ throw e;
446
+ })
447
+ }
448
+
449
+
450
+
451
+
313
452
  module.exports.generateDiffReport = (pkg, newVersion) => {
453
+ utils.tools.logBanner('GENERATE DIFF REPORT');
454
+
314
455
  const branches = this.getBranches();
315
456
 
316
457
  return Promise.resolve()
@@ -346,6 +487,8 @@ module.exports.generateDiffReport = (pkg, newVersion) => {
346
487
 
347
488
 
348
489
  module.exports.sendSuccessNotification = (pkg, version, pkgMetadata) => {
490
+ utils.tools.logBanner('SEND SUCCESS NOTIFICATION');
491
+
349
492
  return Promise.resolve()
350
493
  .then(() => {
351
494
  utils.tools.logTitle('Sending slack success');
@@ -381,6 +524,10 @@ module.exports.sendSuccessNotification = (pkg, version, pkgMetadata) => {
381
524
 
382
525
 
383
526
  module.exports.sendErrorNotification = (pkg, exception, pkgMetadata) => {
527
+ utils.tools.logBanner('SEND ERROR NOTIFICATION');
528
+
529
+ // console.log(pkgMetadata);
530
+
384
531
  return Promise.resolve()
385
532
  .then(() => {
386
533
  utils.tools.logTitle('ERROR !!!!! an unexpected error occured....');
@@ -14,6 +14,7 @@ const metadataUtils = require('../../metadata/metadata-utils');
14
14
  const innerCommon = require('./common');
15
15
  const innerUi = require('./ui');
16
16
  const innerRemote = require('./remote');
17
+ const innerBackend = require('./backend');
17
18
 
18
19
 
19
20
  module.exports.run = () => {
@@ -30,12 +31,22 @@ module.exports.run = () => {
30
31
  // Get branches flags
31
32
  const branches = innerCommon.getBranches();
32
33
 
34
+ // Get envTarget (used by remotes)
35
+ const envTarget = innerCommon.getEnvTarget();
36
+
37
+ // Get compositeType (used by remotes)
38
+ const compositeType = innerCommon.getCompositeType();
39
+
40
+
33
41
  // local saved vars
34
42
  var newVersion, pkgMetadata, pkgCompositeDeps;
35
43
 
36
44
 
37
-
38
45
  return Promise.resolve()
46
+ .then(() => {
47
+ utils.tools.logVersion();
48
+ })
49
+
39
50
 
40
51
  // RELEASE PACKAGE START
41
52
  .then(() => {
@@ -74,10 +85,13 @@ module.exports.run = () => {
74
85
  // INSTALL dependencies by type
75
86
  .then(() => {
76
87
  if (pkg.remote) {
77
- return innerRemote.install(pkg, branches.isMaster);
88
+ return innerRemote.install(pkg, envTarget, compositeType);
89
+
90
+ } else if (pkg.backend) {
91
+ return innerBackend.install(pkg);
78
92
 
79
93
  } else {
80
- return innerUi.install(pkg, branches.isMaster);
94
+ return innerUi.install(pkg);
81
95
  }
82
96
  })
83
97
  .then((compositeDeps) => {
@@ -100,7 +114,7 @@ module.exports.run = () => {
100
114
 
101
115
  // GENERATE and UPDATE new version
102
116
  .then(() => {
103
- return innerCommon.updateVersion(pkg, pkgMetadata);
117
+ return innerCommon.updateVersion(pkg, pkgMetadata, envTarget);
104
118
  })
105
119
  .then((version) => {
106
120
  // storing version for later use
@@ -122,6 +136,12 @@ module.exports.run = () => {
122
136
  })
123
137
 
124
138
 
139
+ // STORING METADATA ASSETS
140
+ .then(() => {
141
+ return innerCommon.storeMetadataAssets(pkg, pkgCompositeDeps);
142
+ })
143
+
144
+
125
145
  // PUBLISH PACKAGE
126
146
  .then(() => {
127
147
  return utils.publish.publish(pkg);
@@ -144,7 +164,7 @@ module.exports.run = () => {
144
164
  .then(() => {
145
165
  // get run duration
146
166
  const duration = utils.pipeline.getTimerDuration();
147
- return innerCommon.storeMetadata(pkg, newVersion, pkgMetadata, pkgCompositeDeps, duration);
167
+ return innerCommon.storeMetadata(pkg, newVersion, pkgMetadata, pkgCompositeDeps, duration, envTarget);
148
168
  })
149
169
 
150
170
 
@@ -156,6 +176,12 @@ module.exports.run = () => {
156
176
  })
157
177
 
158
178
 
179
+ // EXPORT ADDITIONAL PIPELINE VARIABLES
180
+ .then(() => {
181
+ return innerCommon.exportPipelineVariables(pkg);
182
+ })
183
+
184
+
159
185
  // SEND SUCCESS NOTIFICATION
160
186
  .then(() => {
161
187
  return innerCommon.sendSuccessNotification(pkg, newVersion, pkgMetadata)
@@ -2,42 +2,27 @@
2
2
 
3
3
  // GLOBAL
4
4
  const path = require('path');
5
-
6
- // LOCAL
7
5
  const installUtils = require('../../install/install-utils');
8
- const configUtils = require('../../config/config-utils');
9
- const auditUtils = require('../../audit/audit-utils');
10
-
11
6
 
12
- module.exports.install = (pkg, isMaster) => {
7
+ module.exports.install = (pkg, envTarget, compositeType) => {
13
8
  var pkgCompositeDeps = {};
14
9
 
15
10
  return Promise.resolve()
16
11
 
17
12
  // FETCHING CURRENT PACKAGES & INSTALL
18
13
  .then(() => {
19
- // fetch related project if passed as arguments
20
- const prj = configUtils.projects.getProject();
21
-
22
14
  // install the dependencies for current package build
23
- return installUtils.buildPackage.install(prj, pkg, isMaster);
15
+ return installUtils.buildPackage.installRemote(pkg, envTarget, compositeType);
24
16
  })
25
17
  .then((compositeDeps) => {
26
18
  // save composite deps for later exports
27
19
  pkgCompositeDeps = compositeDeps;
28
20
  })
29
21
 
30
-
31
- // AUDIT DEPENDENCIES
32
- .then(() => {
33
- return auditUtils.audit(pkg);
34
- })
35
-
36
22
  .then(() => {
37
23
  return pkgCompositeDeps;
38
24
  })
39
25
 
40
-
41
26
  .catch((e) => {
42
27
  throw e;
43
28
  })