@squiz/dxp-cli-next 5.8.0 → 5.8.1-develop.1
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.
- package/README.md +1 -0
- package/lib/__tests__/integration/main.spec.js +0 -18
- package/lib/dxp.js +1 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const helpers_1 = require("../helpers");
|
|
4
4
|
describe('dxp', () => {
|
|
5
|
-
beforeEach(() => {
|
|
6
|
-
process.env.FEATURE_TD_ACTIVE = 'true';
|
|
7
|
-
});
|
|
8
|
-
afterAll(() => {
|
|
9
|
-
process.env.FEATURE_TD_ACTIVE = undefined;
|
|
10
|
-
});
|
|
11
5
|
it('should display the help contents', () => {
|
|
12
6
|
const { stdout } = (0, helpers_1.runCLI)(process.cwd(), ['--help']);
|
|
13
7
|
expect(stdout).toContain('Usage: dxp [options] [command]');
|
|
@@ -19,20 +13,8 @@ describe('dxp', () => {
|
|
|
19
13
|
.match(/Commands\:(.*)/is)) === null || _a === void 0 ? void 0 : _a[1].split('\n').map(a => a.trim()).filter(a => !!a);
|
|
20
14
|
expect(commandsText).toEqual([
|
|
21
15
|
'auth Authenticate into the DXP CLI',
|
|
22
|
-
'job-runner Job Runner Service Commands',
|
|
23
16
|
'cmp Component Service Commands',
|
|
24
|
-
]);
|
|
25
|
-
});
|
|
26
|
-
it('if FEATURE_TD_ACTIVE not set to true, td command should not be visible', () => {
|
|
27
|
-
var _a;
|
|
28
|
-
process.env.FEATURE_TD_ACTIVE = undefined;
|
|
29
|
-
const { stdout } = (0, helpers_1.runCLI)(process.cwd(), ['--help']);
|
|
30
|
-
const commandsText = (_a = stdout
|
|
31
|
-
.match(/Commands\:(.*)/is)) === null || _a === void 0 ? void 0 : _a[1].split('\n').map(a => a.trim()).filter(a => !!a);
|
|
32
|
-
expect(commandsText).toEqual([
|
|
33
|
-
'auth Authenticate into the DXP CLI',
|
|
34
17
|
'job-runner Job Runner Service Commands',
|
|
35
|
-
'cmp Component Service Commands',
|
|
36
18
|
]);
|
|
37
19
|
});
|
|
38
20
|
});
|
package/lib/dxp.js
CHANGED
|
@@ -12,7 +12,6 @@ validateNodeVersion();
|
|
|
12
12
|
isGlobal: true,
|
|
13
13
|
});
|
|
14
14
|
const auth_1 = __importDefault(require("./auth"));
|
|
15
|
-
// import tdCommand from './td';
|
|
16
15
|
const cmp_1 = __importDefault(require("./cmp"));
|
|
17
16
|
const job_runner_1 = __importDefault(require("./job-runner"));
|
|
18
17
|
const program = new commander_1.default.Command();
|
|
@@ -23,12 +22,8 @@ program
|
|
|
23
22
|
.version(version)
|
|
24
23
|
.description('dxp commands')
|
|
25
24
|
.addCommand(auth_1.default)
|
|
26
|
-
.addCommand(job_runner_1.default);
|
|
27
|
-
// if (process.env.FEATURE_TD_ACTIVE === 'true') {
|
|
28
|
-
// program.addCommand(tdCommand);
|
|
29
|
-
// }
|
|
30
|
-
program
|
|
31
25
|
.addCommand(cmp_1.default)
|
|
26
|
+
.addCommand(job_runner_1.default)
|
|
32
27
|
.action(() => {
|
|
33
28
|
program.help();
|
|
34
29
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/dxp-cli-next",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.1-develop.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://gitlab.squiz.net/developer-experience/dxp-cli-next"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"codecov"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@squiz/component-cli-lib": "1.54.
|
|
42
|
+
"@squiz/component-cli-lib": "1.54.1-alpha.20",
|
|
43
43
|
"axios": "1.1.3",
|
|
44
44
|
"cli-color": "2.0.3",
|
|
45
45
|
"commander": "9.4.0",
|