@squiz/dxp-cli-next 5.30.0-develop.4 → 5.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,6 +17,7 @@ describe('dxp', () => {
|
|
|
17
17
|
'job-runner Job Runner Service Commands',
|
|
18
18
|
'datastore Datastore Service Commands',
|
|
19
19
|
'cdp Customer Data Platform Service Commands',
|
|
20
|
+
'page Page Content Service Commands',
|
|
20
21
|
// TODO: Migration is hidden behind feature flag.
|
|
21
22
|
// 'migration AI Page Migration Service Commands',
|
|
22
23
|
// TODO: Porter is hidden behind feature flag.
|
|
@@ -37,15 +38,8 @@ describe('dxp', () => {
|
|
|
37
38
|
'cdp Customer Data Platform Service Commands',
|
|
38
39
|
// TODO: Migration is hidden behind feature flag.
|
|
39
40
|
// 'migration AI Page Migration Service Commands',
|
|
41
|
+
'page Page Content Service Commands',
|
|
40
42
|
'porter Porter Service Commands',
|
|
41
43
|
]);
|
|
42
44
|
});
|
|
43
|
-
it('should show "page" command if ENABLE_PAGE_LAYOUTS="true"', () => {
|
|
44
|
-
var _a;
|
|
45
|
-
process.env.ENABLE_PAGE_LAYOUTS = 'true';
|
|
46
|
-
const { stdout } = (0, helpers_1.runCLI)(process.cwd(), ['--help']);
|
|
47
|
-
const commandsText = (_a = stdout
|
|
48
|
-
.match(/Commands\:(.*)/is)) === null || _a === void 0 ? void 0 : _a[1].split('\n').map(a => a.trim()).filter(a => !!a);
|
|
49
|
-
expect(commandsText).toContain('page Page Content Service Commands');
|
|
50
|
-
});
|
|
51
45
|
});
|
package/lib/dxp.js
CHANGED
|
@@ -30,13 +30,11 @@ program
|
|
|
30
30
|
.addCommand(cmp_1.default)
|
|
31
31
|
.addCommand(job_runner_1.default)
|
|
32
32
|
.addCommand(datastore_1.default)
|
|
33
|
-
.addCommand(cdp_1.default)
|
|
33
|
+
.addCommand(cdp_1.default)
|
|
34
|
+
.addCommand(page_1.default);
|
|
34
35
|
if (process.env.ENABLE_PORTER === 'true') {
|
|
35
36
|
program.addCommand(porter_1.default);
|
|
36
37
|
}
|
|
37
|
-
if (process.env.ENABLE_PAGE_LAYOUTS === 'true') {
|
|
38
|
-
program.addCommand(page_1.default);
|
|
39
|
-
}
|
|
40
38
|
if (process.env.ENABLE_MIGRATION === 'true') {
|
|
41
39
|
program.addCommand(migration_1.default);
|
|
42
40
|
}
|