UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

49 lines (48 loc) 2.1 kB
import { InteractiveInputs } from '../interactive/utils/run-interactive-cmd'; import CommandHelper from './e2e-command-helper'; import FsHelper from './e2e-fs-helper'; import ScopesData from './e2e-scopes'; export default class ScopeHelper { debugMode: boolean; scopes: ScopesData; e2eDir: string; command: CommandHelper; fs: FsHelper; cache: Record<string, any>; keepEnvs: boolean; clonedScopes: string[]; packageManager: string; constructor(debugMode: boolean, scopes: ScopesData, commandHelper: CommandHelper, fsHelper: FsHelper); clean(): void; destroy(): void; cleanLocalScope(): void; usePackageManager(packageManager: string): void; reInitLocalScope(): void; reInitLocalScopeHarmony(): void; initLocalScope(): string; initWorkspace(workspacePath?: string): string; initWorkspaceAndRemoteScope(workspacePath?: string): void; initInteractive(inputs: InteractiveInputs): Promise<any>; initLocalScopeWithOptions(options: Record<string, any>): string; setNewLocalAndRemoteScopes(): void; setNewLocalAndRemoteScopesHarmony(): void; initNewLocalScope(deleteCurrentScope?: boolean): string; addRemoteScope(remoteScopePath?: string, localScopePath?: string, isGlobal?: boolean): string; removeRemoteScope(remoteScope?: string, isGlobal?: boolean): string; addRemoteEnvironment(isGlobal?: boolean): string; addGlobalRemoteScope(): string; removeRemoteEnvironment(isGlobal?: boolean): string; reInitRemoteScope(scopePath?: string): string; setRemoteScopeAsDifferentDir(): void; reInitEnvsScope(): string; getNewBareScope(scopeNameSuffix?: string | undefined): { scopeName: string; scopePath: string; }; cloneLocalScope(dereferenceSymlinks?: boolean): string; getClonedLocalScope(clonedScopePath: string, deleteCurrentScope?: boolean): void; cloneRemoteScope(): string; cloneScope(scopePath: string): string; getClonedScope(clonedScopePath: string, scopePath: string): void; getClonedRemoteScope(clonedScopePath: string): void; }