Skip to content

Commit 85f71b7

Browse files
NathanWalkerrigor789
authored andcommitted
chore: cleanup
1 parent 5e4ed00 commit 85f71b7

File tree

276 files changed

+1068
-918
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+1068
-918
lines changed

lib/bootstrap.ts

Lines changed: 234 additions & 234 deletions
Large diffs are not rendered by default.

lib/commands/add-platform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { IOptions, IPlatformCommandHelper, IPlatformValidationService } from "..
44
import { IPlatformsDataService } from "../definitions/platform";
55
import { ICommandParameter, ICommand } from "../common/definitions/commands";
66
import { IErrors } from "../common/declarations";
7-
import { $injector } from "../common/definitions/yok";
7+
import { injector } from "../common/yok";
88

99
export class AddPlatformCommand extends ValidatePlatformCommandBase implements ICommand {
1010
public allowedParameters: ICommandParameter[] = [];
@@ -43,4 +43,4 @@ export class AddPlatformCommand extends ValidatePlatformCommandBase implements I
4343
}
4444
}
4545

46-
$injector.registerCommand("platform|add", AddPlatformCommand);
46+
injector.registerCommand("platform|add", AddPlatformCommand);

lib/commands/apple-login.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { StringCommandParameter } from "../common/command-params";
22
import { ICommand, ICommandParameter } from "../common/definitions/commands";
33
import { IErrors } from "../common/declarations";
4-
import { IInjector, $injector } from "../common/definitions/yok";
4+
import { IInjector } from "../common/definitions/yok";
5+
import { injector } from "../common/yok";
6+
import { IApplePortalSessionService } from "../services/apple-portal/definitions";
57

68
export class AppleLogin implements ICommand {
79
public allowedParameters: ICommandParameter[] = [new StringCommandParameter(this.$injector), new StringCommandParameter(this.$injector)];
@@ -34,4 +36,4 @@ export class AppleLogin implements ICommand {
3436
this.$logger.info(output);
3537
}
3638
}
37-
$injector.registerCommand("apple-login", AppleLogin);
39+
injector.registerCommand("apple-login", AppleLogin);

lib/commands/appstore-list.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import { StringCommandParameter } from "../common/command-params";
33
import { IProjectData } from "../definitions/project";
44
import { IPlatformValidationService, IOptions } from "../declarations";
55
import { ICommand, ICommandParameter } from "../common/definitions/commands";
6-
import { IInjector, $injector } from "../common/definitions/yok";
6+
import { IInjector } from "../common/definitions/yok";
7+
import { injector } from "../common/yok";
78
import { IErrors } from "../common/declarations";
9+
import { IApplePortalApplicationService, IApplePortalSessionService } from "../services/apple-portal/definitions";
810

911
export class ListiOSApps implements ICommand {
1012
public allowedParameters: ICommandParameter[] = [new StringCommandParameter(this.$injector), new StringCommandParameter(this.$injector)];
@@ -60,4 +62,4 @@ export class ListiOSApps implements ICommand {
6062
}
6163
}
6264

63-
$injector.registerCommand("appstore|*list", ListiOSApps);
65+
injector.registerCommand("appstore|*list", ListiOSApps);

lib/commands/appstore-upload.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import { IOSBuildData } from "../data/build-data";
55
import { IProjectData } from "../definitions/project";
66
import { IITMSTransporterService, IOptions, IPlatformValidationService } from "../declarations";
77
import { ICommand, ICommandParameter } from "../common/definitions/commands";
8-
import { IInjector, $injector } from "../common/definitions/yok";
8+
import { IInjector } from "../common/definitions/yok";
9+
import { injector } from "../common/yok";
910
import { IHostInfo, IErrors } from "../common/declarations";
11+
import { IApplePortalSessionService } from "../services/apple-portal/definitions";
1012

1113
export class PublishIOS implements ICommand {
1214
public allowedParameters: ICommandParameter[] = [new StringCommandParameter(this.$injector), new StringCommandParameter(this.$injector),
@@ -102,4 +104,4 @@ export class PublishIOS implements ICommand {
102104
}
103105
}
104106

105-
$injector.registerCommand(["publish|ios", "appstore|upload"], PublishIOS);
107+
injector.registerCommand(["publish|ios", "appstore|upload"], PublishIOS);

lib/commands/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IBuildController, IBuildDataService } from "../definitions/build";
88
import { IMigrateController } from "../definitions/migrate";
99
import { IErrors, OptionType } from "../common/declarations";
1010
import { ICommandParameter, ICommand } from "../common/definitions/commands";
11-
import { $injector } from "../common/definitions/yok";
11+
import { injector } from "../common/yok";
1212

1313
export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
1414
constructor($options: IOptions,
@@ -91,7 +91,7 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
9191
}
9292
}
9393

94-
$injector.registerCommand("build|ios", BuildIosCommand);
94+
injector.registerCommand("build|ios", BuildIosCommand);
9595

9696
export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
9797
public allowedParameters: ICommandParameter[] = [];
@@ -143,4 +143,4 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
143143
}
144144
}
145145

146-
$injector.registerCommand("build|android", BuildAndroidCommand);
146+
injector.registerCommand("build|android", BuildAndroidCommand);

lib/commands/create-project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ICreateProjectData, IProjectService } from "../definitions/project";
55
import { IOptions } from "../declarations";
66
import { ICommand, ICommandParameter } from "../common/definitions/commands";
77
import { IErrors } from "../common/declarations";
8-
import { $injector } from "../common/definitions/yok";
8+
import { injector } from "../common/yok";
99

1010
export class CreateProjectCommand implements ICommand {
1111
public enableHooks = false;
@@ -249,4 +249,4 @@ can skip this prompt next time using the --template option, or the --ng, --react
249249
}
250250
}
251251

252-
$injector.registerCommand("create", CreateProjectCommand);
252+
injector.registerCommand("create", CreateProjectCommand);

lib/commands/debug.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { IMigrateController } from "../definitions/migrate";
1010
import { ICommandParameter, ICommand } from "../common/definitions/commands";
1111
import { IErrors, ISysInfo } from "../common/declarations";
1212
import { ICleanupService } from "../definitions/cleanup-service";
13-
import { IInjector, $injector } from "../common/definitions/yok";
13+
import { IInjector } from "../common/definitions/yok";
14+
import { injector } from "../common/yok";
1415
import * as _ from 'lodash';
1516

1617
export class DebugPlatformCommand extends ValidatePlatformCommandBase implements ICommand {
@@ -152,7 +153,7 @@ export class DebugIOSCommand implements ICommand {
152153
public platform = this.$devicePlatformsConstants.iOS;
153154
}
154155

155-
$injector.registerCommand("debug|ios", DebugIOSCommand);
156+
injector.registerCommand("debug|ios", DebugIOSCommand);
156157

157158
export class DebugAndroidCommand implements ICommand {
158159

@@ -190,4 +191,4 @@ export class DebugAndroidCommand implements ICommand {
190191
public platform = this.$devicePlatformsConstants.Android;
191192
}
192193

193-
$injector.registerCommand("debug|android", DebugAndroidCommand);
194+
injector.registerCommand("debug|android", DebugAndroidCommand);

lib/commands/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IPlatformsDataService } from "../definitions/platform";
88
import { IMigrateController } from "../definitions/migrate";
99
import { ICommand, ICommandParameter } from "../common/definitions/commands";
1010
import { OptionType, IErrors } from "../common/declarations";
11-
import { $injector } from "../common/definitions/yok";
11+
import { injector } from "../common/yok";
1212

1313
export class DeployOnDeviceCommand extends ValidatePlatformCommandBase implements ICommand {
1414
public allowedParameters: ICommandParameter[] = [];
@@ -68,4 +68,4 @@ export class DeployOnDeviceCommand extends ValidatePlatformCommandBase implement
6868
}
6969
}
7070

71-
$injector.registerCommand("deploy", DeployOnDeviceCommand);
71+
injector.registerCommand("deploy", DeployOnDeviceCommand);

lib/commands/extensibility/install-extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ICommand, IStringParameterBuilder, ICommandParameter } from "../../common/definitions/commands";
2-
import { $injector } from "../../common/definitions/yok";
2+
import { injector } from "../../common/yok";
33
import { IExtensibilityService } from "../../common/definitions/extensibility";
44

55
export class InstallExtensionCommand implements ICommand {
@@ -17,4 +17,4 @@ export class InstallExtensionCommand implements ICommand {
1717

1818
allowedParameters: ICommandParameter[] = [this.$stringParameterBuilder.createMandatoryParameter("You have to provide a valid name for extension that you want to install.")];
1919
}
20-
$injector.registerCommand("extension|install", InstallExtensionCommand);
20+
injector.registerCommand("extension|install", InstallExtensionCommand);

0 commit comments

Comments
 (0)