Class: Pvm
@pvm/core.Pvm
Constructors
constructor
• new Pvm(opts?
)
Parameters
Name | Type |
---|---|
opts | Object |
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
Name | Type | Default value |
---|---|---|
config | undefined | null | string | RecursivePartial <Config > | undefined |
plugins | PluginConfig [] | [] |
Returns
void
Defined in
packages/pvm-core/lib/app/index.ts:67
mergeConfigExtensions
â–¸ Protected
mergeConfigExtensions(configExtensions
): Config
Parameters
Name | Type |
---|---|
configExtensions | RecursivePartial <Config >[] |
Returns
Config
Defined in
packages/pvm-core/lib/app/index.ts:132
registerPlugins
â–¸ Protected
registerPlugins(plugins
, resolveRoot
): RecursivePartial
<Config
>[]
Parameters
Name | Type |
---|---|
plugins | PluginConfig [] |
resolveRoot | string |
Returns
RecursivePartial
<Config
>[]
Defined in
packages/pvm-core/lib/app/index.ts:136
resolvePlugin
â–¸ Protected
resolvePlugin(pluginConfig
, resolveRoot
): Object
Parameters
Name | Type |
---|---|
pluginConfig | PluginConfig |
resolveRoot | string |
Returns
Object
Name | Type |
---|---|
configExt? | RecursivePartial <Config > |
factory? | PluginFactory |
resolvedPath | string |
Defined in
packages/pvm-core/lib/app/index.ts:161
runCli
â–¸ runCli(argv?
): void
Parameters
Name | Type | Default value |
---|---|---|
argv | string [] | process.argv |
Returns
void
Defined in
packages/pvm-core/lib/app/index.ts:56
setupConfigDirs
â–¸ Private
setupConfigDirs(resultConfig
, cwd
, configLookupDir
): RecursivePartial
<Config
>
Parameters
Name | Type |
---|---|
resultConfig | RecursivePartial <Config > |
cwd | string |
configLookupDir | string |
Returns
RecursivePartial
<Config
>