@pega/custom-dx-components 0.25.19 → 0.25.20

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 (56) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/build-jest-assets/index.js +5 -5
  3. package/src/tasks/init/template/package.json.mustache +1 -1
  4. package/src/tasks/show-status/index.js +10 -6
  5. package/src/util.js +54 -0
  6. package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +1 -1
  7. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +1 -1
  8. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -1
  9. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
  10. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +1 -1
  11. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +1 -1
  12. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +1 -1
  13. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +1 -1
  14. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -1
  15. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +1 -1
  16. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -1
  17. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -1
  18. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
  19. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +1 -1
  20. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -1
  21. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -1
  22. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -1
  23. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
  24. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +1 -1
  25. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +1 -1
  26. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +1 -1
  27. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +1 -1
  28. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +1 -1
  29. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +1 -1
  30. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
  31. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -1
  32. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +1 -1
  33. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +1 -1
  34. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -1
  35. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -1
  36. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +1 -1
  37. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
  38. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
  39. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
  40. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
  41. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/localizations.json +5 -0
  42. package/tests/functional/localCreateAllListDeleteAll.test.js +8 -8
  43. package/tests/functional/localLibCreateLibAlreadyDeleteLib.test.js +14 -14
  44. package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +17 -17
  45. package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +20 -20
  46. package/tests/functional/localLibCreateLibDeleteLib.test.js +17 -17
  47. package/tests/functional/localLibCreateLibExportImportLib.test.js +27 -27
  48. package/tests/functional/localLibCreateLibExportLib.test.js +19 -19
  49. package/tests/functional/localLibCreateLibImportCompDeleteLib.test.js +14 -14
  50. package/tests/functional/localLibCreateLibListDeleteLib.test.js +22 -22
  51. package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +31 -31
  52. package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +20 -20
  53. package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +13 -29
  54. package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +15 -15
  55. package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +27 -27
  56. package/tests/functional/localLibCreateLibPermDeleteLib.test.js +0 -144
@@ -12,13 +12,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
12
12
  const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
13
13
  let packageJSON = JSON.parse(packageJSONData);
14
14
 
15
- let isLibraryBased = tasksConfigJSON['libraryMode'];
16
- const savedLibraryBased = isLibraryBased;
15
+ let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
16
+ const savedLibraryBasedCL = isLibraryBasedCL;
17
17
  const savedOrganization = packageJSON.organization;
18
18
 
19
19
  const serverType = tasksConfigJSON['server-config'].serverType;
20
20
  const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
21
- let compType = isLibraryBased ? "library" : "original";
21
+ let compType = isLibraryBasedCL ? "library" : "original";
22
22
 
23
23
 
24
24
  describe(`createLib createLib (already exists) deleteLib: ${serverDir} - ${compType}` , () => {
@@ -26,9 +26,9 @@ describe(`createLib createLib (already exists) deleteLib: ${serverDir} - ${compT
26
26
  beforeAll( async() => {
27
27
 
28
28
  // make libraryBased
29
- isLibraryBased = true;
30
- tasksConfigJSON['libraryMode'] = isLibraryBased;
31
- compType = isLibraryBased ? "library" : "original";
29
+ isLibraryBasedCL = true;
30
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
31
+ compType = isLibraryBasedCL ? "library" : "original";
32
32
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
33
33
 
34
34
  const storeDir = path.join(path.resolve('../../..'), 'store');
@@ -55,8 +55,8 @@ describe(`createLib createLib (already exists) deleteLib: ${serverDir} - ${compT
55
55
  afterAll( async() => {
56
56
 
57
57
  //restore
58
- isLibraryBased = savedLibraryBased
59
- tasksConfigJSON['libraryMode'] = isLibraryBased;
58
+ isLibraryBasedCL = savedLibraryBasedCL
59
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
60
60
 
61
61
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
62
62
 
@@ -80,14 +80,14 @@ describe(`createLib createLib (already exists) deleteLib: ${serverDir} - ${compT
80
80
  });
81
81
 
82
82
 
83
- it(`npm run createLib - ${isLibraryBased}`, async() => {
83
+ it(`npm run createLib - ${isLibraryBasedCL}`, async() => {
84
84
 
85
85
 
86
86
  const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
87
- const compConf = path.join("store", "Pega_DXIL","0.0.1-dev", "componentsconfig.json");
87
+ const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
88
88
 
89
89
  const { stdout, stderr } = await exec(script);
90
- expect(stdout).toContain('Library Pega_DXIL/0.0.1-dev has been created!');
90
+ expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
91
91
 
92
92
  const doesExist = fs.existsSync(path.resolve('../../..', compConf));
93
93
 
@@ -95,7 +95,7 @@ describe(`createLib createLib (already exists) deleteLib: ${serverDir} - ${compT
95
95
 
96
96
  }, 30000);
97
97
 
98
- it(`npm run createLib (already exists) - ${isLibraryBased}`, async() => {
98
+ it(`npm run createLib (already exists) - ${isLibraryBasedCL}`, async() => {
99
99
 
100
100
  const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
101
101
 
@@ -105,9 +105,9 @@ describe(`createLib createLib (already exists) deleteLib: ${serverDir} - ${compT
105
105
  }, 30000);
106
106
 
107
107
 
108
- it(`npm run deleteLib- ${isLibraryBased}`, async() => {
108
+ it(`npm run deleteLib- ${isLibraryBasedCL}`, async() => {
109
109
 
110
- const script = `npm run deleteLib Pega_DXIL 0.0.1-dev Y --prefix ../../..`;
110
+ const script = `npm run deleteLib Pega_DXIL 0.0.1 Y --prefix ../../..`;
111
111
  const { stdout, stderr } = await exec(script);
112
112
 
113
113
  expect(stdout).toContain('Pega_DXIL is deleted from Local.');
@@ -12,13 +12,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
12
12
  const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
13
13
  let packageJSON = JSON.parse(packageJSONData);
14
14
 
15
- let isLibraryBased = tasksConfigJSON['libraryMode'];
16
- const savedLibraryBased = isLibraryBased;
15
+ let isLIbraryBasedCL = tasksConfigJSON['libraryModeCL'];
16
+ const savedLibraryBased = isLIbraryBasedCL;
17
17
  const savedOrganization = packageJSON.organization;
18
18
 
19
19
  const serverType = tasksConfigJSON['server-config'].serverType;
20
20
  const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
21
- let compType = isLibraryBased ? "library" : "original";
21
+ let compType = isLIbraryBasedCL ? "library" : "original";
22
22
 
23
23
 
24
24
  describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} - ${compType}` , () => {
@@ -26,9 +26,9 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
26
26
  beforeAll( async() => {
27
27
 
28
28
  // make libraryBased
29
- isLibraryBased = true;
30
- tasksConfigJSON['libraryMode'] = isLibraryBased;
31
- compType = isLibraryBased ? "library" : "original";
29
+ isLIbraryBasedCL = true;
30
+ tasksConfigJSON['libraryModeCL'] = isLIbraryBasedCL;
31
+ compType = isLIbraryBasedCL ? "library" : "original";
32
32
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
33
33
 
34
34
  const storeDir = path.join(path.resolve('../../..'), 'store');
@@ -54,8 +54,8 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
54
54
  afterAll( async() => {
55
55
 
56
56
  //restore
57
- isLibraryBased = savedLibraryBased
58
- tasksConfigJSON['libraryMode'] = isLibraryBased;
57
+ isLIbraryBasedCL = savedLibraryBased
58
+ tasksConfigJSON['libraryModeCL'] = isLIbraryBasedCL;
59
59
 
60
60
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
61
61
 
@@ -87,13 +87,13 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
87
87
  // }
88
88
  // });
89
89
 
90
- it(`npm run createLib - ${isLibraryBased}`, async() => {
90
+ it(`npm run createLib - ${isLIbraryBasedCL}`, async() => {
91
91
 
92
92
  const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
93
- const compConf = path.join("store", "Pega_DXIL","0.0.1-dev", "componentsconfig.json");
93
+ const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
94
94
 
95
95
  const { stdout, stderr } = await exec(script);
96
- expect(stdout).toContain('Library Pega_DXIL/0.0.1-dev has been created!');
96
+ expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
97
97
 
98
98
  const doesExist = fs.existsSync(path.resolve('../../..', compConf));
99
99
 
@@ -197,9 +197,9 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
197
197
  // }
198
198
  }, 10000);
199
199
 
200
- it(`npm run buildLib (internal) - ${isLibraryBased}`, async() => {
200
+ it(`npm run buildLib (internal) - ${isLIbraryBasedCL}`, async() => {
201
201
 
202
- const script = `npm run _internal-buildLibrary 0.0.1 Y --prefix ../../..`;
202
+ const script = `npm run _internal-buildLibrary 0.0.1 N --prefix ../../..`;
203
203
  const { stdout, stderr } = await exec(script);
204
204
 
205
205
  expect(stdout).toContain('Pega_DXIL_MyTestText schema is valid');
@@ -209,22 +209,22 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
209
209
  expect(stdout).toContain('Building Library...');
210
210
  expect(stdout).toContain('Compile check...');
211
211
 
212
- expect(stdout).toContain('Webpacked library Pega_DXIL:0.0.1-dev successfully!!');
212
+ expect(stdout).toContain('Webpacked library Pega_DXIL:0.0.1 successfully!!');
213
213
  expect(stdout).toContain('== Creating manifest for the library version - completed ==');
214
214
 
215
215
 
216
216
 
217
217
  }, 200000);
218
218
 
219
- it(`npm run deleteLib - ${isLibraryBased}`, async() => {
219
+ it(`npm run deleteLib - ${isLIbraryBasedCL}`, async() => {
220
220
 
221
- const script = `npm run deleteLib Pega_DXIL 0.0.1-dev Y --prefix ../../..`;
221
+ const script = `npm run deleteLib Pega_DXIL 0.0.1 Y --prefix ../../..`;
222
222
  const { stdout, stderr } = await exec(script);
223
223
  expect(stdout).toContain('Pega_DXIL is deleted from Local.');
224
224
 
225
225
  }, 30000);
226
226
 
227
- it(`npm run deletePublishedLib - ${isLibraryBased}`, async() => {
227
+ it(`npm run deletePublishedLib - ${isLIbraryBasedCL}`, async() => {
228
228
 
229
229
  const script = `npm run deletePublishedLib Local ALL --prefix ../../..`;
230
230
  const { stdout, stderr } = await exec(script);
@@ -13,13 +13,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
13
13
  const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
14
14
  let packageJSON = JSON.parse(packageJSONData);
15
15
 
16
- let isLibraryBased = tasksConfigJSON['libraryMode'];
17
- const savedLibraryBased = isLibraryBased;
16
+ let isLIbraryBasedC = tasksConfigJSON['libraryModeCL'];
17
+ const savedLibraryBased = isLIbraryBasedC;
18
18
  const savedOrganization = packageJSON.organization;
19
19
 
20
20
  const serverType = tasksConfigJSON['server-config'].serverType;
21
21
  const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
22
- let compType = isLibraryBased ? "library" : "original";
22
+ let compType = isLIbraryBasedC ? "library" : "original";
23
23
 
24
24
 
25
25
  describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} - ${compType}` , () => {
@@ -27,9 +27,9 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
27
27
  beforeAll( async() => {
28
28
 
29
29
  // make libraryBased
30
- isLibraryBased = true;
31
- tasksConfigJSON['libraryMode'] = isLibraryBased;
32
- compType = isLibraryBased ? "library" : "original";
30
+ isLIbraryBasedC = true;
31
+ tasksConfigJSON['libraryModeCL'] = isLIbraryBasedC;
32
+ compType = isLIbraryBasedC ? "library" : "original";
33
33
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
34
34
 
35
35
  const storeDir = path.join(path.resolve('../../..'), 'store');
@@ -56,8 +56,8 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
56
56
  afterAll( async() => {
57
57
 
58
58
  //restore
59
- isLibraryBased = savedLibraryBased
60
- tasksConfigJSON['libraryMode'] = isLibraryBased;
59
+ isLIbraryBasedC = savedLibraryBased
60
+ tasksConfigJSON['libraryModeCL'] = isLIbraryBasedC;
61
61
 
62
62
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
63
63
 
@@ -76,13 +76,13 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
76
76
  });
77
77
 
78
78
 
79
- it(`npm run createLib - ${isLibraryBased}`, async() => {
79
+ it(`npm run createLib - ${isLIbraryBasedC}`, async() => {
80
80
 
81
81
  const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
82
- const compConf = path.join("store", "Pega_DXIL","0.0.1-dev", "componentsconfig.json");
82
+ const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
83
83
 
84
84
  const { stdout, stderr } = await exec(script);
85
- expect(stdout).toContain('Library Pega_DXIL/0.0.1-dev has been created!');
85
+ expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
86
86
 
87
87
  const doesExist = fs.existsSync(path.resolve('../../..', compConf));
88
88
 
@@ -186,9 +186,9 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
186
186
  // }
187
187
  }, 10000);
188
188
 
189
- it(`npm run buildLib (internal) - ${isLibraryBased}`, async() => {
189
+ it(`npm run buildLib (internal) - ${isLIbraryBasedC}`, async() => {
190
190
 
191
- const script = `npm run _internal-buildLibrary 0.0.1 Y --prefix ../../..`;
191
+ const script = `npm run _internal-buildLibrary 0.0.1 N --prefix ../../..`;
192
192
  const { stdout, stderr } = await exec(script);
193
193
 
194
194
  expect(stdout).not.toContain('JWT token has expired, please reauthenticate.');
@@ -199,7 +199,7 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
199
199
  expect(stdout).toContain('Building Library...');
200
200
  expect(stdout).toContain('Compile check...');
201
201
 
202
- expect(stdout).toContain('Webpacked library Pega_DXIL:0.0.1-dev successfully!!');
202
+ expect(stdout).toContain('Webpacked library Pega_DXIL:0.0.1 successfully!!');
203
203
  expect(stdout).toContain('== Creating manifest for the library version - completed ==');
204
204
 
205
205
 
@@ -207,29 +207,29 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
207
207
  }, 200000);
208
208
 
209
209
 
210
- it(`npm run listPublishedLib - ${isLibraryBased}`, async() => {
210
+ it(`npm run listPublishedLib - ${isLIbraryBasedC}`, async() => {
211
211
 
212
- const script = `npm run listPublishedLib Local Pega_DXIL 0.0.1-dev --prefix ../../..`;
212
+ const script = `npm run listPublishedLib Local Pega_DXIL 0.0.1 --prefix ../../..`;
213
213
  const { stdout, stderr } = await exec(script);
214
214
 
215
215
  expect(stdout).toContain('Pega_DXIL_MyTestText');
216
216
  expect(stdout).toContain('Pega_DXIL_MyTestPage');
217
217
  expect(stdout).toContain('Pega_DXIL_MyTestDetails');
218
218
 
219
- expect(stdout).toContain('0.0.1-dev');
219
+ expect(stdout).toContain('0.0.1');
220
220
 
221
221
 
222
222
  }, 30000);
223
223
 
224
- it(`npm run deleteLib - ${isLibraryBased}`, async() => {
224
+ it(`npm run deleteLib - ${isLIbraryBasedC}`, async() => {
225
225
 
226
- const script = `npm run deleteLib Pega_DXIL 0.0.1-dev Y --prefix ../../..`;
226
+ const script = `npm run deleteLib Pega_DXIL 0.0.1 Y --prefix ../../..`;
227
227
  const { stdout, stderr } = await exec(script);
228
228
  expect(stdout).toContain('Pega_DXIL is deleted from Local.');
229
229
 
230
230
  }, 30000);
231
231
 
232
- it(`npm run deletePublishedLib - ${isLibraryBased}`, async() => {
232
+ it(`npm run deletePublishedLib - ${isLIbraryBasedC}`, async() => {
233
233
 
234
234
  const script = `npm run deletePublishedLib Local ALL --prefix ../../..`;
235
235
  const { stdout, stderr } = await exec(script);
@@ -12,13 +12,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
12
12
  const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
13
13
  let packageJSON = JSON.parse(packageJSONData);
14
14
 
15
- let isLibraryBased = tasksConfigJSON['libraryMode'];
16
- const savedLibraryBased = isLibraryBased;
15
+ let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
16
+ const savedLibraryBased = isLibraryBasedCL;
17
17
  const savedOrganization = packageJSON.organization;
18
18
 
19
19
  const serverType = tasksConfigJSON['server-config'].serverType;
20
20
  const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
21
- let compType = isLibraryBased ? "library" : "original";
21
+ let compType = isLibraryBasedCL ? "library" : "original";
22
22
 
23
23
 
24
24
  describe(`createLib deleteLib: ${serverDir} - ${compType}` , () => {
@@ -26,9 +26,9 @@ describe(`createLib deleteLib: ${serverDir} - ${compType}` , () => {
26
26
  beforeAll( async() => {
27
27
 
28
28
  // make libraryBased
29
- isLibraryBased = true;
30
- tasksConfigJSON['libraryMode'] = isLibraryBased;
31
- compType = isLibraryBased ? "library" : "original";
29
+ isLibraryBasedCL = true;
30
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
31
+ compType = isLibraryBasedCL ? "library" : "original";
32
32
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
33
33
 
34
34
  const storeDir = path.join(path.resolve('../../..'), 'store');
@@ -55,8 +55,8 @@ describe(`createLib deleteLib: ${serverDir} - ${compType}` , () => {
55
55
  afterAll( async() => {
56
56
 
57
57
  //restore
58
- isLibraryBased = savedLibraryBased
59
- tasksConfigJSON['libraryMode'] = isLibraryBased;
58
+ isLibraryBasedCL = savedLibraryBased
59
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
60
60
 
61
61
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
62
62
 
@@ -93,13 +93,13 @@ describe(`createLib deleteLib: ${serverDir} - ${compType}` , () => {
93
93
  }, 10000);
94
94
 
95
95
 
96
- it(`npm run createLib - ${isLibraryBased}`, async() => {
96
+ it(`npm run createLib - ${isLibraryBasedCL}`, async() => {
97
97
 
98
98
  const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
99
- const compConf = path.join("store", "Pega_DXIL","0.0.1-dev", "componentsconfig.json");
99
+ const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
100
100
 
101
101
  const { stdout, stderr } = await exec(script);
102
- expect(stdout).toContain('Library Pega_DXIL/0.0.1-dev has been created!');
102
+ expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
103
103
 
104
104
  const doesExist = fs.existsSync(path.resolve('../../..', compConf));
105
105
 
@@ -121,35 +121,35 @@ describe(`createLib deleteLib: ${serverDir} - ${compType}` , () => {
121
121
  }, 10000);
122
122
 
123
123
  it('npm run listLib (nothing current)', async () => {
124
- const script = 'npm run listLib Pega_DXIL 0.0.1-dev Current --prefix ../../..';
124
+ const script = 'npm run listLib Pega_DXIL 0.0.1 Current --prefix ../../..';
125
125
  const { stdout, stderr } = await exec(script);
126
126
 
127
127
  expect(stderr).not.toBeNull();
128
128
 
129
129
  // console.log(stdout);
130
130
  expect(stdout).not.toBeNull();
131
- expect(stdout).toContain('No custom components in Pega_DXIL/0.0.1-dev');
131
+ expect(stdout).toContain('No custom components in Pega_DXIL/0.0.1');
132
132
 
133
133
  // done();
134
134
  }, 10000);
135
135
 
136
136
  it('npm run listLib (nothing store)', async () => {
137
- const script = 'npm run listLib Pega_DXIL 0.0.1-dev Store --prefix ../../..';
137
+ const script = 'npm run listLib Pega_DXIL 0.0.1 Store --prefix ../../..';
138
138
  const { stdout, stderr } = await exec(script);
139
139
 
140
140
  expect(stderr).not.toBeNull();
141
141
 
142
142
  // console.log(stdout);
143
143
  expect(stdout).not.toBeNull();
144
- expect(stdout).toContain('No custom components in Pega_DXIL/0.0.1-dev');
144
+ expect(stdout).toContain('No custom components in Pega_DXIL/0.0.1');
145
145
 
146
146
  // done();
147
147
  }, 10000);
148
148
 
149
149
 
150
- it(`npm run deleteLib - ${isLibraryBased}`, async() => {
150
+ it(`npm run deleteLib - ${isLibraryBasedCL}`, async() => {
151
151
 
152
- const script = `npm run deleteLib Pega_DXIL 0.0.1-dev Y --prefix ../../..`;
152
+ const script = `npm run deleteLib Pega_DXIL 0.0.1 Y --prefix ../../..`;
153
153
  const { stdout, stderr } = await exec(script);
154
154
 
155
155
  expect(stdout).toContain('Pega_DXIL is deleted from Local.');
@@ -13,13 +13,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
13
13
  const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
14
14
  let packageJSON = JSON.parse(packageJSONData);
15
15
 
16
- let isLibraryBased = tasksConfigJSON['libraryMode'];
17
- const savedLibraryBased = isLibraryBased;
16
+ let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
17
+ const savedLibraryBased = isLibraryBasedCL;
18
18
  const savedOrganization = packageJSON.organization;
19
19
 
20
20
  const serverType = tasksConfigJSON['server-config'].serverType;
21
21
  const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
22
- let compType = isLibraryBased ? "library" : "original";
22
+ let compType = isLibraryBasedCL ? "library" : "original";
23
23
 
24
24
 
25
25
  describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} - ${compType}` , () => {
@@ -27,9 +27,9 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
27
27
  beforeAll( async() => {
28
28
 
29
29
  // make libraryBased
30
- isLibraryBased = true;
31
- tasksConfigJSON['libraryMode'] = isLibraryBased;
32
- compType = isLibraryBased ? "library" : "original";
30
+ isLibraryBasedCL = true;
31
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
32
+ compType = isLibraryBasedCL ? "library" : "original";
33
33
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
34
34
 
35
35
  const storeDir = path.join(path.resolve('../../..'), 'store');
@@ -55,8 +55,8 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
55
55
  afterAll( async() => {
56
56
 
57
57
  //restore
58
- isLibraryBased = savedLibraryBased
59
- tasksConfigJSON['libraryMode'] = isLibraryBased;
58
+ isLibraryBasedCL = savedLibraryBased
59
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
60
60
 
61
61
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
62
62
 
@@ -80,13 +80,13 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
80
80
  });
81
81
 
82
82
 
83
- it(`npm run createLib - ${isLibraryBased}`, async() => {
83
+ it(`npm run createLib - ${isLibraryBasedCL}`, async() => {
84
84
 
85
85
  const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
86
- const compConf = path.join("store", "Pega_DXIL","0.0.1-dev", "componentsconfig.json");
86
+ const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
87
87
 
88
88
  const { stdout, stderr } = await exec(script);
89
- expect(stdout).toContain('Library Pega_DXIL/0.0.1-dev has been created!');
89
+ expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
90
90
 
91
91
  const doesExist = fs.existsSync(path.resolve('../../..', compConf));
92
92
 
@@ -125,7 +125,7 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
125
125
  // // remove it
126
126
  // fs.rmdirSync(fileDir, { recursive: true });
127
127
  // }
128
- }, 30000);
128
+ }, 90000);
129
129
 
130
130
  it('npm run list', async () => {
131
131
  const script = 'npm run list --prefix ../../..';
@@ -164,7 +164,7 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
164
164
  }, 10000);
165
165
 
166
166
 
167
- it(`npm run export lib - ${isLibraryBased}`, async() => {
167
+ it(`npm run export lib - ${isLibraryBasedCL}`, async() => {
168
168
 
169
169
  const currentDirectory = process.cwd();
170
170
  const arPathParts = currentDirectory.split(path.sep);
@@ -173,17 +173,17 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
173
173
  defaultPath = "/".concat(defaultPath);
174
174
  }
175
175
 
176
- const script = `npm run exportLibVersion Full Pega_DXIL 0.0.1-dev ${defaultPath} Current --prefix ../../..`;
176
+ const script = `npm run exportLibVersion Full Pega_DXIL 0.0.1 ${defaultPath} Current --prefix ../../..`;
177
177
  const { stdout, stderr } = await exec(script);
178
178
 
179
- expect(stdout).toContain('Pega_DXIL_0.0.1-dev.arch.zip has been exported');
180
- const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1-dev.arch.zip");
179
+ expect(stdout).toContain('Pega_DXIL_0.0.1.arch.zip has been exported');
180
+ const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1.arch.zip");
181
181
  expect(fs.existsSync(zipFile)).toBeTruthy();
182
182
 
183
183
 
184
- }, 90000);
184
+ }, 100000);
185
185
 
186
- it(`npm run import lib (delete zip) - ${isLibraryBased}`, async() => {
186
+ it(`npm run import lib (delete zip) - ${isLibraryBasedCL}`, async() => {
187
187
 
188
188
  const currentDirectory = process.cwd();
189
189
  const arPathParts = currentDirectory.split(path.sep);
@@ -192,23 +192,23 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
192
192
  defaultPath = "/".concat(defaultPath);
193
193
  }
194
194
 
195
- const script = `npm run importLibVersion ${defaultPath} Pega_DXIL_0.0.1-dev.arch.zip --prefix ../../..`;
195
+ const script = `npm run importLibVersion Local ${defaultPath} Pega_DXIL_0.0.1.arch.zip --prefix ../../..`;
196
196
  const { stdout, stderr } = await exec(script);
197
197
 
198
- expect(stdout).toContain('Pega_DXIL_0.0.1-dev.arch.zip has been imported!');
199
- expect(stdout).toContain('You can switch to Pega_DXIL/0.0.1-dev via npm run switchLib.');
198
+ expect(stdout).toContain('Pega_DXIL_0.0.1.arch.zip has been imported!');
199
+ expect(stdout).toContain('You can switch to Pega_DXIL/0.0.1 via npm run switchLib.');
200
200
 
201
- const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1-dev.arch.zip");
201
+ const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1.arch.zip");
202
202
  expect(fs.existsSync(zipFile)).toBeTruthy();
203
203
 
204
204
  // delete zip file
205
205
  // fs.rmSync(zipFile, {recursive: true});
206
206
 
207
207
 
208
- }, 30000);
208
+ }, 70000);
209
209
 
210
210
 
211
- it(`npm run delete import - ${isLibraryBased}`, async() => {
211
+ it(`npm run delete import - ${isLibraryBasedCL}`, async() => {
212
212
 
213
213
  const currentDirectory = process.cwd();
214
214
  const arPathParts = currentDirectory.split(path.sep);
@@ -217,7 +217,7 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
217
217
  defaultPath = "/".concat(defaultPath);
218
218
  }
219
219
 
220
- const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1-dev.arch.zip");
220
+ const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1.arch.zip");
221
221
  expect(fs.existsSync(zipFile)).toBeTruthy();
222
222
 
223
223
  // delete zip file
@@ -228,9 +228,9 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
228
228
 
229
229
 
230
230
 
231
- it(`npm run deleteLib - ${isLibraryBased}`, async() => {
231
+ it(`npm run deleteLib - ${isLibraryBasedCL}`, async() => {
232
232
 
233
- const script = `npm run deleteLib Pega_DXIL 0.0.1-dev Y --prefix ../../..`;
233
+ const script = `npm run deleteLib Pega_DXIL 0.0.1 Y --prefix ../../..`;
234
234
  const { stdout, stderr } = await exec(script);
235
235
 
236
236
  expect(stdout).toContain('Pega_DXIL is deleted from Local.');
@@ -13,13 +13,13 @@ const packageJSONDir = path.resolve('../../..', 'package.json');
13
13
  const packageJSONData = fs.readFileSync(packageJSONDir, { encoding: 'utf8'});
14
14
  let packageJSON = JSON.parse(packageJSONData);
15
15
 
16
- let isLibraryBased = tasksConfigJSON['libraryMode'];
17
- const savedLibraryBased = isLibraryBased;
16
+ let isLibraryBasedCL = tasksConfigJSON['libraryModeCL'];
17
+ const savedLibraryBased = isLibraryBasedCL;
18
18
  const savedOrganization = packageJSON.organization;
19
19
 
20
20
  const serverType = tasksConfigJSON['server-config'].serverType;
21
21
  const serverDir = serverType === 'launchpad' ? 'Launchpad' : 'Constellation';
22
- let compType = isLibraryBased ? "library" : "original";
22
+ let compType = isLibraryBasedCL ? "library" : "original";
23
23
 
24
24
 
25
25
  describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}` , () => {
@@ -27,9 +27,9 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
27
27
  beforeAll( async() => {
28
28
 
29
29
  // make libraryBased
30
- isLibraryBased = true;
31
- tasksConfigJSON['libraryMode'] = isLibraryBased;
32
- compType = isLibraryBased ? "library" : "original";
30
+ isLibraryBasedCL = true;
31
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
32
+ compType = isLibraryBasedCL ? "library" : "original";
33
33
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
34
34
 
35
35
  const storeDir = path.join(path.resolve('../../..'), 'store');
@@ -55,8 +55,8 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
55
55
  afterAll( async() => {
56
56
 
57
57
  //restore
58
- isLibraryBased = savedLibraryBased
59
- tasksConfigJSON['libraryMode'] = isLibraryBased;
58
+ isLibraryBasedCL = savedLibraryBased
59
+ tasksConfigJSON['libraryModeCL'] = isLibraryBasedCL;
60
60
 
61
61
  fs.writeFileSync(tasksConfigDir, JSON.stringify(tasksConfigJSON, null, 4), { encoding: 'utf8' });
62
62
 
@@ -80,13 +80,13 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
80
80
  });
81
81
 
82
82
 
83
- it(`npm run createLib - ${isLibraryBased}`, async() => {
83
+ it(`npm run createLib - ${isLibraryBasedCL}`, async() => {
84
84
 
85
85
  const script = `npm run createLib DXIL 0.0.1 N Original --prefix ../../..`;
86
- const compConf = path.join("store", "Pega_DXIL","0.0.1-dev", "componentsconfig.json");
86
+ const compConf = path.join("store", "Pega_DXIL","0.0.1", "componentsconfig.json");
87
87
 
88
88
  const { stdout, stderr } = await exec(script);
89
- expect(stdout).toContain('Library Pega_DXIL/0.0.1-dev has been created!');
89
+ expect(stdout).toContain('Library Pega_DXIL/0.0.1 has been created!');
90
90
 
91
91
  const doesExist = fs.existsSync(path.resolve('../../..', compConf));
92
92
 
@@ -164,7 +164,7 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
164
164
  }, 10000);
165
165
 
166
166
 
167
- it(`npm run export lib (delete zip) - ${isLibraryBased}`, async() => {
167
+ it(`npm run export lib (delete zip) - ${isLibraryBasedCL}`, async() => {
168
168
 
169
169
  const currentDirectory = process.cwd();
170
170
  const arPathParts = currentDirectory.split(path.sep);
@@ -173,11 +173,11 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
173
173
  defaultPath = "/".concat(defaultPath);
174
174
  }
175
175
 
176
- const script = `npm run exportLibVersion Full Pega_DXIL 0.0.1-dev ${defaultPath} Current --prefix ../../..`;
176
+ const script = `npm run exportLibVersion Full Pega_DXIL 0.0.1 ${defaultPath} Current --prefix ../../..`;
177
177
  const { stdout, stderr } = await exec(script);
178
178
 
179
- expect(stdout).toContain('Pega_DXIL_0.0.1-dev.arch.zip has been exported');
180
- const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1-dev.arch.zip");
179
+ expect(stdout).toContain('Pega_DXIL_0.0.1.arch.zip has been exported');
180
+ const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1.arch.zip");
181
181
  expect(fs.existsSync(zipFile)).toBeTruthy();
182
182
 
183
183
  // delete zip file
@@ -186,7 +186,7 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
186
186
 
187
187
  }, 30000);
188
188
 
189
- it(`npm run delete import - ${isLibraryBased}`, async() => {
189
+ it(`npm run delete import - ${isLibraryBasedCL}`, async() => {
190
190
 
191
191
  const currentDirectory = process.cwd();
192
192
  const arPathParts = currentDirectory.split(path.sep);
@@ -195,7 +195,7 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
195
195
  defaultPath = "/".concat(defaultPath);
196
196
  }
197
197
 
198
- const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1-dev.arch.zip");
198
+ const zipFile = path.join(defaultPath, "Pega_DXIL_0.0.1.arch.zip");
199
199
  expect(fs.existsSync(zipFile)).toBeTruthy();
200
200
 
201
201
  // delete zip file
@@ -205,9 +205,9 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
205
205
  }, 30000);
206
206
 
207
207
 
208
- it(`npm run deleteLib - ${isLibraryBased}`, async() => {
208
+ it(`npm run deleteLib - ${isLibraryBasedCL}`, async() => {
209
209
 
210
- const script = `npm run deleteLib Pega_DXIL 0.0.1-dev Y --prefix ../../..`;
210
+ const script = `npm run deleteLib Pega_DXIL 0.0.1 Y --prefix ../../..`;
211
211
  const { stdout, stderr } = await exec(script);
212
212
 
213
213
  expect(stdout).toContain('Pega_DXIL is deleted from Local.');