@appcircle/codepush-cli 0.0.4 → 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.
|
@@ -931,6 +931,7 @@ const release = (command) => {
|
|
|
931
931
|
isDisabled: command.disabled,
|
|
932
932
|
isMandatory: command.mandatory,
|
|
933
933
|
rollout: command.rollout,
|
|
934
|
+
diffEnabled: command.diffEnabled,
|
|
934
935
|
};
|
|
935
936
|
return exports.sdk
|
|
936
937
|
.isAuthenticated(true)
|
|
@@ -963,6 +964,7 @@ const releaseReact = (command) => {
|
|
|
963
964
|
.getDeployment(command.appName, command.deploymentName)
|
|
964
965
|
.then(() => {
|
|
965
966
|
releaseCommand.package = outputFolder;
|
|
967
|
+
releaseCommand.diffEnabled = command.diffEnabled;
|
|
966
968
|
switch (platform) {
|
|
967
969
|
case "android":
|
|
968
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
|
@@ -1155,6 +1155,7 @@ export const release = (command: cli.IReleaseCommand): Promise<void> => {
|
|
|
1155
1155
|
isDisabled: command.disabled,
|
|
1156
1156
|
isMandatory: command.mandatory,
|
|
1157
1157
|
rollout: command.rollout,
|
|
1158
|
+
diffEnabled: command.diffEnabled,
|
|
1158
1159
|
};
|
|
1159
1160
|
|
|
1160
1161
|
return sdk
|
|
@@ -1191,7 +1192,7 @@ export const releaseReact = (command: cli.IReleaseReactCommand): Promise<void> =
|
|
|
1191
1192
|
.getDeployment(command.appName, command.deploymentName)
|
|
1192
1193
|
.then((): any => {
|
|
1193
1194
|
releaseCommand.package = outputFolder;
|
|
1194
|
-
|
|
1195
|
+
releaseCommand.diffEnabled = command.diffEnabled;
|
|
1195
1196
|
switch (platform) {
|
|
1196
1197
|
case "android":
|
|
1197
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 {
|