@squiz/dxp-cli-next 0.0.0-development → 1.0.0-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/bin/dxp.js CHANGED
File without changes
@@ -1,9 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const helpers_1 = require("../helpers");
4
- describe('my-command', () => {
4
+ describe('dxp', () => {
5
5
  it('should display the help contents', () => {
6
6
  const { stdout } = (0, helpers_1.runCLI)(process.cwd(), ['--help']);
7
- expect(stdout).toContain('Usage: my-command [options]');
7
+ expect(stdout).toContain('Usage: dxp [options] [command]');
8
+ });
9
+ it('should show all available commands', () => {
10
+ var _a;
11
+ const { stdout } = (0, helpers_1.runCLI)(process.cwd(), ['--help']);
12
+ const commandsText = (_a = stdout
13
+ .match(/Commands\:(.*)/is)) === null || _a === void 0 ? void 0 : _a[1].split('\n').map(a => a.trim()).filter(a => !!a);
14
+ expect(commandsText).toEqual([
15
+ 'auth log into the sxc',
16
+ 'td Template deployment commands',
17
+ ]);
8
18
  });
9
19
  });
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "0.0.0-development",
3
+ "version": "1.0.0-develop.1",
4
+ "repository": {
5
+ "url": "https://gitlab.squiz.net/developer-experience/dxp-cli-next"
6
+ },
4
7
  "files": [
5
8
  "!lib/__tests__/**/*",
6
9
  "lib/**/*",
@@ -22,7 +25,7 @@
22
25
  "typecheck": "tsc --noEmit"
23
26
  },
24
27
  "engines": {
25
- "node": ">=12.0"
28
+ "node": ">=14.0"
26
29
  },
27
30
  "keywords": [
28
31
  "cli",
@@ -39,6 +42,9 @@
39
42
  "commander": "^9.0.0"
40
43
  },
41
44
  "devDependencies": {
45
+ "@semantic-release/git": "^10.0.1",
46
+ "@semantic-release/gitlab": "^7.0.4",
47
+ "@semantic-release/npm": "^9.0.0",
42
48
  "@types/jest": "^27.4.0",
43
49
  "@types/node": "^17.0.14",
44
50
  "@typescript-eslint/eslint-plugin": "^5.10.2",
@@ -71,7 +77,26 @@
71
77
  },
72
78
  "release": {
73
79
  "branches": [
74
- "main"
80
+ "master",
81
+ {
82
+ "name": "develop",
83
+ "prerelease": true
84
+ }
85
+ ],
86
+ "plugins": [
87
+ "@semantic-release/commit-analyzer",
88
+ "@semantic-release/release-notes-generator",
89
+ "@semantic-release/npm",
90
+ [
91
+ "@semantic-release/git",
92
+ {
93
+ "assets": [
94
+ "docs",
95
+ "package.json"
96
+ ],
97
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
98
+ }
99
+ ]
75
100
  ]
76
101
  }
77
102
  }