Skip to main content

Class: Pvm

@pvm/core.Pvm

Constructors

constructor

• new Pvm(opts?)

Parameters

NameType
optsObject
opts.config?null | string | RecursivePartial<Config>
opts.cwd?string
opts.plugins?PluginConfig[]

Defined in

packages/pvm-core/lib/app/index.ts:31

Properties

configDir

• configDir: string

Defined in

packages/pvm-core/lib/app/index.ts:28


container

• container: Container

Defined in

packages/pvm-core/lib/app/index.ts:26


cwd

• cwd: string

Defined in

packages/pvm-core/lib/app/index.ts:27


registeredPlugins

• registeredPlugins: Set<any>

Defined in

packages/pvm-core/lib/app/index.ts:29

Methods

initConfigAndPlugins

â–¸ Protected initConfigAndPlugins(config, plugins?): void

Parameters

NameTypeDefault value
configundefined | null | string | RecursivePartial<Config>undefined
pluginsPluginConfig[][]

Returns

void

Defined in

packages/pvm-core/lib/app/index.ts:67


mergeConfigExtensions

â–¸ Protected mergeConfigExtensions(configExtensions): Config

Parameters

NameType
configExtensionsRecursivePartial<Config>[]

Returns

Config

Defined in

packages/pvm-core/lib/app/index.ts:132


registerPlugins

â–¸ Protected registerPlugins(plugins, resolveRoot): RecursivePartial<Config>[]

Parameters

NameType
pluginsPluginConfig[]
resolveRootstring

Returns

RecursivePartial<Config>[]

Defined in

packages/pvm-core/lib/app/index.ts:136


resolvePlugin

â–¸ Protected resolvePlugin(pluginConfig, resolveRoot): Object

Parameters

NameType
pluginConfigPluginConfig
resolveRootstring

Returns

Object

NameType
configExt?RecursivePartial<Config>
factory?PluginFactory
resolvedPathstring

Defined in

packages/pvm-core/lib/app/index.ts:161


runCli

â–¸ runCli(argv?): void

Parameters

NameTypeDefault value
argvstring[]process.argv

Returns

void

Defined in

packages/pvm-core/lib/app/index.ts:56


setupConfigDirs

â–¸ Private setupConfigDirs(resultConfig, cwd, configLookupDir): RecursivePartial<Config>

Parameters

NameType
resultConfigRecursivePartial<Config>
cwdstring
configLookupDirstring

Returns

RecursivePartial<Config>

Defined in

packages/pvm-core/lib/app/index.ts:125