@pega/dx-component-builder-sdk 0.1.19 → 0.1.21

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 (310) hide show
  1. package/package.json +1 -1
  2. package/src/constants.js +4 -0
  3. package/src/tasks/build-all/helper.js +1 -6
  4. package/src/tasks/create/index.js +15 -7
  5. package/src/tasks/delete/helper.js +1 -4
  6. package/src/tasks/delete/index.js +0 -2
  7. package/src/tasks/delete-all/helper.js +1 -4
  8. package/src/tasks/delete-all/index.js +0 -2
  9. package/src/tasks/generate-missing-companions/index.js +1 -3
  10. package/src/tasks/list/helper.js +1 -1
  11. package/src/tasks/list/index.js +0 -1
  12. package/src/tasks/map-all/helper.js +0 -8
  13. package/src/tasks/map-all/index.js +0 -4
  14. package/src/tasks/override/index.js +18 -12
  15. package/src/tasks/publish/helper.js +6 -3
  16. package/src/tasks/publish/index.js +5 -1
  17. package/src/tasks/publish-all/helper.js +7 -4
  18. package/src/tasks/publish-all/index.js +5 -1
  19. package/src/tasks/validator/index.js +1 -3
  20. package/src/util.js +0 -15
  21. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/Boolean.js.mustache +0 -0
  22. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/boolean-format.js.mustache +0 -0
  23. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/config.json.mustache +0 -0
  24. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/demo.stories.jsx.mustache +0 -0
  25. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/event-utils.js.mustache +0 -0
  26. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/index.jsx.mustache +0 -0
  27. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/mock.stories.js.mustache +0 -0
  28. /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/styles.js.mustache +0 -0
  29. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/DateFormatter.js.mustache +0 -0
  30. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/FormattedText.jsx.mustache +0 -0
  31. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/config.json.mustache +0 -0
  32. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/date.js.mustache +0 -0
  33. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/demo.stories.jsx.mustache +0 -0
  34. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/index.jsx.mustache +0 -0
  35. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/mock.stories.js.mustache +0 -0
  36. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/styles.js.mustache +0 -0
  37. /package/src/tasks/create/templates/Constellation/{Field → field}/Date/suggestions-handler.js +0 -0
  38. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/config.json.mustache +0 -0
  39. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date-time.js.mustache +0 -0
  40. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date-utils.js.mustache +0 -0
  41. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date.js.mustache +0 -0
  42. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/demo.stories.jsx.mustache +0 -0
  43. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/index.jsx.mustache +0 -0
  44. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/mock.stories.js.mustache +0 -0
  45. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/styles.js.mustache +0 -0
  46. /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/suggestions-handler.js +0 -0
  47. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/config.json.mustache +0 -0
  48. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/demo.stories.jsx.mustache +0 -0
  49. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/event-utils.js.mustache +0 -0
  50. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/index.jsx.mustache +0 -0
  51. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/mock.stories.js.mustache +0 -0
  52. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/styles.js.mustache +0 -0
  53. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/suggestions-handler.js +0 -0
  54. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/config.json.mustache +0 -0
  55. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/demo.stories.jsx.mustache +0 -0
  56. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/event-utils.js.mustache +0 -0
  57. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/index.jsx.mustache +0 -0
  58. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/mock.stories.js.mustache +0 -0
  59. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/styles.js.mustache +0 -0
  60. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/suggestions-handler.js +0 -0
  61. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/config.json.mustache +0 -0
  62. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/demo.stories.jsx.mustache +0 -0
  63. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/event-utils.js.mustache +0 -0
  64. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/index.jsx.mustache +0 -0
  65. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/mock.stories.js.mustache +0 -0
  66. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/styles.js.mustache +0 -0
  67. /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/suggestions-handler.js +0 -0
  68. /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/config.json.mustache +0 -0
  69. /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/demo.stories.jsx.mustache +0 -0
  70. /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/event-utils.js.mustache +0 -0
  71. /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/index.jsx.mustache +0 -0
  72. /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/mock.stories.js.mustache +0 -0
  73. /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/styles.js.mustache +0 -0
  74. /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/suggestions-handler.js +0 -0
  75. /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/config.json.mustache +0 -0
  76. /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/demo.stories.jsx.mustache +0 -0
  77. /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/event-utils.js.mustache +0 -0
  78. /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/index.jsx.mustache +0 -0
  79. /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/mock.stories.js.mustache +0 -0
  80. /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/styles.js.mustache +0 -0
  81. /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/suggestions-handler.js +0 -0
  82. /package/src/tasks/create/templates/Constellation/{Field → field}/Text/config.json.mustache +0 -0
  83. /package/src/tasks/create/templates/Constellation/{Field → field}/Text/demo.stories.jsx.mustache +0 -0
  84. /package/src/tasks/create/templates/Constellation/{Field → field}/Text/index.jsx.mustache +0 -0
  85. /package/src/tasks/create/templates/Constellation/{Field → field}/Text/mock.stories.js.mustache +0 -0
  86. /package/src/tasks/create/templates/Constellation/{Field → field}/Text/styles.js.mustache +0 -0
  87. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/config.json.mustache +0 -0
  88. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/demo.stories.jsx.mustache +0 -0
  89. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/event-utils.js.mustache +0 -0
  90. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/index.jsx.mustache +0 -0
  91. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/mock.stories.js.mustache +0 -0
  92. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/styles.js.mustache +0 -0
  93. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/suggestions-handler.js +0 -0
  94. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/StatusWork.jsx +0 -0
  95. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/config.json.mustache +0 -0
  96. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/demo.stories.jsx.mustache +0 -0
  97. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/event-utils.js.mustache +0 -0
  98. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/index.jsx.mustache +0 -0
  99. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/mock.stories.js.mustache +0 -0
  100. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/styles.js.mustache +0 -0
  101. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/suggestions-handler.js +0 -0
  102. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/config.json.mustache +0 -0
  103. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/demo.stories.jsx.mustache +0 -0
  104. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/event-utils.js.mustache +0 -0
  105. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/index.jsx.mustache +0 -0
  106. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/mock.stories.js.mustache +0 -0
  107. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/styles.js.mustache +0 -0
  108. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/suggestions-handler.js +0 -0
  109. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/config.json.mustache +0 -0
  110. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/demo.stories.jsx.mustache +0 -0
  111. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/event-utils.js.mustache +0 -0
  112. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/index.jsx.mustache +0 -0
  113. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/mock.stories.js.mustache +0 -0
  114. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/styles.js.mustache +0 -0
  115. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/suggestions-handler.js +0 -0
  116. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/config.json.mustache +0 -0
  117. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/demo.stories.jsx.mustache +0 -0
  118. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/event-utils.js.mustache +0 -0
  119. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/index.jsx.mustache +0 -0
  120. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/mock.stories.js.mustache +0 -0
  121. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/styles.js.mustache +0 -0
  122. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/suggestions-handler.js +0 -0
  123. /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/text-url.jsx.mustache +0 -0
  124. /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/config.json.mustache +0 -0
  125. /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/demo.stories.jsx.mustache +0 -0
  126. /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/index.jsx.mustache +0 -0
  127. /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/mock.stories.js.mustache +0 -0
  128. /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/styles.js.mustache +0 -0
  129. /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/suggestions-handler.js +0 -0
  130. /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/time-of-day.js.mustache +0 -0
  131. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/OneColumnDetails.svg +0 -0
  132. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/StatusWork.jsx.mustache +0 -0
  133. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/config.json.mustache +0 -0
  134. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/demo.stories.jsx.mustache +0 -0
  135. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/index.jsx.mustache +0 -0
  136. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/mock.stories.js.mustache +0 -0
  137. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/styles.js.mustache +0 -0
  138. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/utils.js.mustache +0 -0
  139. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/StatusWork.jsx.mustache +0 -0
  140. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/TwoColumnDetails.svg +0 -0
  141. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/config.json.mustache +0 -0
  142. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/demo.stories.jsx.mustache +0 -0
  143. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/index.jsx.mustache +0 -0
  144. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/mock.stories.js.mustache +0 -0
  145. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/styles.js.mustache +0 -0
  146. /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/utils.js.mustache +0 -0
  147. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/DefaultForm.svg +0 -0
  148. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/config.json.mustache +0 -0
  149. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/demo.stories.jsx.mustache +0 -0
  150. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/index.jsx.mustache +0 -0
  151. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/mock.stories.js.mustache +0 -0
  152. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/styles.js.mustache +0 -0
  153. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/TwoColumn.svg +0 -0
  154. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/config.json.mustache +0 -0
  155. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/demo.stories.jsx.mustache +0 -0
  156. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/index.jsx.mustache +0 -0
  157. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/mock.stories.js.mustache +0 -0
  158. /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/styles.js.mustache +0 -0
  159. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/GetNextWork.jsx.mustache +0 -0
  160. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/OneColumnPage.svg +0 -0
  161. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/config.json.mustache +0 -0
  162. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/demo.stories.jsx.mustache +0 -0
  163. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/index.jsx.mustache +0 -0
  164. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/localizations.json.mustache +0 -0
  165. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/mock.stories.js.mustache +0 -0
  166. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/styles.js.mustache +0 -0
  167. /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/utils.js.mustache +0 -0
  168. /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/OneColumnPage.svg +0 -0
  169. /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/config.json.mustache +0 -0
  170. /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/demo.stories.jsx.mustache +0 -0
  171. /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/index.jsx.mustache +0 -0
  172. /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/mock.stories.js.mustache +0 -0
  173. /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/styles.js.mustache +0 -0
  174. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/OneColumnPage.svg +0 -0
  175. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/config.json.mustache +0 -0
  176. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/demo.stories.jsx.mustache +0 -0
  177. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/index.jsx.mustache +0 -0
  178. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/mock.stories.js.mustache +0 -0
  179. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/styles.js.mustache +0 -0
  180. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/Avatar.jsx.mustache +0 -0
  181. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/OneColumnPage.svg +0 -0
  182. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/Operator.jsx.mustache +0 -0
  183. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/config.json.mustache +0 -0
  184. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/demo.stories.jsx.mustache +0 -0
  185. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/index.jsx.mustache +0 -0
  186. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/mock.stories.js.mustache +0 -0
  187. /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/styles.js.mustache +0 -0
  188. /package/src/tasks/create/templates/SDK-Angular/{Field → field}/__components.md +0 -0
  189. /package/src/tasks/create/templates/SDK-Angular/{Template → template}/__components.md +0 -0
  190. /package/src/tasks/create/templates/SDK-Angular/{Widget → widget}/__components.md +0 -0
  191. /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/config.json.mustache +0 -0
  192. /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/demo.stories.jsx.mustache +0 -0
  193. /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/index.tsx.mustache +0 -0
  194. /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/mock.stories.js.mustache +0 -0
  195. /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/styles.js.mustache +0 -0
  196. /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/config.json.mustache +0 -0
  197. /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/demo.stories.jsx.mustache +0 -0
  198. /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/index.tsx.mustache +0 -0
  199. /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/mock.stories.js.mustache +0 -0
  200. /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/styles.js.mustache +0 -0
  201. /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/config.json.mustache +0 -0
  202. /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/demo.stories.jsx.mustache +0 -0
  203. /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/index.tsx.mustache +0 -0
  204. /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/mock.stories.js.mustache +0 -0
  205. /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/styles.js.mustache +0 -0
  206. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/config.json.mustache +0 -0
  207. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/demo.stories.jsx.mustache +0 -0
  208. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/index.tsx.mustache +0 -0
  209. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/mock.stories.js.mustache +0 -0
  210. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/styles.js.mustache +0 -0
  211. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/config.json.mustache +0 -0
  212. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/demo.stories.jsx.mustache +0 -0
  213. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/index.tsx.mustache +0 -0
  214. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/mock.stories.js.mustache +0 -0
  215. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/styles.js.mustache +0 -0
  216. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/config.json.mustache +0 -0
  217. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/demo.stories.jsx.mustache +0 -0
  218. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/index.tsx.mustache +0 -0
  219. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/mock.stories.js.mustache +0 -0
  220. /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/styles.js.mustache +0 -0
  221. /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/config.json.mustache +0 -0
  222. /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/demo.stories.jsx.mustache +0 -0
  223. /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/index.tsx.mustache +0 -0
  224. /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/mock.stories.js.mustache +0 -0
  225. /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/styles.js.mustache +0 -0
  226. /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/config.json.mustache +0 -0
  227. /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/demo.stories.jsx.mustache +0 -0
  228. /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/index.tsx.mustache +0 -0
  229. /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/mock.stories.js.mustache +0 -0
  230. /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/styles.js.mustache +0 -0
  231. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/config.json.mustache +0 -0
  232. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/demo.stories.jsx.mustache +0 -0
  233. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/index.tsx.mustache +0 -0
  234. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/mock.stories.js.mustache +0 -0
  235. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/styles.js.mustache +0 -0
  236. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/config.json.mustache +0 -0
  237. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/demo.stories.jsx.mustache +0 -0
  238. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/index.tsx.mustache +0 -0
  239. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/mock.stories.js.mustache +0 -0
  240. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/styles.js.mustache +0 -0
  241. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/config.json.mustache +0 -0
  242. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/demo.stories.jsx.mustache +0 -0
  243. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/index.tsx.mustache +0 -0
  244. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/mock.stories.js.mustache +0 -0
  245. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/styles.js.mustache +0 -0
  246. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/config.json.mustache +0 -0
  247. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/demo.stories.jsx.mustache +0 -0
  248. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/index.tsx.mustache +0 -0
  249. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/mock.stories.js.mustache +0 -0
  250. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/styles.js.mustache +0 -0
  251. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/config.json.mustache +0 -0
  252. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/demo.stories.jsx.mustache +0 -0
  253. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/index.tsx.mustache +0 -0
  254. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/mock.stories.js.mustache +0 -0
  255. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/styles.js.mustache +0 -0
  256. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/config.json.mustache +0 -0
  257. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/demo.stories.jsx.mustache +0 -0
  258. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/index.tsx.mustache +0 -0
  259. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/mock.stories.js.mustache +0 -0
  260. /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/styles.js.mustache +0 -0
  261. /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/config.json.mustache +0 -0
  262. /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/demo.stories.jsx.mustache +0 -0
  263. /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/index.tsx.mustache +0 -0
  264. /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/mock.stories.js.mustache +0 -0
  265. /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/styles.js.mustache +0 -0
  266. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/DefaultForm.svg +0 -0
  267. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/config.json.mustache +0 -0
  268. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/index.tsx.mustache +0 -0
  269. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/styles.js.mustache +0 -0
  270. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/TwoColumnDetails.svg +0 -0
  271. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/config.json.mustache +0 -0
  272. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/index.tsx.mustache +0 -0
  273. /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/styles.js.mustache +0 -0
  274. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/DefaultForm.css +0 -0
  275. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/DefaultForm.svg +0 -0
  276. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/config.json.mustache +0 -0
  277. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/index.tsx.mustache +0 -0
  278. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/styles.js.mustache +0 -0
  279. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/TwoColumn.svg +0 -0
  280. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/config.json.mustache +0 -0
  281. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/index.tsx.mustache +0 -0
  282. /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/styles.js.mustache +0 -0
  283. /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/OneColumn.tsx.mustache +0 -0
  284. /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/OneColumnPage.svg +0 -0
  285. /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/config.json.mustache +0 -0
  286. /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/demo.stories.jsx.mustache +0 -0
  287. /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/index.tsx.mustache +0 -0
  288. /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/mock.stories.js.mustache +0 -0
  289. /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/styles.js.mustache +0 -0
  290. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/OneColumnPage.svg +0 -0
  291. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/config.json.mustache +0 -0
  292. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/demo.stories.jsx.mustache +0 -0
  293. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/index.tsx.mustache +0 -0
  294. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/mock.stories.js.mustache +0 -0
  295. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/styles.js.mustache +0 -0
  296. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/OneColumnPage.svg +0 -0
  297. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/config.json.mustache +0 -0
  298. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/demo.stories.jsx.mustache +0 -0
  299. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/index.tsx.mustache +0 -0
  300. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/mock.stories.js.mustache +0 -0
  301. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/styles.js.mustache +0 -0
  302. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/OneColumnPage.svg +0 -0
  303. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/config.json.mustache +0 -0
  304. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/demo.stories.jsx.mustache +0 -0
  305. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/index.tsx.mustache +0 -0
  306. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/mock.stories.js.mustache +0 -0
  307. /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/styles.js.mustache +0 -0
  308. /package/src/tasks/create/templates/SDK-WebComponents/{Field → field}/__components.md +0 -0
  309. /package/src/tasks/create/templates/SDK-WebComponents/{Template → template}/__components.md +0 -0
  310. /package/src/tasks/create/templates/SDK-WebComponents/{Widget → widget}/__components.md +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
package/src/constants.js CHANGED
@@ -19,6 +19,10 @@ export const COMPONENT_PREFIX_WIDGET_PATH = "widget/";
19
19
  export const COMPONENT_PREFIX_DSE_PATH = "designSystemExtension/";
20
20
  export const COMPONENT_PREFIX_INFRA_PATH = "infra/";
21
21
 
22
+ export const CUSTOM_TEMPLATE_PATH = 'customTemplatesPath';
23
+ export const OVERRIDE_TEMPLATE_PATH = 'overrideTemplatesPath';
24
+ export const OVERRIDE_LIB_PATH = 'node_modules/@pega/react-sdk-overrides/lib';
25
+
22
26
  export const COMPONENT_DIRECTORY_PREFIX_CUSTOM = "/custom-";
23
27
 
24
28
  export const CATEGORY_CUSTOM = "custom";
@@ -1,21 +1,16 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
- import https from 'https';
4
3
 
5
- import fetch from 'node-fetch';
6
4
  import AdmZip from 'adm-zip';
7
5
  import chalk from 'chalk';
8
6
 
9
7
  import {
10
- constructCompleteUrl,
11
8
  getComponentDirectoryPath,
12
- getComponents,
13
9
  getComponentsObj,
14
10
  getPegaServerConfig,
15
- validateRulesetVersion,
16
11
  getOptionsCategory,
17
12
  } from '../../util.js';
18
- import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH, COMPONENT_SCHEMA, CATEGORY_CUSTOM } from '../../constants.js';
13
+ import { COMPONENT_SCHEMA, CATEGORY_CUSTOM } from '../../constants.js';
19
14
 
20
15
 
21
16
  export const getBuildCategory = async (options) => {
@@ -8,8 +8,12 @@ import inquirer from 'inquirer';
8
8
  import ncp from 'ncp';
9
9
  import chalk from 'chalk';
10
10
 
11
- import { checkPathAccess, getTokenUrl, showVersion } from '../../util.js';
12
- import { CATEGORY_CONSTELLATION, SDK_CONFIG_JSON_FILENAME, DXCB_CONFIG, DXCB_COMPONENT_DEFAULTS } from '../../constants.js';
11
+ import { checkPathAccess, showVersion } from '../../util.js';
12
+ import { CATEGORY_CONSTELLATION,
13
+ SDK_CONFIG_JSON_FILENAME,
14
+ DXCB_CONFIG,
15
+ DXCB_COMPONENT_DEFAULTS,
16
+ CUSTOM_TEMPLATE_PATH } from '../../constants.js';
13
17
 
14
18
 
15
19
 
@@ -152,6 +156,8 @@ export const validateCompile = async (
152
156
  sSubType = subtype.join("-");
153
157
  }
154
158
 
159
+ const typeLC = type.toLowerCase();
160
+
155
161
  await checkPathAccess(pegaConfigInternalJsonPath);
156
162
 
157
163
  let internalData = fs.readFileSync(pegaConfigInternalJsonPath, { encoding: 'utf8' });
@@ -161,19 +167,21 @@ export const validateCompile = async (
161
167
 
162
168
  let pegaConfig = await getPegaConfig();
163
169
  let templateParentDir = `./templates/${framework}`;
164
- if (pegaConfig['custom-templates-path'] && pegaConfig['custom-templates-path'] != "") {
165
- templateParentDir = pegaConfig['custom-templates-path'];
170
+ if (pegaConfig[DXCB_CONFIG] &&
171
+ pegaConfig[DXCB_CONFIG][CUSTOM_TEMPLATE_PATH] &&
172
+ pegaConfig[DXCB_CONFIG][CUSTOM_TEMPLATE_PATH] != "") {
173
+ templateParentDir = pegaConfig[DXCB_CONFIG][CUSTOM_TEMPLATE_PATH];
166
174
  }
167
175
 
168
- const templateDir = `${templateParentDir}/${type}/${sSubType}`;
176
+ const templateDir = `${templateParentDir}/${typeLC}/${sSubType}`;
169
177
  const templateDirectory = fileURLToPath(new URL(templateDir, import.meta.url));
170
178
 
171
- const templateDirConstellation = `./templates/Constellation/${type}/${sSubType}`;
179
+ const templateDirConstellation = `./templates/Constellation/${typeLC}/${sSubType}`;
172
180
  const templateDirectoryConstellation = fileURLToPath(new URL(templateDirConstellation, import.meta.url));
173
181
 
174
182
  const componentKey = `${organization}_${library}_${componentName}`;
175
183
 
176
- const typeLC = type.toLowerCase();
184
+
177
185
  const targetDirectory = await getComponentDirectoryPath(join(typeLC, "/",componentKey));
178
186
  const targetDirectoryConstellation = await getComponentDirectoryPath(join(typeLC, "/",componentKey), CATEGORY_CONSTELLATION);
179
187
 
@@ -5,13 +5,10 @@ import ora from 'ora';
5
5
 
6
6
  import { LIST_COMPONENT_SERVICE_REST_ENDPOINT, COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM, CATEGORY_OVERRIDE } from '../../constants.js';
7
7
  import {
8
- constructCompleteUrl,
9
8
  deleteLocalComponent,
10
9
  deleteServerComponent,
11
10
  getComponentsObj,
12
- getPegaServerConfig,
13
- nodeFetch,
14
- getOptionsCategory
11
+ getPegaServerConfig
15
12
  } from '../../util.js';
16
13
  import { getComponentsFromServer } from '../list/helper.js';
17
14
 
@@ -1,6 +1,4 @@
1
1
  import inquirer from 'inquirer';
2
- import ora from 'ora';
3
- import chalk from 'chalk';
4
2
  import { showVersion, getOptionsCategory } from '../../util.js';
5
3
 
6
4
  import {
@@ -2,16 +2,13 @@ import chalk from 'chalk';
2
2
  import inquirer from 'inquirer';
3
3
  import ora from 'ora';
4
4
 
5
- import { LIST_COMPONENT_SERVICE_REST_ENDPOINT, COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM, CATEGORY_OVERRIDE } from '../..//constants.js';
5
+ import { COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM, CATEGORY_OVERRIDE } from '../..//constants.js';
6
6
  import {
7
- constructCompleteUrl,
8
7
  deleteLocalComponent,
9
8
  deleteServerComponent,
10
- getComponents,
11
9
  getComponentsObj,
12
10
  getPegaServerConfig,
13
11
  validateRulesetVersion,
14
- nodeFetch,
15
12
  getOptionsCategory
16
13
  } from '../../util.js';
17
14
  import { getComponentsFromServer } from '../list/helper.js';
@@ -1,6 +1,4 @@
1
1
  import inquirer from 'inquirer';
2
- import ora from 'ora';
3
- import chalk from 'chalk';
4
2
 
5
3
  import {
6
4
  deleteLocalComponents,
@@ -5,12 +5,10 @@ import chalk from 'chalk';
5
5
  import { validateCompile } from '../create/index.js';
6
6
  import {
7
7
  showVersion,
8
- getComponents,
9
- getComponentsObj,
10
8
  getComponentDirectoryPath,
11
9
  getComponentsAndSubDirectory
12
10
  } from '../../util.js';
13
- import {CATEGORY_CONSTELLATION, CATEGORY_CUSTOM, CATEGORY_OVERRIDE } from '../..//constants.js';
11
+ import {CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../..//constants.js';
14
12
  import { or } from 'ajv/dist/compile/codegen/index.js';
15
13
 
16
14
  export const DXCB_CONFIG_INTERNAL_JSON_FILENAME = 'src/dxcb.config.json';
@@ -5,7 +5,7 @@ import chalk from 'chalk';
5
5
  import fetch from 'node-fetch';
6
6
 
7
7
  import { LIST_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH, COMPONENT_SCHEMA, CATEGORY_CUSTOM } from '../../constants.js';
8
- import { constructCompleteUrl, getComponents, getPegaServerConfig, getOptionsCategory } from '../../util.js';
8
+ import { constructCompleteUrl, getComponents, getPegaServerConfig } from '../../util.js';
9
9
 
10
10
 
11
11
  export const SOURCE_OF_COMPONENT_TYPES = {
@@ -1,6 +1,5 @@
1
1
  import inquirer from 'inquirer';
2
2
  import ora from 'ora';
3
- import chalk from 'chalk';
4
3
 
5
4
  import {
6
5
  listLocalComponents,
@@ -1,13 +1,5 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import https from 'https';
4
-
5
- import fetch from 'node-fetch';
6
- import AdmZip from 'adm-zip';
7
- import chalk from 'chalk';
8
1
 
9
2
  import {
10
- getComponentDirectoryPath,
11
3
  getOptionsCategory
12
4
  } from '../../util.js';
13
5
  import { COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
@@ -2,12 +2,8 @@ import inquirer from 'inquirer';
2
2
  import Listr from 'listr';
3
3
  import chalk from 'chalk';
4
4
 
5
- import validate from '../validator/index.js';
6
5
  import { showVersion, getOptionsCategory, getComponentsObj } from '../../util.js';
7
6
  import { updateComponentMap } from '../map/map.js';
8
- import { CATEGORY_CUSTOM } from '../../constants.js';
9
-
10
-
11
7
  import { getBuildCategory } from './helper.js';
12
8
 
13
9
 
@@ -1,8 +1,6 @@
1
1
  import path from 'path';
2
- import { URL, fileURLToPath } from 'url';
3
2
  import fs from 'fs';
4
3
  import { promisify } from 'util';
5
- import { createRequire } from "module";
6
4
  import { join } from 'path';
7
5
 
8
6
  import inquirer from 'inquirer';
@@ -10,17 +8,20 @@ import ncp from 'ncp';
10
8
  import chalk from 'chalk';
11
9
  import { updateComponentMap } from '../map/map.js';
12
10
 
13
- import { checkPathAccess, getTokenUrl, showVersion, getDirectoryFiles, getPegaConfig } from '../../util.js';
11
+ import { checkPathAccess, showVersion, getPegaConfig } from '../../util.js';
14
12
  import {
15
- convertIntoPascalCase,
16
- compileMustacheTemplate,
17
13
  getComponentDirectoryPath,
18
14
  getComponents,
19
- getComponentDefaults,
20
- sanitize,
21
- validateSemver
15
+ getComponentDefaults
22
16
  } from '../../util.js';
23
- import { COMPONENT_SCHEMA, CATEGORY_OVERRIDE, SDK_CONFIG_JSON_FILENAME, DXCB_CONFIG, DXCB_COMPONENT_DEFAULTS } from '../../constants.js';
17
+
18
+ import { COMPONENT_SCHEMA,
19
+ CATEGORY_OVERRIDE,
20
+ SDK_CONFIG_JSON_FILENAME,
21
+ DXCB_CONFIG,
22
+ DXCB_COMPONENT_DEFAULTS,
23
+ OVERRIDE_TEMPLATE_PATH,
24
+ OVERRIDE_LIB_PATH } from '../../constants.js';
24
25
 
25
26
  const pegaConfigJsonPath = path.join(path.resolve(), SDK_CONFIG_JSON_FILENAME);
26
27
 
@@ -106,11 +107,16 @@ const validateCompile = async (
106
107
 
107
108
  let pegaConfig =
108
109
  await getPegaConfig();
109
- let templateParentDir = "node_modules/@pega/react-sdk-overrides/lib";
110
- if (pegaConfig['override-templates-path'] && pegaConfig['override-templates-path'] != "") {
111
- templateParentDir = pegaConfig['override-templates-path'];
110
+ let templateParentDir = OVERRIDE_LIB_PATH;
111
+
112
+ if (pegaConfig[DXCB_CONFIG] &&
113
+ pegaConfig[DXCB_CONFIG][OVERRIDE_TEMPLATE_PATH] &&
114
+ pegaConfig[DXCB_CONFIG][OVERRIDE_TEMPLATE_PATH] != "") {
115
+ templateParentDir = pegaConfig[DXCB_CONFIG][OVERRIDE_TEMPLATE_PATH];
112
116
  }
113
117
 
118
+
119
+
114
120
  // componentName has sub directory if components are in a sub directory of main "type"
115
121
  const overrideDirectory = `${templateParentDir}/${type}/${componentName}`;
116
122
 
@@ -9,14 +9,17 @@ import chalk from 'chalk';
9
9
  import {
10
10
  constructCompleteUrl,
11
11
  getComponentDirectoryPath,
12
- getComponents,
13
12
  getComponentsObj,
14
- getComponentsAndSubDirectory,
15
13
  getPegaServerConfig,
16
14
  validateRulesetVersion,
17
15
  getOptionsCategory
18
16
  } from '../../util.js';
19
- import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH, COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
17
+
18
+ import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
19
+ TOKEN_PATH,
20
+ COMPONENT_SCHEMA,
21
+ CATEGORY_CONSTELLATION,
22
+ CATEGORY_CUSTOM } from '../../constants.js';
20
23
 
21
24
 
22
25
  export const mapConfigJsonToCompanion = async ( componentKey ) => {
@@ -10,7 +10,11 @@ import { lintComponent } from '../linter/index.js';
10
10
  import { CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
11
11
 
12
12
 
13
- import { getPublishComponentQuestions, publishComponentToServer, zipComponent, getBuildCategory, mapConfigJsonToCompanion } from './helper.js';
13
+ import { getPublishComponentQuestions,
14
+ publishComponentToServer,
15
+ zipComponent,
16
+ getBuildCategory,
17
+ mapConfigJsonToCompanion } from './helper.js';
14
18
 
15
19
 
16
20
  export default async options => {
@@ -9,14 +9,17 @@ import chalk from 'chalk';
9
9
  import {
10
10
  constructCompleteUrl,
11
11
  getComponentDirectoryPath,
12
- getComponents,
13
12
  getComponentsObj,
14
- getComponentsAndSubDirectory,
15
- getPegaServerConfig,
16
13
  validateRulesetVersion,
14
+ getPegaServerConfig,
17
15
  getOptionsCategory
18
16
  } from '../../util.js';
19
- import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH, COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
17
+
18
+ import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
19
+ TOKEN_PATH,
20
+ COMPONENT_SCHEMA,
21
+ CATEGORY_CONSTELLATION,
22
+ CATEGORY_CUSTOM } from '../../constants.js';
20
23
 
21
24
 
22
25
  export const mapConfigJsonToCompanion = async ( componentKey ) => {
@@ -10,7 +10,11 @@ import { lintComponent } from '../linter/index.js';
10
10
  import { CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
11
11
 
12
12
 
13
- import { getPublishComponentQuestions, publishComponentToServer, zipComponent, getBuildCategory, mapConfigJsonToCompanion } from './helper.js';
13
+ import { getPublishComponentQuestions,
14
+ publishComponentToServer,
15
+ zipComponent,
16
+ getBuildCategory,
17
+ mapConfigJsonToCompanion } from './helper.js';
14
18
 
15
19
 
16
20
 
@@ -7,11 +7,9 @@ import Ajv from 'ajv';
7
7
 
8
8
  import {
9
9
  COMPONENT_SCHEMA,
10
- COMPONENT_PREFIX_FIELD_PATH,
11
- COMPONENT_PREFIX_TEMPLATE_PATH,
12
- COMPONENT_PREFIX_WIDGET_PATH,
13
10
  CATEGORY_CUSTOM,
14
11
  CATEGORY_OVERRIDE } from '../../constants.js';
12
+
15
13
  import {
16
14
  getComponentDirectoryPath,
17
15
  getComponents,
package/src/util.js CHANGED
@@ -4,7 +4,6 @@ import { promisify } from 'util';
4
4
  import https from 'https';
5
5
  import inquirer from 'inquirer';
6
6
  import { createRequire } from "module";
7
- import { URL, fileURLToPath } from 'url';
8
7
 
9
8
  import chalk from 'chalk';
10
9
  import mustache from 'mustache';
@@ -271,20 +270,6 @@ export const getDirectoryFiles = async (directory) => {
271
270
  .map(dirent => dirent.name);
272
271
  }
273
272
 
274
- /*
275
- export const createBlankConfigExt = async (directory, name) => {
276
-
277
- let fileData = "{";
278
- fileData = fileData.concat("\n\t");
279
- fileData = fileData.concat("\"name\" : \"");
280
- fileData = fileData.concat(`${name}`);
281
- fileData = fileData.concat("\", \n\t");
282
- fileData = fileData.concat("\"properties\" : [ ] \n");
283
- fileData = fileData.concat("}");
284
- return fs.writeFileSync( join(directory, "/config-ext.json"), fileData, { encoding: 'utf8' });
285
- }
286
- */
287
-
288
273
 
289
274
  export const getComponentsObj = async (showSeparator = false, category = CATEGORY_CUSTOM) => {
290
275
  const currentDirectory = process.cwd();