@swell/cli 2.0.10 → 2.0.11
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.
|
@@ -32,6 +32,7 @@ The app must be connected to a partner account with access to publish.`;
|
|
|
32
32
|
'swell app release',
|
|
33
33
|
'swell app release 2.0.0',
|
|
34
34
|
'swell app release 2.0.0 --amend --release-notes ./releases/v2.0.0.md',
|
|
35
|
+
'swell app release 2.0.0 -y',
|
|
35
36
|
];
|
|
36
37
|
static flags = {
|
|
37
38
|
amend: Flags.boolean({
|
|
@@ -50,11 +51,15 @@ The app must be connected to a partner account with access to publish.`;
|
|
|
50
51
|
'release-notes': Flags.string({
|
|
51
52
|
description: 'relative path to a file containing release notes',
|
|
52
53
|
}),
|
|
54
|
+
yes: Flags.boolean({
|
|
55
|
+
char: 'y',
|
|
56
|
+
description: 'skip confirmation prompt',
|
|
57
|
+
}),
|
|
53
58
|
};
|
|
54
59
|
static summary = 'Release a new version of your an app for publishing to the App Store.';
|
|
55
60
|
async run() {
|
|
56
61
|
const { args, flags } = await this.parse(AppRelease);
|
|
57
|
-
const { amend, message, 'not-supported': notSupported, 'release-notes': releaseNotesFile, } = flags;
|
|
62
|
+
const { amend, message, 'not-supported': notSupported, 'release-notes': releaseNotesFile, yes, } = flags;
|
|
58
63
|
if (!(await this.ensureAppExists(undefined, false))) {
|
|
59
64
|
return;
|
|
60
65
|
}
|
|
@@ -83,7 +88,7 @@ The app must be connected to a partner account with access to publish.`;
|
|
|
83
88
|
? true
|
|
84
89
|
: appVersion.supported,
|
|
85
90
|
};
|
|
86
|
-
if (!amend) {
|
|
91
|
+
if (!amend && !yes) {
|
|
87
92
|
const continueVersion = await confirm({
|
|
88
93
|
message: `Release ${style.appConfigValue(this.app.name)} version ${appVersion.version}?`,
|
|
89
94
|
});
|
|
@@ -135,6 +140,7 @@ The app must be connected to a partner account with access to publish.`;
|
|
|
135
140
|
version,
|
|
136
141
|
...(flags.message ? [`-m ${JSON.stringify(flags.message)}`] : []),
|
|
137
142
|
...(flags['no-git-tag'] ? ['--no-git-tag'] : []),
|
|
143
|
+
...(flags.yes ? ['-y'] : []),
|
|
138
144
|
]);
|
|
139
145
|
this.log();
|
|
140
146
|
appVersion = await this.getVersion(version);
|
|
@@ -9,6 +9,7 @@ export default class AppVersion extends PushAppCommand {
|
|
|
9
9
|
amend: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
10
10
|
message: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
11
11
|
'no-git-tag': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
12
|
+
yes: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
12
13
|
};
|
|
13
14
|
static summary: string;
|
|
14
15
|
run(): Promise<void>;
|
|
@@ -49,6 +49,7 @@ behavior by using the --no-git-tag option.`;
|
|
|
49
49
|
'swell app version',
|
|
50
50
|
'swell app version minor',
|
|
51
51
|
'swell app version 1.0.0 -m "First release"',
|
|
52
|
+
'swell app version patch -y',
|
|
52
53
|
];
|
|
53
54
|
static flags = {
|
|
54
55
|
amend: Flags.boolean({
|
|
@@ -61,11 +62,15 @@ behavior by using the --no-git-tag option.`;
|
|
|
61
62
|
'no-git-tag': Flags.boolean({
|
|
62
63
|
description: 'do not create a git tag for this version',
|
|
63
64
|
}),
|
|
65
|
+
yes: Flags.boolean({
|
|
66
|
+
char: 'y',
|
|
67
|
+
description: 'skip confirmation prompt',
|
|
68
|
+
}),
|
|
64
69
|
};
|
|
65
70
|
static summary = 'Increment the version of your Swell app.';
|
|
66
71
|
async run() {
|
|
67
72
|
const { args, flags } = await this.parse(AppVersion);
|
|
68
|
-
const { amend, 'no-git-tag': noGitTag } = flags;
|
|
73
|
+
const { amend, 'no-git-tag': noGitTag, yes } = flags;
|
|
69
74
|
let { message } = flags;
|
|
70
75
|
let { nextVersion } = args;
|
|
71
76
|
if (!(await this.ensureAppExists(undefined, false))) {
|
|
@@ -99,9 +104,7 @@ behavior by using the --no-git-tag option.`;
|
|
|
99
104
|
}
|
|
100
105
|
return;
|
|
101
106
|
}
|
|
102
|
-
|
|
103
|
-
nextVersion = this.validateAndComputeVersion(nextVersion, remoteVersion);
|
|
104
|
-
}
|
|
107
|
+
nextVersion = this.validateAndComputeVersion(nextVersion, remoteVersion);
|
|
105
108
|
await this.pushAppConfigs();
|
|
106
109
|
await this.deployAppFrontend(false, false);
|
|
107
110
|
if (!message) {
|
|
@@ -109,11 +112,13 @@ behavior by using the --no-git-tag option.`;
|
|
|
109
112
|
message: `Describe the changes in version ${nextVersion}:`,
|
|
110
113
|
});
|
|
111
114
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
if (!yes) {
|
|
116
|
+
const continueVersion = await confirm({
|
|
117
|
+
message: `Create ${style.appConfigValue(this.app.name)} version ${nextVersion}?`,
|
|
118
|
+
});
|
|
119
|
+
if (!continueVersion) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
117
122
|
}
|
|
118
123
|
if (!message) {
|
|
119
124
|
message = nextVersion;
|
package/oclif.manifest.json
CHANGED
|
@@ -698,7 +698,8 @@
|
|
|
698
698
|
"examples": [
|
|
699
699
|
"swell app release",
|
|
700
700
|
"swell app release 2.0.0",
|
|
701
|
-
"swell app release 2.0.0 --amend --release-notes ./releases/v2.0.0.md"
|
|
701
|
+
"swell app release 2.0.0 --amend --release-notes ./releases/v2.0.0.md",
|
|
702
|
+
"swell app release 2.0.0 -y"
|
|
702
703
|
],
|
|
703
704
|
"flags": {
|
|
704
705
|
"app-path": {
|
|
@@ -740,6 +741,13 @@
|
|
|
740
741
|
"hasDynamicHelp": false,
|
|
741
742
|
"multiple": false,
|
|
742
743
|
"type": "option"
|
|
744
|
+
},
|
|
745
|
+
"yes": {
|
|
746
|
+
"char": "y",
|
|
747
|
+
"description": "skip confirmation prompt",
|
|
748
|
+
"name": "yes",
|
|
749
|
+
"allowNo": false,
|
|
750
|
+
"type": "boolean"
|
|
743
751
|
}
|
|
744
752
|
},
|
|
745
753
|
"hasDynamicHelp": false,
|
|
@@ -770,7 +778,8 @@
|
|
|
770
778
|
"examples": [
|
|
771
779
|
"swell app version",
|
|
772
780
|
"swell app version minor",
|
|
773
|
-
"swell app version 1.0.0 -m \"First release\""
|
|
781
|
+
"swell app version 1.0.0 -m \"First release\"",
|
|
782
|
+
"swell app version patch -y"
|
|
774
783
|
],
|
|
775
784
|
"flags": {
|
|
776
785
|
"app-path": {
|
|
@@ -799,6 +808,13 @@
|
|
|
799
808
|
"name": "no-git-tag",
|
|
800
809
|
"allowNo": false,
|
|
801
810
|
"type": "boolean"
|
|
811
|
+
},
|
|
812
|
+
"yes": {
|
|
813
|
+
"char": "y",
|
|
814
|
+
"description": "skip confirmation prompt",
|
|
815
|
+
"name": "yes",
|
|
816
|
+
"allowNo": false,
|
|
817
|
+
"type": "boolean"
|
|
802
818
|
}
|
|
803
819
|
},
|
|
804
820
|
"hasDynamicHelp": false,
|
|
@@ -1841,5 +1857,5 @@
|
|
|
1841
1857
|
]
|
|
1842
1858
|
}
|
|
1843
1859
|
},
|
|
1844
|
-
"version": "2.0.
|
|
1860
|
+
"version": "2.0.11"
|
|
1845
1861
|
}
|