@pega/custom-dx-components 25.1.10-alpha-0.8 → 25.1.10-alpha-0.10

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 (163) hide show
  1. package/package.json +21 -21
  2. package/src/tasks/build-jest-assets/index.js +4 -4
  3. package/src/tasks/bundle/builder/index.js +15 -15
  4. package/src/tasks/create/index.js +19 -33
  5. package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +0 -1
  6. package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +0 -1
  7. package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +0 -1
  8. package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +0 -1
  9. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +0 -1
  10. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +0 -1
  11. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +0 -1
  12. package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +0 -1
  13. package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +0 -1
  14. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +0 -1
  15. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +0 -1
  16. package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +0 -1
  17. package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +0 -1
  18. package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +0 -1
  19. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +0 -1
  20. package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +0 -1
  21. package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +0 -1
  22. package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +0 -1
  23. package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +0 -1
  24. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +0 -1
  25. package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +0 -1
  26. package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +0 -1
  27. package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +0 -1
  28. package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +0 -1
  29. package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +0 -1
  30. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +0 -1
  31. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +0 -1
  32. package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +0 -1
  33. package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +0 -1
  34. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +0 -1
  35. package/src/tasks/create-all/index.js +23 -36
  36. package/src/tasks/create-lib/helper.js +2 -0
  37. package/src/tasks/delete/helper.js +1 -1
  38. package/src/tasks/delete-all/helper.js +1 -1
  39. package/src/tasks/delete-pub/index.js +6 -5
  40. package/src/tasks/export-archive/index.js +36 -23
  41. package/src/tasks/import-archive/index.js +12 -12
  42. package/src/tasks/init/index.js +72 -63
  43. package/src/tasks/init/template/package.json.mustache +1 -2
  44. package/src/tasks/init/template/tasks.config.json +3 -1
  45. package/src/tasks/list/helper.js +1 -1
  46. package/src/tasks/list-lib/index.js +1 -1
  47. package/src/tasks/list-pub/index.js +20 -11
  48. package/src/tasks/move/index.js +1 -1
  49. package/src/tasks/publish/index.js +4 -0
  50. package/src/tasks/publish-archive/helper.js +2 -2
  51. package/src/tasks/publish-archive/index.js +16 -7
  52. package/src/tasks/rename/index.js +17 -17
  53. package/src/tasks/rename-lib/index.js +1 -1
  54. package/src/tasks/show-status/index.js +18 -6
  55. package/src/tasks/validator/index.js +0 -2
  56. package/src/util.js +90 -27
  57. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +0 -1
  58. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +0 -1
  59. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +0 -1
  60. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +0 -1
  61. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -1
  62. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +0 -1
  63. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +0 -1
  64. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +0 -1
  65. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +0 -1
  66. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +0 -1
  67. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +0 -1
  68. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +0 -1
  69. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +0 -1
  70. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
  71. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +0 -1
  72. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +0 -1
  73. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +0 -1
  74. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +0 -1
  75. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +0 -1
  76. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +0 -1
  77. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +0 -1
  78. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +0 -1
  79. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +0 -1
  80. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +0 -1
  81. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
  82. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
  83. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +0 -1
  84. package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +0 -1
  85. package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
  86. package/tests/assets/original/components/create/shared/create-nonce.ts +5 -0
  87. package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
  88. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +0 -1
  89. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +0 -1
  90. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +0 -1
  91. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +0 -1
  92. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +0 -1
  93. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +0 -1
  94. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +0 -1
  95. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +0 -1
  96. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +0 -1
  97. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +0 -1
  98. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +0 -1
  99. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +0 -1
  100. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
  101. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +0 -1
  102. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +0 -1
  103. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +0 -1
  104. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +0 -1
  105. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +0 -1
  106. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +0 -1
  107. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +0 -1
  108. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +0 -1
  109. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +0 -1
  110. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +0 -1
  111. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
  112. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
  113. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +0 -1
  114. package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
  115. package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +5 -0
  116. package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
  117. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +0 -1
  118. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +0 -1
  119. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +0 -1
  120. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +0 -1
  121. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +0 -1
  122. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +0 -1
  123. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +0 -1
  124. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +0 -1
  125. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +0 -1
  126. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +0 -1
  127. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +0 -1
  128. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +0 -1
  129. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +0 -1
  130. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +0 -1
  131. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +0 -1
  132. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +0 -1
  133. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +0 -1
  134. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +0 -1
  135. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +0 -1
  136. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +0 -1
  137. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +0 -1
  138. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +0 -1
  139. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +0 -1
  140. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +0 -1
  141. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +0 -1
  142. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +0 -1
  143. package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
  144. package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +5 -0
  145. package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
  146. package/tests/functional/localCreateAllListDeleteAll.test.js +1 -1
  147. package/tests/functional/localCreateBuildAllDeleteAll.test.js +3 -3
  148. package/tests/functional/localCreateBuildDelete.test.js +1 -1
  149. package/tests/functional/localCreateListDelete.test.js +1 -1
  150. package/tests/functional/localCreatePublishAllDeleteAll.test.js +3 -3
  151. package/tests/functional/localCreatePublishDelete.test.js +1 -1
  152. package/tests/functional/localCreateRenameDelete.test.js +1 -1
  153. package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +3 -3
  154. package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +3 -3
  155. package/tests/functional/localLibCreateLibExportImportLib.test.js +1 -1
  156. package/tests/functional/localLibCreateLibExportLib.test.js +1 -1
  157. package/tests/functional/localLibCreateLibListDeleteLib.test.js +1 -1
  158. package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +1 -1
  159. package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +1 -1
  160. package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +1 -1
  161. package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +1 -1
  162. package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +3 -3
  163. package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +1 -1
package/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "25.1.10-alpha-0.8",
3
+ "version": "25.1.10-alpha-0.10",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
+ "keywords": [
7
+ "pega",
8
+ "custom-components"
9
+ ],
10
+ "license": "SEE LICENSE IN LICENSE",
11
+ "author": "Custom component dev",
12
+ "sideEffects": false,
13
+ "type": "module",
6
14
  "scripts": {
7
15
  "lint:es": "eslint .",
8
16
  "lint:format": "prettier -c .",
@@ -12,13 +20,11 @@
12
20
  "test:unit:local": "node --input-type=module --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand /tests/unit",
13
21
  "test:functional:local": "jest --runInBand /tests/functional --detectOpenHandles --coverage"
14
22
  },
15
- "type": "module",
16
- "sideEffects": false,
17
23
  "dependencies": {
18
- "@babel/core": "^7.27.1",
24
+ "@babel/core": "^7.28.0",
19
25
  "@babel/plugin-transform-class-properties": "^7.27.1",
20
26
  "@babel/preset-react": "^7.27.1",
21
- "@pega/auth": "^0.2.24",
27
+ "@pega/auth": "^0.2.27",
22
28
  "@pega/constellation-dx-components-build-utils": "^2.0.7",
23
29
  "@pega/inquirer-fuzzy-path": "^3.0.0",
24
30
  "ajv": "^8.17.1",
@@ -31,8 +37,8 @@
31
37
  "compression-webpack-plugin": "^11.1.0",
32
38
  "css-loader": "7.1.2",
33
39
  "css-minimizer-webpack-plugin": "^7.0.2",
34
- "eslint": "^9.27.0",
35
- "execa": "^9.5.2",
40
+ "eslint": "^9.31.0",
41
+ "execa": "^9.6.0",
36
42
  "file-loader": "6.2.0",
37
43
  "fs-extra": "^11.3.0",
38
44
  "gitignore": "^0.7.0",
@@ -46,9 +52,9 @@
46
52
  "node-stream-zip": "^1.15.0",
47
53
  "ora": "^8.2.0",
48
54
  "pascalcase": "^2.0.0",
49
- "postcss": "^8.5.3",
55
+ "postcss": "^8.5.6",
50
56
  "postcss-loader": "8.1.1",
51
- "postcss-preset-env": "10.1.6",
57
+ "postcss-preset-env": "10.2.4",
52
58
  "prop-types": "^15.8.1",
53
59
  "react": "^18.2.0",
54
60
  "react-dev-utils": "^12.0.1",
@@ -60,26 +66,20 @@
60
66
  "typescript": "~5.8.3",
61
67
  "unarchive": "^1.1.3",
62
68
  "url-loader": "4.1.1",
63
- "webpack": "5.99.8",
69
+ "webpack": "5.100.2",
64
70
  "webpack-cli": "^6.0.1"
65
71
  },
66
- "author": "Custom component dev",
67
- "license": "SEE LICENSE IN LICENSE",
68
- "keywords": [
69
- "pega",
70
- "custom-components"
71
- ],
72
72
  "devDependencies": {
73
- "@babel/preset-env": "^7.27.2",
74
- "@pega/configs": "^0.16.3",
75
- "@pega/prettier-config": "^0.16.3",
73
+ "@babel/preset-env": "^7.28.0",
74
+ "@pega/configs": "^0.17.0",
75
+ "@pega/prettier-config": "^0.17.0",
76
76
  "@types/jest": "^29.5.14",
77
77
  "babel-jest": "^29.7.0",
78
78
  "cspell": "^8.19.4",
79
79
  "jest": "^29.7.0",
80
80
  "jest-environment-jsdom": "^29.7.0",
81
81
  "jest-junit": "^16.0.0",
82
- "prettier": "3.5.3",
83
- "ts-jest": "^29.3.2"
82
+ "prettier": "3.6.2",
83
+ "ts-jest": "^29.4.0"
84
84
  }
85
85
  }
@@ -102,7 +102,7 @@ const createJestOriginalAssets = async(isLaunchPad = false) => {
102
102
  await deleteAssets();
103
103
 
104
104
  // const framework = await getFramework();
105
- let args = [ '','', '', 'My', '0.0.1', 'DXIL', '', 'Pega'];
105
+ let args = [ '','', '', 'My', '0.0.1', 'DXIL', 'Pega'];
106
106
  let myOptions = {};
107
107
  myOptions["params"] = args;
108
108
 
@@ -125,7 +125,7 @@ const createJestOriginalAssets = async(isLaunchPad = false) => {
125
125
  await copyAssets(createAllPath);
126
126
  await deleteAssets();
127
127
 
128
- args = [ '','', '', 'Field', 'Text', 'MyTestText', 'My Test Text', '0.0.1','DXIL', '', 'My Test Text Description', 'Pega'];
128
+ args = [ '','', '', 'Field', 'Text', 'MyTestText', 'My Test Text', '0.0.1','DXIL', 'My Test Text Description', 'Pega'];
129
129
  myOptions = {};
130
130
  myOptions["params"] = args;
131
131
 
@@ -157,7 +157,7 @@ const createJestLibraryAssets = async(isLaunchPad = false) => {
157
157
  await createLib(myOptions);
158
158
 
159
159
  // const framework = await getFramework();
160
- args = [ '', '', '', 'My', '0.0.1', 'DXIL', '', 'Pega'];
160
+ args = [ '', '', '', 'My', '0.0.1', 'DXIL', 'Pega'];
161
161
  myOptions = {};
162
162
  myOptions["params"] = args;
163
163
 
@@ -180,7 +180,7 @@ const createJestLibraryAssets = async(isLaunchPad = false) => {
180
180
  await copyAssets(createAllPath);
181
181
  await deleteAssets();
182
182
 
183
- args = [ '','', '', 'Field', 'Text', 'MyTestText', 'My Test Text', '0.0.1','DXIL', '', 'My Test Text Description', 'Pega'];
183
+ args = [ '','', '', 'Field', 'Text', 'MyTestText', 'My Test Text', '0.0.1','DXIL', 'My Test Text Description', 'Pega'];
184
184
  myOptions = {};
185
185
  myOptions["params"] = args;
186
186
 
@@ -3,7 +3,7 @@ import fs from 'fs-extra';
3
3
  import webpack from 'webpack';
4
4
  import FileSizeReporter from 'react-dev-utils/FileSizeReporter.js';
5
5
  import printBuildError from 'react-dev-utils/printBuildError.js';
6
- import { getUseWebPackPromotion, addDebugLog} from '../../../util.js';
6
+ import { getUseWebPackPromotion, addDebugLog, emptyDirSync } from '../../../util.js';
7
7
 
8
8
 
9
9
 
@@ -44,7 +44,7 @@ let compilationErrors = null;
44
44
 
45
45
  // Create the build and print the deployment instructions.
46
46
  function build(config, previousFileSizes, showStats = true) {
47
- addDebugLog("bundle build", `config: ${JSON.stringify(config)}, \npreviousFileSizes: ${JSON.stringify(previousFileSizes)}, showStats: ${showStats}`, "");
47
+ addDebugLog("bundle build", `config: ${JSON.stringify(config)}, \npreviousFileSizes: ${JSON.stringify(previousFileSizes)}, showStats: ${showStats}`, "");
48
48
 
49
49
  if (showStats) {
50
50
  console.log(`Creating a ${Env} build...`);
@@ -55,14 +55,14 @@ addDebugLog("bundle build", `config: ${JSON.stringify(config)}, \npreviousFileSi
55
55
  return new Promise((resolve, reject) => {
56
56
  compiler.run((err, stats) => {
57
57
 
58
- if (err != null && typeof (err) == "object") {
59
- if (err.error != undefined) {
60
- //store and print elsewhere
61
- compilationErrors = err.error;
62
- //console.log("err:" + err);
63
- }
64
- }
65
- if (stats != null & typeof(stats) == "object") {
58
+ if (err != null && typeof (err) == "object") {
59
+ if (err.error != undefined) {
60
+ //store and print elsewhere
61
+ compilationErrors = err.error;
62
+ //console.log("err:" + err);
63
+ }
64
+ }
65
+ if (stats != null & typeof (stats) == "object") {
66
66
  if (stats.errors != undefined) {
67
67
  if (showStats) {
68
68
  console.log("stats:" + stats);
@@ -79,7 +79,7 @@ addDebugLog("bundle build", `config: ${JSON.stringify(config)}, \npreviousFileSi
79
79
 
80
80
  }
81
81
 
82
- }
82
+ }
83
83
 
84
84
 
85
85
  let messages;
@@ -118,7 +118,7 @@ addDebugLog("bundle build", `config: ${JSON.stringify(config)}, \npreviousFileSi
118
118
  console.log(
119
119
  chalk.yellow(
120
120
  '\nTreating warnings as errors because process.env.CI = true.\n' +
121
- 'Most CI servers set it automatically.\n'
121
+ 'Most CI servers set it automatically.\n'
122
122
  )
123
123
  );
124
124
  return reject(new Error(messages.warnings.join('\n\n')));
@@ -148,7 +148,7 @@ export default async ({
148
148
  // used by promote and revert webPack commands, do not change
149
149
  const configFactory = (
150
150
  await import(`${usePromoted ? `../../../../../../../webpack.config.js` : `./webpack.config.js`}`)
151
- ).default
151
+ ).default;
152
152
 
153
153
  // Generate configuration
154
154
  const config = configFactory(Env, {
@@ -170,7 +170,7 @@ export default async ({
170
170
  .then(previousFileSizes => {
171
171
  // Remove all content but keep the directory so that
172
172
  // if you're in it, you don't end up in Trash
173
- fs.emptyDirSync(paths.appBuild);
173
+ emptyDirSync(paths.appBuild);
174
174
  // Start the webpack build
175
175
  return build(config, previousFileSizes, showStats);
176
176
  })
@@ -202,7 +202,7 @@ export default async ({
202
202
 
203
203
  resolve('done emitting');
204
204
  },
205
- err => {
205
+ err => {
206
206
  reject();
207
207
  const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true';
208
208
  if (tscCompileOnError) {
@@ -24,7 +24,8 @@ import {
24
24
  checkLibraryAndArchives,
25
25
  getConfigDefaults,
26
26
  getSubTypeLabel,
27
- getMaxComponentNameCount
27
+ getMaxComponentNameCount,
28
+ getStandaloneMaxComponentNameCount
28
29
  } from '../../util.js';
29
30
  import { COMPONENT_SCHEMA, SHARED_FILE_NAMES } from '../../constants.js';
30
31
 
@@ -48,9 +49,7 @@ const compileMustacheTemplates = async (
48
49
  type,
49
50
  subtype,
50
51
  description,
51
- organization,
52
- allowedApplications = ''
53
- }
52
+ organization }
54
53
  ) => {
55
54
  const files = fs.readdirSync(componentDirectory);
56
55
  const componentClassName = convertIntoPascalCase(componentKey);
@@ -91,17 +90,17 @@ const compileMustacheTemplates = async (
91
90
 
92
91
  const isPicklist = subtype === 'Picklist';
93
92
 
94
- if (allowedApplications.trim() === '') {
95
- allowedApplications = [];
96
- } else {
97
- if (allowedApplications.indexOf(',') !== -1) {
98
- allowedApplications = allowedApplications.split(',');
99
- }
100
- allowedApplications = [].concat(allowedApplications);
101
- }
93
+ // if (allowedApplications.trim() === '') {
94
+ // allowedApplications = [];
95
+ // } else {
96
+ // if (allowedApplications.indexOf(',') !== -1) {
97
+ // allowedApplications = allowedApplications.split(',');
98
+ // }
99
+ // allowedApplications = [].concat(allowedApplications);
100
+ // }
102
101
 
103
102
 
104
- allowedApplications = allowedApplications.filter(el => !!el.trim()).map(el => el.trim());
103
+ // allowedApplications = allowedApplications.filter(el => !!el.trim()).map(el => el.trim());
105
104
  files.forEach(file => {
106
105
  const filePath = path.join(componentDirectory, file);
107
106
 
@@ -115,7 +114,6 @@ const compileMustacheTemplates = async (
115
114
  ORGANIZATION: organization,
116
115
  VERSION: version,
117
116
  LIBRARY: library,
118
- ALLOWEDAPPS: JSON.stringify(allowedApplications),
119
117
  TYPE: type,
120
118
  SUB_TYPE: JSON.stringify(mustacheSubType),
121
119
  SUB_TYPE_LABEL: subTypeLabel,
@@ -173,7 +171,6 @@ const validateCompile = async (
173
171
  type,
174
172
  subtype,
175
173
  description,
176
- allowedApplications,
177
174
  organization
178
175
  },
179
176
  options
@@ -266,8 +263,7 @@ const validateCompile = async (
266
263
  type,
267
264
  subtype,
268
265
  description,
269
- organization,
270
- allowedApplications
266
+ organization
271
267
  });
272
268
 
273
269
  console.log(chalk.green(`${componentKey} component is created in ${targetDirectory}`));
@@ -282,7 +278,7 @@ export default async options => {
282
278
 
283
279
  addDebugLog("create", "", "+");
284
280
 
285
- if (options.params.length >= 12) {
281
+ if (options.params.length >= 11) {
286
282
 
287
283
  const type = options.params[3];
288
284
  const subtype = options.params[4];
@@ -290,9 +286,8 @@ addDebugLog("create", "", "+");
290
286
  const componentLabel = options.params[6];
291
287
  const version = options.params[7];
292
288
  const library = options.params[8];
293
- const allowedApplications = options.params[9];
294
- const description = options.params[10];
295
- const organization = options.params[11];
289
+ const description = options.params[9];
290
+ const organization = options.params[10];
296
291
  const framework = "Constellation";
297
292
 
298
293
  await validateCompile(
@@ -305,14 +300,13 @@ addDebugLog("create", "", "+");
305
300
  type,
306
301
  subtype,
307
302
  description,
308
- allowedApplications,
309
303
  organization
310
304
  },
311
305
  options
312
306
  );
313
307
  } else {
314
308
  const componentDefaults = getConfigDefaults();
315
- const maxChars = getMaxComponentNameCount();
309
+ const maxChars = isLibraryBased ? getMaxComponentNameCount() : getStandaloneMaxComponentNameCount();
316
310
  const questions = [
317
311
  {
318
312
  name: 'type',
@@ -417,12 +411,6 @@ addDebugLog("create", "", "+");
417
411
  when: () => !isLibraryBased
418
412
 
419
413
  },
420
- {
421
- name: 'allowedApplications',
422
- message: 'Please enter the application names to be supported (comma-separated). ',
423
- suffix: 'Keep empty for all applications',
424
- when: () => !isLibraryBased
425
- },
426
414
  {
427
415
  name: 'description',
428
416
  message: 'Enter description for the component (default is label)',
@@ -439,8 +427,7 @@ addDebugLog("create", "", "+");
439
427
  framework,
440
428
  type,
441
429
  subtype,
442
- description,
443
- allowedApplications
430
+ description
444
431
  } = answers;
445
432
 
446
433
  await validateCompile(
@@ -452,8 +439,7 @@ addDebugLog("create", "", "+");
452
439
  framework,
453
440
  type,
454
441
  subtype,
455
- description,
456
- allowedApplications
442
+ description
457
443
  },
458
444
  options
459
445
  );
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": "Text",
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},
@@ -5,7 +5,6 @@
5
5
  "organization": "{{ORGANIZATION}}",
6
6
  "version": "{{VERSION}}",
7
7
  "library": "{{LIBRARY}}",
8
- "allowedApplications": {{{ALLOWEDAPPS}}},
9
8
  "componentKey": "{{COMPONENT_KEY}}",
10
9
  "type": "{{TYPE}}",
11
10
  "subtype": {{{SUB_TYPE}}},