Skip to content

Commit

Permalink
cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
maliroteh-sf committed Oct 26, 2023
1 parent acab039 commit f622958
Show file tree
Hide file tree
Showing 14 changed files with 97 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

import { Config } from '@oclif/core/lib/config';
import { Options } from '@oclif/core/lib/interfaces';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { RequirementProcessor } from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
import {
CommonUtils,
RequirementProcessor
} from '@salesforce/lwc-dev-mobile-core';
import { Setup } from '../setup';

describe('Setup Tests', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
import { Config } from '@oclif/core/lib/config';
import { Options } from '@oclif/core/lib/interfaces';
import { Logger } from '@salesforce/core';
import { AndroidPackage } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidTypes';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { Version } from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import { RequirementProcessor } from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
import {
AndroidPackage,
AndroidUtils,
CommonUtils,
IOSUtils,
RequirementProcessor,
Version
} from '@salesforce/lwc-dev-mobile-core';
import { Create } from '../create';

describe('Create Tests', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
import { Config } from '@oclif/core/lib/config';
import { Options } from '@oclif/core/lib/interfaces';
import { Logger } from '@salesforce/core';
import { AndroidVirtualDevice } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidTypes';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { Version } from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { IOSSimulatorDevice } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSTypes';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import {
AndroidVirtualDevice,
AndroidUtils,
IOSSimulatorDevice,
IOSUtils,
Version
} from '@salesforce/lwc-dev-mobile-core';
import { List } from '../list';

describe('List Tests', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
import { Config } from '@oclif/core/lib/config';
import { Options } from '@oclif/core/lib/interfaces';
import { Logger } from '@salesforce/core';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSSimulatorDevice } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSTypes';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import { RequirementProcessor } from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
import {
AndroidUtils,
CommonUtils,
IOSSimulatorDevice,
IOSUtils,
RequirementProcessor
} from '@salesforce/lwc-dev-mobile-core';
import { Start } from '../start';

describe('Start Tests', () => {
Expand Down
20 changes: 9 additions & 11 deletions src/cli/commands/force/lightning/local/device/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@

import { Flags } from '@salesforce/sf-plugins-core';
import { Logger, Messages } from '@salesforce/core';
import { AndroidEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidEnvironmentRequirements';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { BaseCommand } from '@salesforce/lwc-dev-mobile-core/lib/common/BaseCommand';
import {
AndroidEnvironmentRequirements,
AndroidUtils,
BaseCommand,
CommandLineUtils,
FlagsConfigType
} from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSEnvironmentRequirements';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import {
Requirement,
CommandRequirements,
CommonUtils,
FlagsConfigType,
IOSEnvironmentRequirements,
IOSUtils,
Requirement,
RequirementProcessor
} from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
} from '@salesforce/lwc-dev-mobile-core';
import util from 'util';

// Initialize Messages with the current plugin directory
Expand Down
14 changes: 7 additions & 7 deletions src/cli/commands/force/lightning/local/device/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
*/

import { Messages } from '@salesforce/core';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { BaseCommand } from '@salesforce/lwc-dev-mobile-core/lib/common/BaseCommand';
import {
AndroidUtils,
BaseCommand,
CommandLineUtils,
FlagsConfigType
} from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import { PerformanceMarkers } from '@salesforce/lwc-dev-mobile-core/lib/common/PerformanceMarkers';
CommonUtils,
FlagsConfigType,
IOSUtils,
PerformanceMarkers
} from '@salesforce/lwc-dev-mobile-core';
import chalk from 'chalk';
import { ux } from '@oclif/core';
import { performance, PerformanceObserver } from 'perf_hooks';
Expand Down
18 changes: 8 additions & 10 deletions src/cli/commands/force/lightning/local/device/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@

import { Flags } from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { AndroidEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidEnvironmentRequirements';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { BaseCommand } from '@salesforce/lwc-dev-mobile-core/lib/common/BaseCommand';
import {
AndroidEnvironmentRequirements,
AndroidUtils,
BaseCommand,
CommandLineUtils,
FlagsConfigType
} from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSEnvironmentRequirements';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import {
CommandRequirements,
CommonUtils,
FlagsConfigType,
IOSEnvironmentRequirements,
IOSUtils,
RequirementProcessor
} from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
} from '@salesforce/lwc-dev-mobile-core';
import util from 'util';

// Initialize Messages with the current plugin directory
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/force/lightning/local/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/

import { Setup as CoreSetup } from '@salesforce/lwc-dev-mobile-core/lib/cli/commands/force/lightning/local/setup';
import { Setup as CoreSetup } from '@salesforce/lwc-dev-mobile-core';

export class Setup extends CoreSetup {
public async run(): Promise<void> {
Expand Down
12 changes: 7 additions & 5 deletions src/cli/commands/force/lightning/lwc/__tests__/preview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ process.env['SFDX_ENV'] = 'test'; // run sfdx in test mode when running unit tes
import { Config } from '@oclif/core/lib/config';
import { Options } from '@oclif/core/lib/interfaces';
import { Logger, Messages, SfError } from '@salesforce/core';
import { AndroidLauncher } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidLauncher';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSLauncher } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSLauncher';
import { PreviewUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/PreviewUtils';
import { RequirementProcessor } from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
import {
AndroidLauncher,
CommonUtils,
IOSLauncher,
PreviewUtils,
RequirementProcessor
} from '@salesforce/lwc-dev-mobile-core';
import fs from 'fs';
import {
LwcServerIsRunningRequirement,
Expand Down
28 changes: 12 additions & 16 deletions src/cli/commands/force/lightning/lwc/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,23 @@

import { Flags } from '@salesforce/sf-plugins-core';
import { Logger, Messages, SfError } from '@salesforce/core';
import { AndroidEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidEnvironmentRequirements';
import { AndroidLauncher } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidLauncher';
import { BaseCommand } from '@salesforce/lwc-dev-mobile-core/lib/common/BaseCommand';
import {
CommandLineUtils,
FlagsConfigType
} from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSEnvironmentRequirements';
import { IOSLauncher } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSLauncher';
import { PlatformConfig } from '@salesforce/lwc-dev-mobile-core/lib/common/PlatformConfig';
import {
AndroidEnvironmentRequirements,
AndroidLauncher,
AndroidAppPreviewConfig,
IOSAppPreviewConfig
} from '@salesforce/lwc-dev-mobile-core/lib/common/PreviewConfigFile';
import { PreviewUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/PreviewUtils';
import {
BaseCommand,
CommandLineUtils,
CommonUtils,
CommandRequirements,
FlagsConfigType,
IOSEnvironmentRequirements,
IOSLauncher,
IOSAppPreviewConfig,
PlatformConfig,
PreviewUtils,
Requirement,
RequirementProcessor
} from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
} from '@salesforce/lwc-dev-mobile-core';
import fs from 'fs';
import path from 'path';
import util from 'util';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
import { Config } from '@oclif/core/lib/config';
import { Options } from '@oclif/core/lib/interfaces';
import { Logger, Messages, SfError } from '@salesforce/core';
import { AndroidVirtualDevice } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidTypes';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { Version } from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSSimulatorDevice } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSTypes';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import { RequirementProcessor } from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
import {
AndroidVirtualDevice,
AndroidUtils,
CommonUtils,
IOSSimulatorDevice,
IOSUtils,
RequirementProcessor,
Version
} from '@salesforce/lwc-dev-mobile-core';
import { Configure } from '../configure';
import util from 'util';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { Config } from '@oclif/core/lib/config';
import { Options } from '@oclif/core/lib/interfaces';
import { Logger, Messages } from '@salesforce/core';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core';
import { Run } from '../run';
import fs from 'fs';
import path from 'path';
Expand Down
26 changes: 12 additions & 14 deletions src/cli/commands/force/lightning/lwc/test/ui/mobile/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@

import { Flags } from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { AndroidEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidEnvironmentRequirements';
import { AndroidVirtualDevice } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidTypes';
import { AndroidUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/AndroidUtils';
import { BaseCommand } from '@salesforce/lwc-dev-mobile-core/lib/common/BaseCommand';
import {
AndroidEnvironmentRequirements,
AndroidVirtualDevice,
AndroidUtils,
BaseCommand,
CommandLineUtils,
FlagsConfigType
} from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
import { IOSEnvironmentRequirements } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSEnvironmentRequirements';
import { IOSSimulatorDevice } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSTypes';
import { IOSUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/IOSUtils';
import {
RequirementProcessor,
CommandRequirements
} from '@salesforce/lwc-dev-mobile-core/lib/common/Requirements';
CommandRequirements,
CommonUtils,
FlagsConfigType,
IOSEnvironmentRequirements,
IOSSimulatorDevice,
IOSUtils,
RequirementProcessor
} from '@salesforce/lwc-dev-mobile-core';
import fs from 'fs';
import util from 'util';

Expand Down
10 changes: 5 additions & 5 deletions src/cli/commands/force/lightning/lwc/test/ui/mobile/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

import { Flags } from '@salesforce/sf-plugins-core';
import { Messages, SfError } from '@salesforce/core';
import { BaseCommand } from '@salesforce/lwc-dev-mobile-core/lib/common/BaseCommand';
import {
FlagsConfigType,
CommandLineUtils
} from '@salesforce/lwc-dev-mobile-core/lib/common/Common';
import { CommonUtils } from '@salesforce/lwc-dev-mobile-core/lib/common/CommonUtils';
BaseCommand,
CommandLineUtils,
CommonUtils,
FlagsConfigType
} from '@salesforce/lwc-dev-mobile-core';
import * as childProcess from 'child_process';
import util from 'util';
import fs from 'fs';
Expand Down

0 comments on commit f622958

Please sign in to comment.