@appcircle/codepush-cli 0.0.3 → 0.1.0-alpha.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.
|
@@ -297,6 +297,7 @@ function execute(command) {
|
|
|
297
297
|
switch (command.type) {
|
|
298
298
|
// Must not be logged in
|
|
299
299
|
case cli.CommandType.login:
|
|
300
|
+
return login(command);
|
|
300
301
|
// Must be logged in
|
|
301
302
|
default:
|
|
302
303
|
if (!!exports.sdk)
|
|
@@ -332,8 +333,6 @@ function execute(command) {
|
|
|
332
333
|
return deploymentRemove(command);
|
|
333
334
|
case cli.CommandType.deploymentRename:
|
|
334
335
|
return deploymentRename(command);
|
|
335
|
-
case cli.CommandType.login:
|
|
336
|
-
return login(command);
|
|
337
336
|
case cli.CommandType.logout:
|
|
338
337
|
return logout(command);
|
|
339
338
|
case cli.CommandType.patch:
|
|
@@ -932,6 +931,7 @@ const release = (command) => {
|
|
|
932
931
|
isDisabled: command.disabled,
|
|
933
932
|
isMandatory: command.mandatory,
|
|
934
933
|
rollout: command.rollout,
|
|
934
|
+
diffEnabled: command.diffEnabled,
|
|
935
935
|
};
|
|
936
936
|
return exports.sdk
|
|
937
937
|
.isAuthenticated(true)
|
|
@@ -964,6 +964,7 @@ const releaseReact = (command) => {
|
|
|
964
964
|
.getDeployment(command.appName, command.deploymentName)
|
|
965
965
|
.then(() => {
|
|
966
966
|
releaseCommand.package = outputFolder;
|
|
967
|
+
releaseCommand.diffEnabled = command.diffEnabled;
|
|
967
968
|
switch (platform) {
|
|
968
969
|
case "android":
|
|
969
970
|
case "ios":
|
|
@@ -602,6 +602,13 @@ yargs
|
|
|
602
602
|
demand: false,
|
|
603
603
|
description: "Name of build configuration which specifies the binary version you want to target this release at. For example, 'Debug' or 'Release' (iOS only)",
|
|
604
604
|
type: "string",
|
|
605
|
+
})
|
|
606
|
+
.option("diffEnabled", {
|
|
607
|
+
alias: "de",
|
|
608
|
+
default: false,
|
|
609
|
+
demand: false,
|
|
610
|
+
description: "Enable package diff for release.",
|
|
611
|
+
type: "boolean",
|
|
605
612
|
})
|
|
606
613
|
.check((argv, aliases) => {
|
|
607
614
|
return checkValidReleaseOptions(argv);
|
|
@@ -818,6 +825,7 @@ function createCommand() {
|
|
|
818
825
|
releaseReactCommand.sourcemapOutput = argv["sourcemapOutput"];
|
|
819
826
|
releaseReactCommand.outputDir = argv["outputDir"];
|
|
820
827
|
releaseReactCommand.useHermes = argv["useHermes"];
|
|
828
|
+
releaseReactCommand.diffEnabled = argv["diffEnabled"];
|
|
821
829
|
releaseReactCommand.extraHermesFlags = argv["extraHermesFlags"];
|
|
822
830
|
releaseReactCommand.podFile = argv["podFile"];
|
|
823
831
|
releaseReactCommand.privateKeyPath = argv["privateKeyPath"];
|
package/package.json
CHANGED
|
@@ -392,6 +392,7 @@ export function execute(command: cli.ICommand) {
|
|
|
392
392
|
switch (command.type) {
|
|
393
393
|
// Must not be logged in
|
|
394
394
|
case cli.CommandType.login:
|
|
395
|
+
return login(<cli.ILoginCommand>command);
|
|
395
396
|
|
|
396
397
|
// Must be logged in
|
|
397
398
|
default:
|
|
@@ -444,9 +445,6 @@ export function execute(command: cli.ICommand) {
|
|
|
444
445
|
case cli.CommandType.deploymentRename:
|
|
445
446
|
return deploymentRename(<cli.IDeploymentRenameCommand>command);
|
|
446
447
|
|
|
447
|
-
case cli.CommandType.login:
|
|
448
|
-
return login(<cli.ILoginCommand>command);
|
|
449
|
-
|
|
450
448
|
case cli.CommandType.logout:
|
|
451
449
|
return logout(command);
|
|
452
450
|
|
|
@@ -1157,6 +1155,7 @@ export const release = (command: cli.IReleaseCommand): Promise<void> => {
|
|
|
1157
1155
|
isDisabled: command.disabled,
|
|
1158
1156
|
isMandatory: command.mandatory,
|
|
1159
1157
|
rollout: command.rollout,
|
|
1158
|
+
diffEnabled: command.diffEnabled,
|
|
1160
1159
|
};
|
|
1161
1160
|
|
|
1162
1161
|
return sdk
|
|
@@ -1193,7 +1192,7 @@ export const releaseReact = (command: cli.IReleaseReactCommand): Promise<void> =
|
|
|
1193
1192
|
.getDeployment(command.appName, command.deploymentName)
|
|
1194
1193
|
.then((): any => {
|
|
1195
1194
|
releaseCommand.package = outputFolder;
|
|
1196
|
-
|
|
1195
|
+
releaseCommand.diffEnabled = command.diffEnabled;
|
|
1197
1196
|
switch (platform) {
|
|
1198
1197
|
case "android":
|
|
1199
1198
|
case "ios":
|
package/script/command-parser.ts
CHANGED
|
@@ -696,6 +696,13 @@ yargs
|
|
|
696
696
|
description: "Name of build configuration which specifies the binary version you want to target this release at. For example, 'Debug' or 'Release' (iOS only)",
|
|
697
697
|
type: "string",
|
|
698
698
|
})
|
|
699
|
+
.option("diffEnabled", {
|
|
700
|
+
alias: "de",
|
|
701
|
+
default: false,
|
|
702
|
+
demand: false,
|
|
703
|
+
description: "Enable package diff for release.",
|
|
704
|
+
type: "boolean",
|
|
705
|
+
})
|
|
699
706
|
.check((argv: any, aliases: { [aliases: string]: string }): any => {
|
|
700
707
|
return checkValidReleaseOptions(argv);
|
|
701
708
|
});
|
|
@@ -967,6 +974,7 @@ export function createCommand(): cli.ICommand {
|
|
|
967
974
|
releaseReactCommand.sourcemapOutput = argv["sourcemapOutput"] as any;
|
|
968
975
|
releaseReactCommand.outputDir = argv["outputDir"] as any;
|
|
969
976
|
releaseReactCommand.useHermes = argv["useHermes"] as any;
|
|
977
|
+
releaseReactCommand.diffEnabled = argv["diffEnabled"] as any;
|
|
970
978
|
releaseReactCommand.extraHermesFlags = argv["extraHermesFlags"] as any;
|
|
971
979
|
releaseReactCommand.podFile = argv["podFile"] as any;
|
|
972
980
|
releaseReactCommand.privateKeyPath = argv["privateKeyPath"] as any;
|
package/script/types/cli.ts
CHANGED
|
@@ -175,6 +175,7 @@ export interface IReleaseBaseCommand extends ICommand, IPackageInfo {
|
|
|
175
175
|
deploymentName: string;
|
|
176
176
|
noDuplicateReleaseError?: boolean;
|
|
177
177
|
privateKeyPath?: string;
|
|
178
|
+
diffEnabled?: boolean;
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
export interface IReleaseCommand extends IReleaseBaseCommand {
|
|
@@ -198,6 +199,7 @@ export interface IReleaseReactCommand extends IReleaseBaseCommand {
|
|
|
198
199
|
xcodeProjectFile?: string;
|
|
199
200
|
xcodeTargetName?: string;
|
|
200
201
|
buildConfigurationName?: string;
|
|
202
|
+
diffEnabled?: boolean;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
export interface IRollbackCommand extends ICommand {
|