@commercetools-frontend/deployment-cli 0.0.2 → 0.0.4
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 +4 -8
- package/dist/declarations/src/helpers.d.ts +1 -3
- package/package.json +18 -5
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Each of the fields in the example are required to run commands successfully:
|
|
|
15
15
|
```js
|
|
16
16
|
module.exports = {
|
|
17
17
|
CircleCI: {
|
|
18
|
-
projectName: 'merchant-center-
|
|
18
|
+
projectName: 'merchant-center-application',
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
```
|
|
@@ -27,16 +27,12 @@ module.exports = {
|
|
|
27
27
|
CircleCI: {
|
|
28
28
|
apiBaseUrl: 'https://circleci.com/api/v2',
|
|
29
29
|
deploymentWorkflowName: 'test_build_and_deploy',
|
|
30
|
-
jobPrefixes: {
|
|
31
|
-
approval: 'can_d_p_a-',
|
|
32
|
-
deployment: 'd_p_a-',
|
|
33
|
-
},
|
|
34
30
|
pagination: {
|
|
35
31
|
maxPages: 42,
|
|
36
32
|
pagesForPipelineSelection: 5,
|
|
37
33
|
},
|
|
38
34
|
deployments: {
|
|
39
|
-
|
|
35
|
+
'my-deployment-name': {
|
|
40
36
|
jobs: {
|
|
41
37
|
approval: 'approval-job-name',
|
|
42
38
|
deployment: 'deploymnet-job-name',
|
|
@@ -52,13 +48,13 @@ module.exports = {
|
|
|
52
48
|
This command interacts with the CircleCI API and triggers a deployment by approving it.
|
|
53
49
|
|
|
54
50
|
```bash
|
|
55
|
-
yarn deployment-cli approve --approval-job=can_d_p_a-
|
|
51
|
+
yarn deployment-cli approve --approval-job=can_d_p_a-my-deployment-name
|
|
56
52
|
```
|
|
57
53
|
|
|
58
54
|
If a `deployments` config property is specified you can reference by:
|
|
59
55
|
|
|
60
56
|
```bash
|
|
61
|
-
yarn deployment-cli approve --deployment=
|
|
57
|
+
yarn deployment-cli approve --deployment=my-deployment-name
|
|
62
58
|
```
|
|
63
59
|
|
|
64
60
|
where `products` is a name of a deployment you configured in your configuration with `approval` and `deployment` (optional) configured on the `jobs` property.
|
|
@@ -5,13 +5,11 @@ export type TDeploymentCLIConfig = {
|
|
|
5
5
|
projectName?: string;
|
|
6
6
|
apiBaseUrl: string;
|
|
7
7
|
deploymentWorkflowName: string;
|
|
8
|
+
deploymentJobPrefix: string;
|
|
8
9
|
pagination?: {
|
|
9
10
|
maxPages?: number;
|
|
10
11
|
pagesForPipelineSelection?: number;
|
|
11
12
|
};
|
|
12
|
-
jobPrefixes?: {
|
|
13
|
-
deployment: string;
|
|
14
|
-
};
|
|
15
13
|
};
|
|
16
14
|
MerchantCenter: {
|
|
17
15
|
mcUrl?: string;
|
package/package.json
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/deployment-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "CLI to manage Custom Applications deployments in Google Storage.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"keywords": [
|
|
6
|
+
"keywords": [
|
|
7
|
+
"commercetools",
|
|
8
|
+
"cli",
|
|
9
|
+
"deployment"
|
|
10
|
+
],
|
|
7
11
|
"publishConfig": {
|
|
8
12
|
"access": "public"
|
|
9
13
|
},
|
|
10
14
|
"main": "dist/commercetools-frontend-deployment-cli.cjs.js",
|
|
11
15
|
"module": "dist/commercetools-frontend-deployment-cli.esm.js",
|
|
12
16
|
"preconstruct": {
|
|
13
|
-
"entrypoints": [
|
|
17
|
+
"entrypoints": [
|
|
18
|
+
"./cli.ts",
|
|
19
|
+
"./index.ts"
|
|
20
|
+
]
|
|
14
21
|
},
|
|
15
|
-
"files": [
|
|
22
|
+
"files": [
|
|
23
|
+
"cli",
|
|
24
|
+
"dist",
|
|
25
|
+
"package.json",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
16
29
|
"scripts": {
|
|
17
30
|
"typecheck": "tsc --noEmit"
|
|
18
31
|
},
|
|
@@ -22,7 +35,7 @@
|
|
|
22
35
|
"@babel/runtime": "^7.19.0",
|
|
23
36
|
"@babel/runtime-corejs3": "^7.19.0",
|
|
24
37
|
"@manypkg/get-packages": "1.1.3",
|
|
25
|
-
"cosmiconfig": "
|
|
38
|
+
"cosmiconfig": "8.0.0",
|
|
26
39
|
"lodash.merge": "4.6.2",
|
|
27
40
|
"mri": "1.2.0",
|
|
28
41
|
"node-fetch": "2.6.7",
|